[rancid] interactive after -x

Jon Lewis jlewis at lewis.org
Fri Sep 12 14:50:34 UTC 2014


I recently had a desire to be able to use the rancid login scripts to run 
a series of commands on a large number of devices (altering their 
configs), and when finished with the -x command file, rather than exit, go 
interactive so that I could do some testing/verification before 
disconnecting.

I didn't see that this functionality was offered in the versions we have 
installed, so I patched it into flogin and clogin.  Assuming I didn't 
overlook this functionality already being present, I wonder if the patches 
might make it into a future version?  My expect is pretty rusty, but it 
didn't take much to add a command line switch telling [fc]login to go 
interactive after running the -x commands file.

----------------------------------------------------------------------
  Jon Lewis, MCP :)           |  I route
                              |  therefore you are
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________


More information about the Rancid-discuss mailing list