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.

ONTAP Discussions

permissions for new-ncsnapshot

zenmatrix83
4,450 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
4,375 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
4,376 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