ONTAP Discussions

set advanced mode using python paramiko

chinmayie
3,761 Views

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

AlexDawson
3,717 Views

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.

chinmayie
3,704 Views

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

alexj
3,665 Views

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.

 

chinmayie
3,618 Views

yes it works thanks

Public