Unix script to auto-login to Router and ping remote terminals

pts.
Tags:
Programming Languages
Remote management
Routers
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • KanKan
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following