0

hi,

my problem is as such...

I am establishing a telnet session to an IP using telnetlib module. I read the free memory on the board using telnet.write("free\n").

after this i call a system command 'snmpwalk' to walk the MIBs of the IP above.


I again need to establish the session and read the free memory on that IP.


what I observe is, the system command(snmpwalk) is executed before the telnet.write.

what can be done to maintain the flow as mentioned above??

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by novice20
0

well..it was pretty simple....but couldn't get it.
achieved it with time.sleep() after logging and before issue of telnet.write("free\n")
command :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.