[rancid] cloginrc.sample noenable example

john heasley heas at shrubbery.net
Thu Aug 19 06:55:49 UTC 2010


Thu, Aug 19, 2010 at 06:08:32AM +0000, john heasley:
> Wed, Aug 18, 2010 at 06:27:58PM -0400, Lee:
> > On 8/18/10, john heasley <heas at shrubbery.net> wrote:
> > > Sat, Aug 14, 2010 at 09:47:43AM -0400, Lee:
> > >> Shouldn't the example for noenable in cloginrc.sample be changed from
> > >>   # add noenable <router name glob>
> > >> to
> > >>   # add noenable <router name glob> 1
> > >> or maybe
> > >>   # add noenable <router name glob> <1/0>
> > >> like the example for autoenable?
> > >
> > > no, that directive does not work that way.  the login scripts would need
> > > to be changed to allow this.
> > 
> > What am I doing wrong then?  With this in my .cloginrc
> > add noenable *
> > a 'clogin -c "sh ip eigrp int" ciscoRouter' goes into enable mode
> > before doing the show command.  If I change it to
> > add noenable * 1
> > it doesn't get into enable mode before doing the command.
> 
> sorry, more specifically it does not work like autoenable; any value turns it
> on.

sorry.  looking at the code, it is inconsistent.  in one place, any
value enables it, elsewhere only '1' is accepted.  i blame Hank,
because its fun.  i'll change it so that only '1' turns it on.


More information about the Rancid-discuss mailing list