NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Active IQ Unified Manager Discussions

How to retrieve qtree export policies in CDOT

stephen2
5,256 Views

Anyone know how to retrieve the export policies attached to qtrees? The get-ncqtree does not return it. If I invoke get-ncssh with qtree show -field export-policy, the policy is returned but in a format that can't be retrieved.

What I am trying to do is duplicate export access from a source vserver to a destination vserver for qtrees. If anyone has figured out how to do this, please point me in the right direction.  Thanks

2 REPLIES 2

dhruvd
5,256 Views

Hi stephen,

You can get the export policies for each qtree using the Get-NcQtree commandlet. You need to save it to an object and access the property in the following way:

$qtrees = Get-NcQtree

foreach ( $qt in $qtrees ) {

    Write-Host $qt.Qtree -> $qt.ExportPolicy

}

-Dhruv

stephen2
5,256 Views

Never mind. It is exposed with the 3.1 toolkit. I was using 3.0  I updated and it now returns export policy

Thanks

Public