
UNSOLVED
DB
DELL-Bill Gr
50 Posts
0
5464
November 21st, 2011 12:00
Powershell - retrieve all mappings for a server
This post has been copied from the former Compellent User Forum and placed here for your reference. This code is made available AS IS, without warranty of any kind. The entire risk of the use or the results from the use of this code remains with the user.
retrieve all mappings for a server – Originally posted By CMonfet, 12 Oct 2009
CMonfet - I am adding new hosts to one of my ESX farms and Id like to map all the volumes to this new server using powershell. Does anyone know of a way to retrieve all the current mappings for one of my ESX hosts that I have now?
jbraun - You can use the Get-SCVolumeMap cmdlet in the Storage Center Command Set to get this information.
Example:
Get-SCVolumeMap -ServerName
The output will give you a list of volumes that are mapped to the server specified.
Good Luck!
/jb
smithsprpa - I'll have to play with the example listed in this thread, but I would like to extend the functionality to include pulling all server names, including the serial number and WWN of any volumes on the array and its configured size. Surely some Compellent users out there have already done this?
~Steve
garyhay - you could pull all the volumes using the get-scvolume cmdlet then loop through the volumes to get their details.
$Volumes = get-scvolume
foreach ($Volume in $Volumes)
{
get-scvolumemap -volumename $Volume
}
Hope this helps
Responses (0)
Solutions (0)
