Aboriginal Art and Ponds, in Hualian County, Taiwan |
To backup configuration of a Cisco router or switch, I share with you a tip using TELNET.
TELNET -F log-file.txt 192.168.1.1
where "log-file.txt" is the screen capture file name. "192.168.1.1" is your router/switch's management IP address. You should be very familiar with what to do next after you login!
For example, you might want to issue the following commands:
enable
terminal length 0
show run
show start
In above commands we set the "terminal length" purposely to zero to stop output paging with lots of annoying "--- MORE ---".
Now everything including the configurations you want to backup is "captured" in "log-file.txt". Not bad, isn't it?
My boss asked me to back up our router and switches configuration.. It really helped me :-) Thank you
ReplyDeleteWelcome! I am really glad to know it helps you!
ReplyDeleteGreat post!
ReplyDeleteNice ...
ReplyDeleteIt worked fine on windows 7 .. just need to enable telnet client there.
Thanks much
leo
@leo You are correct! Now I updated the post with your help. Thank you very much!
Deletethanks...really helps...
ReplyDeletehow can I upload this file back to the router via telnet?
ReplyDeleteIn fact, you can do xmodem file upload just within the TELNET connection to overwrite the startup configuration. However, you should use other TELNET client, such as HyperTerminal.
DeleteWhere will the file be saved. How do i access this file?
ReplyDeleteIt will be saved as "log-file.txt" right at the current working directory. You can use any text editor such as Notepad to open and process this file.
DeleteHave you succeeded on this?
Yes, i have succeeded. Thanks so much.
DeleteWelcome!
Delete