You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The target devices is hp_comware device, I run it from the linux machine(ubuntu) in the lab where the target device resides, it worked perfectly, but when I run the same script remotely from my MacBook through a VPN , the ssh connection ok, but the output from the device took long time, caused read timeout, even after I changed timeout to 100 secs, still not working, I thought may be network too slow, I tried ssh to the device from my MacBook, and run the same CLI commands, it responded right away, looks like not much delay, why with send_comand() the output take long time to get the output from the device? any ideas?
here's part of my script
with open(file_name, 'w') as f:
for cmd in cmd_list:
f.write(net_connect.send_command(cmd))
f.close()
here's sample of the output when it works on the linux server:
==============================display irf topology==============================
Topology Info
IRF-Port1 IRF-Port2
MemberID Link neighbor Link neighbor Belong To
1 DIS --- DIS --- 00e0-fc0f-8c02
================================display irf link================================
Member 1
IRF Port Interface Status
1 disable --
2 disable --
The target devices is hp_comware device, I run it from the linux machine(ubuntu) in the lab where the target device resides, it worked perfectly, but when I run the same script remotely from my MacBook through a VPN , the ssh connection ok, but the output from the device took long time, caused read timeout, even after I changed timeout to 100 secs, still not working, I thought may be network too slow, I tried ssh to the device from my MacBook, and run the same CLI commands, it responded right away, looks like not much delay, why with send_comand() the output take long time to get the output from the device? any ideas?
here's part of my script
the cmd_list:
"display irf topology",
"display irf link",
"display irf configuration",
"display irf-port load-sharing mode",
"display mad verbose"
here's sample of the output when it works on the linux server:
==============================display irf topology==============================
Topology Info
MemberID Link neighbor Link neighbor Belong To
1 DIS --- DIS --- 00e0-fc0f-8c02
================================display irf link================================
Member 1
IRF Port Interface Status
1 disable --
2 disable --
===========================display irf configuration============================
MemberID NewID IRF-Port1 IRF-Port2
1 1 disable disable
=======================display irf-port load-sharing mode=======================
irf-port Load-Sharing Mode:
Layer 2 traffic: packet type-based sharing
Layer 3 traffic: packet type-based sharing
==============================display mad verbose===============================
Multi-active recovery state: No
Excluded ports (user-configured):
Excluded ports (system-configured):
MAD ARP disabled.
MAD ND disabled.
MAD LACP disabled.
MAD BFD disabled.
thanks
Feng
The text was updated successfully, but these errors were encountered: