Microsoft Virtualization Discussions

Can't user get-ncdisk command

AllenChang
300 Views

I use Powershell to create a script,
ONTAP Powershell Version is 9.14.1

I user get-ncdisk command to get disk information,

and my environment is simulator,

At the beginning the command [get-ncdisk] can be use,

but suddenly I can't use get-ncdisk,

and system force me to use -zapi to performance,

but zapi can't get some information,
for example when I don't -use -zapi, I can see Shelf ID
but If I use -zapi, the Shelf ID Field is empty,
how can fix this problem?

7 REPLIES 7

chamfer
244 Views

Hi @AllenChang,

 

Can you advise what version of the ONTAP Simulator you are using?

AllenChang
238 Views

Hi Chamfer
9.12.1
Because the customer's machine is also 9.12.1

chamfer
228 Views

Thanks for the confirmation @AllenChang,

 

Just to understand your problem, are you saying that you can user get-ncdisk initially and then it stops working?

 

If you are trying to replicate the customer's environment have you updated the ONTAP Simulator to be the correct P version e.g. 9.12.1P4?

AllenChang
227 Views

Hi Charmfer:

It will say
get-ncdisk : Object reference not set to an instance of an object.

and my simulator version is 9.12.1

 
 

 

 

chamfer
185 Views

Hi @AllenChang , 

 

Reference here Solved: Add-NcQuota shows Object reference not set to an instance of an object error - NetApp Community

 

Credit: antoniosarco

 

"The message "Object not set to instance of Object" means that you are trying to use an object which has not been initialized. That is, you either set it to null, or you never set it to anything at all. The runtime throwing a NullReferenceException always means the same thing: you are trying to use a reference. The reference is not initialized (or it was initialized, but is no longer initialized).

 

Antonio"

 

 

AllenChang
214 Views

How to find P version ?

chamfer
185 Views

Hi @AllenChang,

 

I don't understand exactly what you are asking so I will provide two answers:

 

1) If you would like to know what P version you are running on ONTAP, just use the "ver" command from the CLI and it will tell you.

 

2) If you would like to know how to download P (patch) version then you can download them from here NetApp Support Site - All Products - ONTAP 9 (Downloads)

 

If you would like to learn about ONTAP upgrades you can read here Learn about ONTAP upgrade

Public