Q. How can I get summary information about my System Center Virtual Machine Manager (VMM) virtual machines (VMs) from the command prompt?
March 6, 2010
A. You can use the VMM PowerShell environments Get-VM cmdlet to find information about VMs known to SCVMM. You can pipe the objects from the command to the Select command to view only certain properties. Use the command
GET-VM -VMMServer savdalscvmm.savilltech.net | Select Name, OperatingSystem, Memory, VirtualizationPlatform, HostName, Status | ft
and you'll see output similar to this:
Name OperatingSyst Memory Virtualizati HostName Status em onPlatform---- ------------- ------ ------------ -------- ------savdaldc11 64-bit edi... 1024 HyperV savdalbfs... RunningAPPVSequence Unknown 1024 HyperV savdalbfs... PowerOffsuseentdesk Unknown 1024 HyperV savdalbfs... PowerOffsavdalclie... Windows 7 1024 HyperV savdalbfs... PowerOffsavdalrodc01 64-bit edi... 1024 HyperV savdalbfs... Runningsavdaldc10 64-bit edi... 2048 HyperV savdalvs0... Runningsavdalwss10 64-bit edi... 2048 HyperV savdalbfs... PowerOffsavdalcm01 64-bit edi... 2048 HyperV savdalbfs... PowerOffsavdalappv01 64-bit edi... 2048 HyperV savdalbfs... Runningsavdaltmg01 64-bit edi... 2048 HyperV savdalbfs... Runningsavdalscvmm 64-bit edi... 2048 HyperV savdalbfs... Runningsavdalex11 64-bit edi... 2048 HyperV savdalbfs... Runningsavdalvc01 Unknown 2048 HyperV savdalbfs... PowerOffsavdalts01 64-bit edi... 2048 HyperV savdalbfs... Runningsavdalclient 64-bit edi... 2048 HyperV savdalbfs... Runningsavdalesxvc 64-bit edi... 2048 VMWareESX 192.168.1... Runningsavdalom01 Unknown 4096 VMWareESX savdalbfs... ...eVMConfigsavdalom01 64-bit edi... 4096 HyperV savdalbfs... Runningsavdalex10 64-bit edi... 6144 HyperV savdalvs0... Running
In the example above, I piped the output to the Format-Table cmdlet (FT), but the default shows as a list, which will be more legible.
A. You can use the VMM PowerShell environments Get-VM cmdlet to find information about VMs known to SCVMM. You can pipe the objects from the command to the Select command to view only certain properties.
PS C:Windowssystem32> GET-VM -VMMServer savdalscvmm.savilltech.net | Select Name, OperatingSystem, Memory, VirtualizationPlatform, HostName, Status | ft Name OperatingSyst Memory Virtualizati HostName Status em onPlatform ---- ------------- ------ ------------ -------- ------ savdaldc11 64-bit edi... 1024 HyperV savdalbfs... Running APPVSequence Unknown 1024 HyperV savdalbfs... PowerOff suseentdesk Unknown 1024 HyperV savdalbfs... PowerOff savdalclie... Windows 7 1024 HyperV savdalbfs... PowerOff savdalrodc01 64-bit edi... 1024 HyperV savdalbfs... Running savdaldc10 64-bit edi... 2048 HyperV savdalvs0... Running savdalwss10 64-bit edi... 2048 HyperV savdalbfs... PowerOff savdalcm01 64-bit edi... 2048 HyperV savdalbfs... PowerOff savdalappv01 64-bit edi... 2048 HyperV savdalbfs... Running savdaltmg01 64-bit edi... 2048 HyperV savdalbfs... Running savdalscvmm 64-bit edi... 2048 HyperV savdalbfs... Running savdalex11 64-bit edi... 2048 HyperV savdalbfs... Running savdalvc01 Unknown 2048 HyperV savdalbfs... PowerOff savdalts01 64-bit edi... 2048 HyperV savdalbfs... Running savdalclient 64-bit edi... 2048 HyperV savdalbfs... Running savdalesxvc 64-bit edi... 2048 VMWareESX 192.168.1... Running savdalom01 Unknown 4096 VMWareESX savdalbfs... ...eVMConfig savdalom01 64-bit edi... 4096 HyperV savdalbfs... Running savdalex10 64-bit edi... 6144 HyperV savdalvs0... Running
In the example above, I piped the output to the Format-Table cmdlet (FT), but the default shows as a list, which will be more legible.
About the Author
You May Also Like