I need to save configuration on switch extreme. The command is :
save configuration "File Name"
After of command's execution i need to answer 2 question.
Do you want to save configuration ? (y/N) -> I have to say Yes
Do you want to make "File Name".cfg the default database? (y/N) -> I have to say No
I am using paramiko for command execution.
Below is a piece of my code:
ssh = paramiko.SSHClient()
ssh.connect(server, username=username, password=password)
stdin, stdout, stderr = ssh.exec_command('save configuration '+ backupFileName)
#Now i need to say first Yes and then NO
Someone could help me?