Eashan
Sep 17, 2019Nimbostratus
Issues accessing Show Sys Version output on F5 Viprion using Paramiko
import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy)
ssh.connect('IPAddress', port=22, 'username', 'password')
my_command = "show sys version | grep Version"
stdin, stdout, stderr = ssh.exec_command(my_command)
output = stdout.readlines()
print("\n".join(output))
print(stderr.readlines)
ssh.close()
The following scripts run successfully but fails to display any output. But if I remove the grep and run only the show sys version I'm receiving the output without any issues.