Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using telnet in batch mode ?

Status
Not open for further replies.

nwardez

Technical User
Oct 2, 2002
174
FR
Hi,

I need to backup several CISCO switches configuration using telnet from my Unix box. As I don't want to type the same commands for each switch, does anyone know a way to do it with a file containing commands. I've tried something like:

telnet -l user_name IP_address <<EOF
passwd
cmd
EOF

but it doesn't work. Any idea ?

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top