[rancid] cloginrc order

heasley heas at shrubbery.net
Thu Apr 23 15:51:59 UTC 2015


Mon, Apr 20, 2015 at 10:21:07AM +0100, Howard Jones:
> On 19/04/2015 09:16, Alan McKinnon wrote:
> > I think that would be very useful indeed. I've had to rationalize very 
> > large .cloginrc files in the past, it wasn't fun when I got the order 
> > wrong :-) 
> 
> Also something to list all the possible hits (not just the one used) for 
> a given device would be handy, so you can see where something is 
> unintentionally masking your (for example) ACS credentials at the bottom 
> of the last included file.
> 
> Howie

You can try ftp://ftp.shrubbery.net/pub/rancid/alpha/rancid-3.2.99.tar.gz
which adds the -m and -M options:

unix% ./clogin -m router
router
autoenable:/home/heas/.cloginrc:375: *
password:/home/heas/.cloginrc:363: router*
user:/home/heas/.cloginrc:360: router*
userpassword:/home/heas/.cloginrc:362: router*
method:/home/heas/.cl:1: router
unix%

unix% ./clogin -M router
router
autoenable:/home/heas/.cloginrc:375: * 
password:/home/heas/.cloginrc:363: router* 
password:/home/heas/.cloginrc:378: * 
user:/home/heas/.cloginrc:360: router* 
user:/home/heas/.cloginrc:373: * 
userpassword:/home/heas/.cloginrc:362: router* 
method:/home/heas/.cl:1: router 
method:/home/heas/.cloginrc:376: * 
unix%

its only supported by clogin ATM and may yet change.  suggestions welcome.


More information about the Rancid-discuss mailing list