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:

https://support.emc.com/docu91468_VxRail-Appliance-4.5.x,-4.7.x,-and-7.0.x-API-Guide.pdf?language=en_US

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:

VxRail API—Updated List of Useful Public Resources

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s