ONTAP Discussions

permissions for new-ncsnapshot

zenmatrix83
1,863 Views

I'm trying to use the powershell toolkit to automate some snapshot procedures, and it works fine with a admin account, but I can't seem to find the correct permissions to get it to work. The role I have is

::> security login role show
Role Command/ Access
Vserver Name Directory Query Level
---------- ------------- --------- ----------------------------------- --------
nap-svm01 vmwsnapshotonly
DEFAULT none
version all
volume all
volume snapshot -volume *snap* all

 

and that doesn't work. I keep getting

 

New-NcSnapshot : not authorized for that command
At C:\Users\Downloads\oracle-snapshot.ps1:137 char:9
+ New-NcSnapshot $volume $volume$(get-date -f MM-dd-yyyy_HH_mm_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (111.11.11.11:NcController) [New-NcSnapshot], EAPIPRIVILEGE
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.NewNcSnapshot

1 ACCEPTED SOLUTION

GidonMarcus
1,788 Views

Try the following command on SSH.

security audit log show

 

To see what capability it's missing.

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK

View solution in original post

1 REPLY 1

GidonMarcus
1,789 Views

Try the following command on SSH.

security audit log show

 

To see what capability it's missing.

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK
Public