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

PS command reference & Export policy backup

Thomas_
3,980 Views

Hi guys,

 

where can I find the current PowerShell Toolkit command line reference?

 

Also I'm looking for a script which can export qtrees including export-policy settings and import it on another svm.

I found this for cifs shares + export polices https://github.com/DatacenterDudes/cDOT-CIFS-share-backup-restore  which works very well.

 

Thanks,

Thomas

2 REPLIES 2

donny_lang
3,959 Views

Once you have the PSTK module loaded, the "Show-NcHelp" cmdlet will launch the documentation in your web browser, which will include all of the information about various cmdlets. Off the top of my head, I would think you'd want to look at the "Get-NcQtree", "Get-NcExportPolicy" and "Get-NcExportRule" cmdlets to pull in data from your "source" cluster and then duplicate on your "destination" cluster. 

 

Unfortunately, I don't have any code handy to help out with your specific use case, but if you start writing a script/function and run into issues, post your code and I'll be happy to help work the kinks out! 

Public