It can read a configuration file in which you can store login names and passwords, so you can avoid passing them on the command line. ![]() Using the command and router file listings in your example, you could execute the commands on all routers like this: clogin -u user -p pass -e enablepass -x commands.txt $(cat routers.txt) It's primarily intended as a configuration backup tool for Cisco and other networking devices, but one of its components, clogin, is essentially an Expect script that does exactly what you're asking.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |