Active IQ Unified Manager Discussions

Need help with object properties

stephen2
2,922 Views

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
2,910 Views

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
2,894 Views

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

Public