VxRAIL – API PowerShell Module Examples
One method of consuming the available VxRail APIs is by leveraging the VxRail API PowerShell Modules Package from within your Windows OS using PowerShell. Each public API has a corresponding […]
Virtualization & Storage
One method of consuming the available VxRail APIs is by leveraging the VxRail API PowerShell Modules Package from within your Windows OS using PowerShell. Each public API has a corresponding […]
One method of consuming the available VxRail APIs is by leveraging the VxRail API PowerShell Modules Package from within your Windows OS using PowerShell. Each public API has a corresponding PowerShell cmdlet included in the VxRail PowerShell modules starting with VxRail 4.7.300. The API User Guide can be found here:
Please see post covering install:
Below are a few sample GET commands where I connect to the VxRail Manager (192.1.20.51). In these examples I have included filters to return some specific info:
For a Full list of available Get commands:
Get-Command -Module VxRail.API.* -Name Get*
Retrieve the Bring-Up status:
Get-BringupProgressStatus -Server 192.1.20.51
Retrieve VxRail System information: Code Version | No. of Hosts | Cluster Type | External VC
Get-SystemInfo -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw | ft -Wrap version,number_of_host,cluster_type,is_external_vc
Retrieving VxRail Manager detail:
Get-SystemVirtualMachines -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw
Retrieving Hosts IP detail: Host Name | IP Set
Get-SystemClusterHosts -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw | ft host_name,ip_set
Retrieving Hosts detail: Host Name | Serial Number | PSNT | Power Status
Get-Hosts -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw |ft hostname,sn,psnt,power_status
Retrieving Hosts detail: Host Name | Firmware Levels
Get-Hosts -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw |ft hostname, firmwareInfo
Retrieving Hosts detail: Host Name | NIC Details
Get-Hosts -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw
|Format-Table -Wrap hostname, nics
Retrieving Hosts detail: Serial Number | VxRail Model | Health Status
Get-Chassis -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw | ft sn,model,render_category,health
Retrieving Available Hosts for Node ADD:
Validating Health of VxRail:
Get-Cluster -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw | ft health
Get-SystemHealth -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw
Confirm vCenter Mode:
Get-VCenterMode -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw | ft vc_mode
Retrieving Disks detail:
Get-Hosts -Server 192.1.20.51 -Username administrator@vsphere.local -Password pw |Format-Table -Wrap hostname, disks
Excellent set of resources maintained by Karol @cl0udguide can be found here:
Ramblings by Keith Lee
Discussions about all things VxRail.
Random Technology thoughts from an Irish Virtualization Geek (who enjoys saving the world in his spare time).
Musings of a VMware Cloud Geek
Converged and Hyper Converged Infrastructure
'Scamallach' - Gaelic for 'Cloudy' ...
Storing data and be awesome
Best Practices et alia
Every Cloud Has a Tin Lining.