[rancid] clogin adding 'exit' command?
Howard Jones
howie at thingy.com
Thu May 3 16:05:27 UTC 2018
I'm updating an old F5 loadbalancer script to work with BIG-IP 13.1 -
it seems that since the last time I needed to use it, F5 have changed
to starting users in tmsh instead of bash, so the command list needed
to be tweaked. That's all fine but...
What I end up with is the following clogin command-line:
clogin -t 90 -c "modify cli preference pager disabled
display-threshold 0;show /sys version;show /sys hardware;show /sys
license;show /net route static;list all-properties recursive" lb01
which does everything I need, but then sits at the final prompt
repeatedly type 'exit':
rancidconfbackup@(lb01)(cfg-sync In Sync)(Active)(/Common)(tmos)#exit
Use "quit" to end the current session
rancidconfbackup@(lb01)(cfg-sync In Sync)(Active)(/Common)(tmos)# exit
Use "quit" to end the current session
Where is this 'exit' coming from? Can it be altered?
If I add 'quit' to the end of my command list, then instead it
complains EOF received and none of the commands are matched:
rancidconfbackup@(lb01)(cfg-sync In Sync)(Active)(/Common)(tmos)# quit
Connection to lb01 closed.
Error: EOF received
Do I need to dig into the expect code to deal with this?
Thanks for any pointers (or to a modern f5rancid)...
Howie
More information about the Rancid-discuss
mailing list