Connect to Prism Central - Get Name, AOS version and NCC version

Userlevel 4
Badge +1
#Add Snapin to ISE
$myvarLoaded = Get-PSSnapin -Name NutanixCmdletsPSSnapin -ErrorAction SilentlyContinue | ForEach-Object {$_.Name}
if ($myvarLoaded -eq $null){Add-PSSnapin NutanixCmdletsPSSnapin}

# Request & Verify credentials
$Credentials = Get-Credential -Message "Enter Prism Credentials"
$UserName = $Credentials.UserName
$Password = ConvertTo-SecureString $($Credentials.GetNetworkCredential().password) -AsPlainText -Force

# Connect to PrismCental and get Name, AOS version, and NCC version of managed clusters
Connect-NutanixCluster -Server prism_central_ip_or_DNS_name -UserName $UserName -Password $Password -AcceptInvalidSSLCerts -ForcedConnection
Get-NTNXCluster | Select-Object name,version,nccVersion

This topic has been closed for comments