Data ONTAP Discussions

Highlighted

set advanced mode using python paramiko

Hello,

 

Iam trying to use paramiko and have run this command 

 

ssh.exec_command('​set -privilege advanced -confirmations off')

 

 

But Iam getting the following error:

 

<0x07>

Error: : "​set" is not a recognized command.

 

 

 

Thanks in advance for any help on this

4 REPLIES 4

Re: set advanced mode using python paramiko

At a guess, you're either not logging into a clustered ONTAP system (ie, ONTAP version is 8.2 or less), or you're logging into a service processor IP address (you should use the cluster or node management IP addresses instead), or you're logging into an account which has had the "set" command restricted through RBAC.

 

Hope it's one of those. Not sure what it would be if it isn't one of them.

Re: set advanced mode using python paramiko

I have used cluster IP address,  and ONTAP 9.1 version, all commands works fine ,except this set privilege command.

Re: set advanced mode using python paramiko

Try this:

ssh.exec_command('​set -privilege advanced -confirmations off; <your command here>')

 

Works for me, the only thing is you'll have to add in the set command and flags for each command you submit.

 

Re: set advanced mode using python paramiko

yes it works thanks

Try the new BETA Support Site!
Beta Support Site
Forums