ONTAP Discussions

permissions for new-ncsnapshot

zenmatrix83

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

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public