Question
Get AHV VM NIC - Server Error 500
Using PowerShell and AOS 5.11 and same version cmdlets...
I have an AHV VM in the object $VM that I retrieved from Prism Central.
I'm trying to retrieve the NIC information but I keep getting an error:
PS E:\Scripts> get-ntnxvmnic -vmid $vm.uuid -IncludeAddressAssignments
Error occurred while getting NIC list of VM
get-ntnxvmnic : The remote server returned an error: (500) Internal Server Error.
At line:1 char:1
+ get-ntnxvmnic -vmid $vm.uuid -IncludeAddressAssignments
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Nutanix.Prism.Common.NutanixCluster:NutanixCluster) [Get-NTNXVMNIC], WebException
+ FullyQualifiedErrorId : {"message":"Error occurred while getting NIC list of VM"},Nutanix.Prism.PS.Cmds.Acropolis.GetVMNIC
I get a similar error if I specify the UUID (this VM only has 1 NIC):
PS E:\Scripts> get-ntnxvmnic -vmid $vm.uuid -nicid $vm.virtualNicUuids -IncludeAddressAssignments
For input string: "Sy"
get-ntnxvmnic : The remote server returned an error: (500) Internal Server Error.
At line:1 char:1
+ get-ntnxvmnic -vmid $vm.uuid -nicid $vm.virtualNicUuids -IncludeAddre ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Nutanix.Prism.Common.NutanixCluster:NutanixCluster) [Get-NTNXVMNIC], WebException
+ FullyQualifiedErrorId : {"message":"For input string: \"Sy\""},Nutanix.Prism.PS.Cmds.Acropolis.GetVMNIC
Any idea why I am getting this error? I've tried against other VMs and get the same thing.
Thanks!
I have an AHV VM in the object $VM that I retrieved from Prism Central.
I'm trying to retrieve the NIC information but I keep getting an error:
PS E:\Scripts> get-ntnxvmnic -vmid $vm.uuid -IncludeAddressAssignments
Error occurred while getting NIC list of VM
get-ntnxvmnic : The remote server returned an error: (500) Internal Server Error.
At line:1 char:1
+ get-ntnxvmnic -vmid $vm.uuid -IncludeAddressAssignments
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Nutanix.Prism.Common.NutanixCluster:NutanixCluster) [Get-NTNXVMNIC], WebException
+ FullyQualifiedErrorId : {"message":"Error occurred while getting NIC list of VM"},Nutanix.Prism.PS.Cmds.Acropolis.GetVMNIC
I get a similar error if I specify the UUID (this VM only has 1 NIC):
PS E:\Scripts> get-ntnxvmnic -vmid $vm.uuid -nicid $vm.virtualNicUuids -IncludeAddressAssignments
For input string: "Sy"
get-ntnxvmnic : The remote server returned an error: (500) Internal Server Error.
At line:1 char:1
+ get-ntnxvmnic -vmid $vm.uuid -nicid $vm.virtualNicUuids -IncludeAddre ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Nutanix.Prism.Common.NutanixCluster:NutanixCluster) [Get-NTNXVMNIC], WebException
+ FullyQualifiedErrorId : {"message":"For input string: \"Sy\""},Nutanix.Prism.PS.Cmds.Acropolis.GetVMNIC
Any idea why I am getting this error? I've tried against other VMs and get the same thing.
Thanks!
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.