PowerCLI - VIProperties
Luc Dekens, author of the VMware vSphere PowerCLI Reference has just made a PowerShell module available that adds a number of useful properties to PowerCLI objects. I spent the morning playing with this module inside of PowerWF and everthing worked great.
Here is a list of the properties that the module adds:
Cluster:
- NumberOfHosts
- NumberOfVMs
- NumCPU
- NumPoweredOnvCPUs
- NumvCPUs
Datastore:
- CapacityGB
- FreeGB
- NumberOfVMs
- ProvisionedGB
Harddisk:
- Datastore
- UnitNumber
PhysicalNic:
- LinkState
Portgroup:
- vCenterServer
ScsiController:
- Harddisk
ScsiLun:
- lunDatastoreName
- lunID
Snapshot:
- Datacenter
- DaysOld
- vCenter
VirtualMachine:
- BootDelay
- BootTime
- CBTEnabled
- CpuHotAddEnabled
- DNSname
- MemoryHotAddEnabled
- MemReservation
- NumVirtualDisks
- OSName
- SnapshotSpaceUsed
- ToolsVersion
- ToolsVersionStatus
- vCenterServer
- VMIenabled
- VmxDatastoreFullPath
- WebShortcut URL
- YellowFolderName
- YellowFolderName (recursive)
VMHost:
- AvgCPUUsage24Hr
- ClusterName
- Hardware
- MemoryTotalGB
- Number of powered on guests
- NumberOfVMs
- NumPoweredOnvCPUs
- NumvCPUs
The great news is that I contacted Luc and he has agreed to let us include this module with the next release of PowerVI and with the forthcoming release of PowerWF for VMware.
Look for more information on this soon.
9 months ago - link

