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


Userlevel 4
Badge
#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

0 replies

Be the first to reply!

Reply