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.
To learn more, please review the information in this blog post.

Microsoft Virtualization Discussions

Shutdown Script with RBAC

DAMNX6789
3,286 Views

Hi folks,

 

I'm trying to do an automated shutdown using powershell toolkit, involving Invoke-NCSsh (Clustered DataONTAP)

Problem is, as long as the user (in the script) has the role set DEFAULT = ALL this script works.

 

connect first controller

system node halt -node Cluster-01 -inhibit-takeover true -skip-lif-migration-before-shutdown true

connect second controller

system node halt -node Cluster-02 -inhibit-takeover true -skip-lif-migration-before-shutdown true

 

prompts "Error not authorized for that command"

 

As soon as I change the role of the user to DEFAULT=read-only and grant only access to "system" = all, this script won't work.

A normal SSH session via putty and the same user lets me halt the controllers manually.

 

Am I missing something in the RBAC rights management?

 

Thanks,

Michael

0 REPLIES 0
Public