If you missed the pre-registration for NetApp MS Azure AD B2C, the new login prompt will offer the option to register. Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

Need help with object properties

stephen2

All, how do you get object properties that match the CLI -instance commands?

For example, how would you get vserver.rootvolumesecuritystyle - $v[0].rootvolumesecuritystyle returns blank

Using get-ncVserver | getMember may or may not return a property that works.
 
There are other ones like get-ncvol.snapshot-policy

 



 

2 REPLIES 2

olson

Greeting,

 

By default powershell does not populate subattributes. You can get all of the volume info with this command.

 

$vols = Get-NcVol -Template -Fill

$vols = Get-NcVol

 

The -fiil attribute forces the complete array to populate. 

 

If you are only targeting a specific Sub attribute you can get it with this command.

 

$v = Get-NcVol -Template
Initialize-NcObjectProperty $v VolumeStateAttributes
$v = Get-NcVol 

 

if you are trying to determine what is in a varible

$v|gm 

 

Hope this helps

John

 

 

 

JGPSHNTAP

Also - you might want to post this is the powershell forum.. They made it hard to find, but it's located under microsoft virtualization

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public