Unsolved
This post is more than 5 years old
1 Rookie
•
23 Posts
0
767231
December 6th, 2011 19:00
Dell EqualLogic PowerShell Scripting
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.
No Events found!
Lance Boley
1 Rookie
•
23 Posts
0
December 6th, 2011 19:00
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
Lance Boley
1 Rookie
•
23 Posts
1
December 18th, 2011 20:00
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
The script will check for the existence of the HIT Kit 3.5 or higher, if it is not present it will alert you.
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.
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 "
Replication Partner
" -FragmentMember Information
get-eqlmember | select membername, memberdescription, firmwareversion,
defaultgateway, storagepoolname, raidtype, raidstatus, totalspacemb,
freespacemb | ConvertTo-Html -pre "
Member Information
" -FragmentVolume Information
get-eqlvolume | select volumename, volumesizeMB, StoragePoolName,
ThinProvision, onlinestatus, volumedescription, snapshotreservepercent,
replicareserveinuseMB, snapshotcount | ConvertTo-Html
-pre "
Volume Information
" -FragmentVolume ACL Information
get-eqlvolume | get-eqlvolumeacl | select volumename, initiatorname,
username, initiatoripaddress, acltargettype | ConvertTo-Html
-pre "
Volume ACL Information
" -FragmentSnapshot Information
get-eqlvolume | get-eqlsnapshot | select volumename, snapshotname,
snapshotsizemb, onlinestatus, creationtimestamp | ConvertTo-Html
-pre "
Snapshot Information
" -FragmentFinally 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.
1 Attachment
eqlconfigreporter.doc
GPetty
1 Message
0
December 28th, 2011 10:00
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?
michaelpacheco
66 Posts
0
February 9th, 2012 06:00
PowerShell Script for Exporting a virtual machine
blogs.msdn.com/.../powershell-script-for-exporting-a-virtual-machine.aspx
michaelpacheco
66 Posts
0
February 16th, 2012 12:00
Set EqualLogic PS Series SAN Volume ACL’s using PowerShell
mikefrobbins.com/.../set-equallogic-ps-series-san-volume-acls-using-powershell
michaelpacheco
66 Posts
0
March 13th, 2012 14:00
Use PowerShell to Back Up Modified Files to the Network
blogs.technet.com/.../use-powershell-to-back-up-modified-files-to-the-network.aspx
michaelpacheco
66 Posts
0
March 13th, 2012 14:00
Use PowerShell to Move Computer Accounts
blogs.technet.com/.../the-easy-way-to-use-powershell-to-move-computer-accounts.aspx
michaelpacheco
66 Posts
0
March 13th, 2012 14:00
Use PowerShell to Delete Folders
blogs.technet.com/.../the-best-way-to-use-powershell-to-delete-folders.aspx
michaelpacheco
66 Posts
0
March 13th, 2012 14:00
Skimming a Hyper-V Service Event log with PowerShell
itproctology.blogspot.com/.../skimming-hyper-v-service-event-log-with.html
michaelpacheco
66 Posts
0
March 13th, 2012 14:00
Use PowerShell to Copy Files to a Shared Drive
blogs.technet.com/.../use-powershell-to-copy-files-to-a-shared-drive.aspx
michaelpacheco
66 Posts
0
March 13th, 2012 14:00
Use PowerShell to Manage Exchange Server Mailbox Storage Limits
blogs.technet.com/.../use-powershell-to-manage-exchange-server-mailbox-storage-limits.aspx
michaelpacheco
66 Posts
0
March 13th, 2012 14:00
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
michaelpacheco
66 Posts
0
March 13th, 2012 14:00
Reboot multiple Windows servers with PowerShell
letstalktechtalk.blogspot.com/.../powershell-how-to-reboot-multiple.html
michaelpacheco
66 Posts
0
June 28th, 2012 09:00
Use PowerShell to Manage an EqualLogic SAN
blogs.technet.com/.../use-powershell-to-manage-an-equallogic-san.aspx
Mike F Robbins
5 Posts
0
July 10th, 2012 07:00
Can iSCSI Targets be Renamed on an EqualLogic PS Series Storage Area Network?
http://mikefrobbins.com/2012/07/10/can-iscsi-targets-be-renamed-on-an-equallogic-ps-series-storage-area-network/
µ