Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
ONTAP Automation: How do export CIFS shares ACL and import to another filer>
2016-07-22
01:05 AM
6,297 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I use snapmirror to replicate volumes from a production filer to a DR filer at another site. Is there a way to use WFA to export CIFS Shares ACL of a volume to a file and import it back to the replicated volume in DR filer?
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You ceratinly can do this using WFA and very easily too. Nothing to import/export but your requirement will be resolved.
1. Use cmdlet Get-NcCifsShareAcl to get ACLs of one share.
2. Use Set-NcCifsShareAcl to set the above obtained ACLs for the new CIFS share.
You want a working sample code for it? I can make one for you.
sinhaa
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Yes please show me how you do it. I have actually written powershell scipts to export the shares and ACL, but find that the xml it exported has some specifications that is tied to the node such as IP address and host name. Not sure if it will work when it is imported to another filer. Looking forward to see your example. many thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are some great PowerShell examples here for import/export of shares and exports if you're interested.
Andrew
If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
