Subscribe
Accepted Solution

Missing API - workaround ?

I have been using the cmdlet Get-NaCIFSShareAcl to extract and save the permissions for the CIFS shares on a filer running 7.3.6, that filer has now been upgraded to 8.0.2P3 and it seems that the underlying API that this cmdlet uses is not available yet in the 8.x versions of OnTAP.

Is there a workaround ?

I had been capturing the Shares and their permissions so that they could be recreated against the snapmirrored volumes at our BC/DR site when both testing our apps (VMware SRM) or in the case of a real failover.

It has been said that we should be using vFilers to do this but I do not believe we have the appropriate licences to do so and I am not sure they would work in the SRM Test-bubble scenario in any case.

Any suggestions considered

Re: Missing API - workaround ?

Hi, Glen.  One workaround, albeit an inconvenient one, is to send a CLI command using Invoke-NaSsh.  The missing APIs return in Data ONTAP 8.1.

PS> Invoke-NaSsh cifs shares


Name         Mount Point                       Description

----         -----------                       -----------

ETC$         /etc                              Remote Administration

                        BUILTIN\Administrators / Full Control

HOME         /vol/vol0/home                    Default Share

                        everyone / Full Control

C$           /                                 Remote Administration

                        BUILTIN\Administrators / Full Control

backups      /vol/cifs/backups

                        everyone / Full Control

vol1         /vol/vol1

                        everyone / Full Control

wsfcrre_witness /vol/cifs/wsfcrre_witness

                        everyone / Full Control

rresql_witness /vol/cifs/WSFCRRE_FILES/rresql_witness

                        everyone / Full Control

wsfcrre_files /vol/cifs/wsfcrre_files

                        everyone / Full Control

                        RTPRRE\timothyn / Full Control

Re: Missing API - workaround ?

As stated, not convenient but as we will not be going to 8.1 in the near future I'll try this approach.  Thanks.