0 pts.
 Unix script to auto-login to Router and ping remote terminals
On unix box, how can I create a script that will do the following: 1. Automatically login to a Nortel BLN router. 2. Ping to about 5 remote terminals to confirm the WAN connectivity where the 5 terminals are located. 3. Ping result to be pipe to a file in the unix box.

Software/Hardware used:
ASKED: October 19, 2005  7:29 AM
UPDATED: November 2, 2005  4:08 AM

Answer Wiki:
Check out "expect" It allows for multiple expectations and responses, and can bypass many of the problems associated with simple redirection of input and output. As you might guess, O'Reilly has a pretty good book on the subject. Bob
Last Wiki Answer Submitted:  October 22, 2005  3:04 am  by  Bobkberg   1,070 pts.
All Answer Wiki Contributors:  Bobkberg   1,070 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Telnet to BLN router works now using the expect script. It was due to a typo error in the router ip address.

The next problem is the redirection of ping result back to my unix mch. How do I do it?

 0 pts.