[rancid] hlogin timing out

Alan McKinnon alan.mckinnon at gmail.com
Sat Jun 13 06:59:21 UTC 2015


Here's what I think you are actually dealing with:

rancid (and all it's tools) is heavily Cisco-centric. The tools are
launched in the order they need to be used on Cisco kit, and all the
checks (prompt format, end of output, etc) all assume things are done
the way Cisco does them.

This is not necessarily universally true, and leads to existing scripts
being bent to fit whatever vendor X does. In the case of ProCurves, the
amount of bending becomes excessive and usually only accommodates one
model used one way. There are other problematic vendors as well that pop
up from time to time.

To fix this, I think you need to dump the entire set of h* scripts and
start over. Fortunately, the overall design of rancid is very generic
and lends itself to plugging in your ProCurve-specific scripts which are
unrelated to Cisco ones.

It's not as difficult as it sounds, it's easier than continuing trying
to fit Cisco's square peg into HP's round hole. The first step is to
document the behaviour of ProCurves across the entire range.

I can help with the perl if you need help in that area. I can't help
with specifics of HPs, I've never even seen one in real life.


On 12/06/2015 17:35, Jim P wrote:
> SOLVED! (sort of). Someone may beat me with a hose for this but this is
> what I did (for those curious)
> 
> Until I find the proper way to do this, I cheated and changed the hlogin
> script a bit. For those curious I changed this part...
> 
> this is TOTALLY wrong, but turning -autoenable on or -noenable on simply
> was not working
> 
> ---------------------------------------------
>     # Figure out prompt.
>     # Since autoenable is off by default, if we have it defined, it
>     # was done on the command line. If it is not specifically set on the
>     # command line, check the password file.
>     if $avautoenable {
>         set autoenable 1
>         set enable 0
>         set prompt "#"
>     } else {
>         set ae [find autoenable $router]
>         if { "$ae" == "1" } {
>             set autoenable 1
>             set enable 0
>             set prompt "#"
>         } else {
>             set autoenable 0
>             set enable $avenable
>             set prompt ">"                         (switched that are
> stacked indicate with <CR> at the end which triggers this)
> # added this next line as a workaround
>             set prompt "#"                         (other switches hit
> the SU prompt that has #, which triggers this also now)
>         }
>     }
> ---------------------------------------------
> 
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
> 


-- 
Alan McKinnon
alan.mckinnon at gmail.com



More information about the Rancid-discuss mailing list