Dec-03-2022, 11:19 AM
ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(host, username=username, password=password) print("Connected") stdin, stdout, stderr = ssh.exec_command(mycommands to extract data from host) # This prints the table and i need to extract data from this print(stdout.read().decode()) # print errors if there are any err = stderr.read().decode() if err: print(err) ssh.close()