Connecting Cloud Innovators: Building Community at .NEXT 2024
I'm curious about this as well. Replicating the VM should replicate the VM as a whole and not ignore the VM snapshots. On this note, please please please change the name of one or the other "snapshot". They are not equal and causes endless confusion. We have to call them "VM snapshot" and "Nutanix snapshot" to distinguish between them and are constantly tripping over the terms. I would go so far as to suggest firing the idiot who signed off on naming these two distinct things the same.
Move needs to add AHV to AHV migration. This would add a method of Storage vMotion, a basic missing Hypervisor function.
Not sure if this will help, but I am finishing up a powershell script using API calls, since the necessary powershell cmdlets don't exist. Here is a code snippet that works for me: [code]$Header = @{"Authorization" = "Basic "+[System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($username+":"+$password ))} foreach ($Cluster in $Clusters) { Connect-NutanixCluster -Server $cluster -UserName $username -Password $secpassword -AcceptInvalidSSLCerts -ForcedConnection | Out-Null $pdlist = Get-NTNXProtectionDomain | Where {$_.Active -eq $true} foreach ($pd in $pdlist) { $URL = "https://"+$Cluster+":9440/PrismGateway/services/rest/v1/protection_domains/"+$pd.name+"/schedules" try { $output = Invoke-RestMethod -Method Get -Uri $URL -Headers $Header -UseBasicParsing } catch { $output = '' } [/code] They secpassword to the cmdlet is a securestring object, but the password in the REST header is plaintext. I suspect there might ber a clue in the header info, or
The account I use for this and for our Nagios checks is a local Prism Element account. I don't know if a Prism Central account would work. Also, I think the local account needs to be a Viewer role. Also note, I also do Nagios checks via SNMP. Is the monitoring tool using SNMP? That is a separate user account in the SNMP settings (there is a user tab). I think SNMP v3 is the one that needs user/pass, v1 and v2 use community strings. My config has a username, an authkey and a privkey, so I am using v3. I think the command also require the security type (AES, SHA, etc.) [url=https://portal.nutanix.com/#/page/kbs/details?targetId=kA0600000008bAECAY]https://portal.nutanix.com/#/page/kbs/details?targetId=kA0600000008bAECAY[/url]
So based on Support's answer and no one reporting here, I concluded that there is no cmdlet and I need to use REST API calls to get to the data. Here is what I have cobbled together thus far (this isn't the actual code, I've anonymized it a little) [code]Add-PSSnapin -Name NutanixCmdletsPSSnapin . "c:\scripts\Update-Wiki.ps1" $nxUser = 'wiki' $nxPassword = convertto-securestring "" $FullReport=@() $password = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR( $nxPassword )) $secpassword = $nxPassword $RemoteSites = @{"Cluster1" = "RemoteSite2";"Cluster2" = "RemoteSite1"} $Weekdays = @{1 = "Sun";2 = "Mon";3 = "Tue";4 = "Wed";5 = "Thu";6 = "Fri";7 = "Sat"} $strCurrentTimeZone = (Get-WmiObject win32_timezone).StandardName $TZ = [System.TimeZoneInfo]::FindSystemTimeZoneById($strCurrentTimeZone) $origin = New-Object -Type DateTime -ArgumentList 1970, 1, 1, 0, 0, 0, 0 $Header = @{"Authorization" = "Basic "+[System.Convert]::ToBase6
Unfortunately, I don't use a proxy. In terms of exposing the API, I've done nothing special. It appears that v1-v3 are open on my system, but I think the API URL is different per version. [code]/PrismGateway/services/rest/v1/ /PrismGateway/services/rest/v2.0/ /api/nutanix/v3/ [/code] You will probably get an authentication error, but that will show the PE is listening on the api urls. so try from a browser, [code]https://:9440/PrismGateway/services/rest/v1/vms https://:9440/PrismGateway/services/rest/v2.0/vms https://:9440/api/nutanix/v3/vms [/code] If you get a 404 or 500 error, then something deeper should be looked into (I would think). Ideally, if you can do this from the monitoring system (wget or curl if linux) then that might help pinpoint where to look. If you want a successful result, you need to inject user/pass in the header of the request, like in the code example.
But, I was getting the message when I upgraded to PC to 2020.7 and had the recommended RAM for the prior version. I upgraded to the recommended for small, but still got the warning. So, I increased RAM from the recommended to 32 because I also got a low RAM warning. I have calm disabled, never touched Leap or microsegmentation, and have PC starter. Currently have a warning that PC has only 400 MB of free RAM. I am willing to increase RAM and vCPU, but by all accounts I shouldn’t have to. To me this is an indicator something is wrong. It also bothers me a little that PC would become the largest VM I have, in terms of vCPU+RAM.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.