ONTAP Discussions
ONTAP Discussions
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
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.
I have used cluster IP address, and ONTAP 9.1 version, all commands works fine ,except this set privilege command.
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.
yes it works thanks