08-06-2012 09:40 PM
Hi expert,
I am looking for some solution.
We have around 8 router, everyday twice,we need to login(SSHv2) to each router runc 2-3 command(Ping some interface for Latency checking,router uptime)
I am looking for some script/tool so that work can be minimized/aitomatic.
Something Like auto login to router, command will run automatically & output will be showing on screen/some batch file kind of output
Pls suggest script/toll for the requirement
Solved! Go to Solution.
08-06-2012 11:43 PM
Hi Bang-2,
If you are using Linux OS then :
it should work :
-------------------------------------
#!/usr/bin/expect
set timeout 20
spawn telnet 10.1.1.1
expect "Username:"
send "test\r"
expect "Password:"
send "test\r"
expect "*#"
interact
exit
---------------------------------
Regards
Please rate if it helps.
08-06-2012 11:43 PM
Hi Bang-2,
If you are using Linux OS then :
it should work :
-------------------------------------
#!/usr/bin/expect
set timeout 20
spawn telnet 10.1.1.1
expect "Username:"
send "test\r"
expect "Password:"
send "test\r"
expect "*#"
interact
exit
---------------------------------
Regards
Please rate if it helps.
08-07-2012 10:03 PM
Hi..
Pls share in case of Login from Windows xp /vista system
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide