Dell EqualLogic PowerShell Scripting

Storage

Storage
Gain insight and information on Dell Storage products from engineers, peers and experts in the industry.

Dell EqualLogic PowerShell Scripting

  • 110-6108-EN-R1_HIT_PowerShellTools_Quick_Reference_V4.0_web.pdf

    Call for Sample Scripts

    We want to make this as useful to our user community as possible.  So in return, we would like some assistance from you. 

    If you could submit sample scripts that you have utilizing our PowerShell cmdlets with the Dell EqualLogic PS series arrays we will gladly post them on this site.  

    This is a perfect opportunity for you to help the Dell EqualLogic user community as it relates to utilizing PowerShell as a managing tool within your IT environment. 

  • Directions for adding or attaching your script

    Use the reply feature below to add your script to this post.  Please us the Rich Text formatting option below

    You can enter a message into the rich text box provided and include your script in text form if you like, or if you would rather upload a file containing your script you can do that as well.  

    In order to upload a file you will need to select the Options tab at the top of the reply (after you click on Use rich formatting)

    Then click the (click to add) link for the upload dialog box.

    When you are all done click the post button to submit your script.

    Thanks

  • eqlconfigreporter.doc

    Equallogic Configuration Reporting Powershell Script

    Originally posted by Barry Coombs | January 18, 2011 here

    I have been working on this script on and off for a couple of weeks, the plan was to get my head around the new Equallogic Powershell tools and create a configuration dump that could be used to assist with documenting / analysing an Equallogics configurations. I also used this as a point to have a play with SAPIEN Technologies PrimalForms (Community Edition).

    I have created a script which is linked to below. Please be aware this is currently a beta and I am looking for as much feedback on this as possible. The script will display a GUI to allow you to type the connectivity information

    image

    The script will check for the existence of the HIT Kit 3.5 or higher, if it is not present it will alert you.

    image

    The script checks for the existence of a folder called EqlReports on the root of the C: drive, if it doesn’t exist it will create it. The report once created it named GroupName-Report-Date. So if you are testing the same SAN on the same day you will need to rename the files.

    The final report is a HTML based report and will look something like this.

    image

    It includes, group, replication, member, volume, volume acl, snapshot and schedule information. Currently the IP’s are displayed in IPV6 but in v2 I will add the IPV6 conversion.

    The main Powershell one liners that are used are as below.

    Group Configuration

    Get-EqlGroupConfiguration | select groupname, groupaddress, grouptimezone,
     groupdescription, smtpservers, grouplocation, ntpservers 

    Replication Parther

    Get-EqlReplicationPartner | select partnername, partneripaddress, 
    partnerdescription, primarygroup, delegatedspacemb, replicationstatus |
     ConvertTo-Html -pre "<h1>Replication Partner</h1> " -Fragment 

    Member Information

    get-eqlmember | select membername, memberdescription, firmwareversion, 
    defaultgateway, storagepoolname, raidtype, raidstatus, totalspacemb, 
    freespacemb | ConvertTo-Html -pre "<h1>Member Information</h1> " -Fragment 

    Volume Information

    get-eqlvolume | select volumename, volumesizeMB, StoragePoolName, 
    ThinProvision, onlinestatus, volumedescription, snapshotreservepercent, 
    replicareserveinuseMB, snapshotcount | ConvertTo-Html 
    -pre "<h1>Volume Information</h1> " -Fragment 

    Volume ACL Information

    get-eqlvolume | get-eqlvolumeacl | select volumename, initiatorname,
     username, initiatoripaddress, acltargettype | ConvertTo-Html 
    -pre "<h1>Volume ACL Information</h1> " -Fragment 

    Snapshot Information

    get-eqlvolume | get-eqlsnapshot | select volumename, snapshotname, 
    snapshotsizemb, onlinestatus, creationtimestamp | ConvertTo-Html
    -pre "<h1>Snapshot Information</h1> " -Fragment

     

    Finally a bit more indepth was the schedule information, I only wanted the data for volumes with schedules, otherwise you got nasty blank information with only titles. Big thanks must goto @virtualportal Steve Bryenn http://virtual-portal.com for assisting me with this code

     $sched = @() $volumes = get-eqlvolume foreach ($volume in $volumes) { $schedules = $volume | get-eqlschedule if ($schedules.volumename -ne $null) { $sched_report = $schedules | SELECT volumename,schedulename, 
    schedulestatus, scheduletype, startdate, starttime, enddate, endtime, 
    repeatfactor, timefrequency, keepcount, accesstype, onlinestatus, 
    replicationsite $sched += $sched_report } }

     

    You can download the script here, it is as a .doc file to allow me to upload it on wordpress.com! so please rename as a .ps1 file. I will host it in an alternative location soon.

    The script is also available has an attachment to the post fo you to download as well.  It is the same file available from Barry's site, we have just included it here as well.

  • The script above is awesome!  I'm looking to add one additional field to the volume information - Free space.  I know the information is in the PS somewhere, since you can see it graphically.  I just can't find the field to add to your table.  Any ideas?

  • PowerShell Script for Exporting a virtual machine

    blogs.msdn.com/.../powershell-script-for-exporting-a-virtual-machine.aspx

  • Set EqualLogic PS Series SAN Volume ACL’s using PowerShell

    mikefrobbins.com/.../set-equallogic-ps-series-san-volume-acls-using-powershell

  • Use PowerShell to Manage Exchange Server Mailbox Storage Limits

    blogs.technet.com/.../use-powershell-to-manage-exchange-server-mailbox-storage-limits.aspx

  • Windows 8 Hyper-V : Powershell script to create vm’s based on csv file

    virtualisationandmanagement.wordpress.com/.../windows-8-hyper-v-powershell-script-to-create-vms-based-on-csv-file

  • Use PowerShell to Delete Folders

    blogs.technet.com/.../the-best-way-to-use-powershell-to-delete-folders.aspx

  • Use PowerShell to Back Up Modified Files to the Network

    blogs.technet.com/.../use-powershell-to-back-up-modified-files-to-the-network.aspx

  • Use PowerShell to Copy Files to a Shared Drive

    blogs.technet.com/.../use-powershell-to-copy-files-to-a-shared-drive.aspx

  • Use PowerShell to Move Computer Accounts

    blogs.technet.com/.../the-easy-way-to-use-powershell-to-move-computer-accounts.aspx

  • Reboot multiple Windows servers with PowerShell

    letstalktechtalk.blogspot.com/.../powershell-how-to-reboot-multiple.html

  • Skimming a Hyper-V Service Event log with PowerShell

    itproctology.blogspot.com/.../skimming-hyper-v-service-event-log-with.html

  • Use PowerShell to Manage an EqualLogic SAN

    blogs.technet.com/.../use-powershell-to-manage-an-equallogic-san.aspx