ZiaTioN
asked on
Telnet session in while loop?
I wrote a script that interfaces with some gear and at one point in the script I have to reboot the card. Now I want to create another telnet session that will re-establish the connection once the card comes back up. I want to use a way that tries to connect and if the connection does not get established then I want it to loop back and try again until the connection is back up which would mean the card has finished rebooting.
I tried adding a while loop in this manner but was unsuccessfull. Anyone have any ideas on how to implement this?
Oh I forgot to mention that I am using Net::Telnet module for the telnet sessions.
I tried adding a while loop in this manner but was unsuccessfull. Anyone have any ideas on how to implement this?
Oh I forgot to mention that I am using Net::Telnet module for the telnet sessions.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hello above script what code u wrote to continue your session please help me.. i am able to make telnet session and now i want to ping that session and if session disconnect with any reason i want to reconnect that open session....
ASKER