[rancid] hp hlogin failing
heasley
heas at shrubbery.net
Fri Feb 24 00:16:58 UTC 2017
Thu, Feb 23, 2017 at 09:37:12PM +0000, Alex DEKKER:
> On 23/02/17 20:20, Jessica Cohen wrote:
> >
> > Hlogin is failing for some reason on my HP2410G. The logs show
> >
> > 192.168.0.7 clogin error: Error: TIMEOUT reached
> >
> > 192.168.0.7: missed cmd(s): write term,show system-information,show
> > system information,show tech transceivers,show module,show
> > version,show config status,show flash,show stack,show config files
> >
> > 192.168.0.7: End of run not found
> >
> > I run it from the CLI and it sort of works. I get to the command
> > prompt in the switch but then can’t enter any commands. If I SSH
> > directly to the switch from the server it works fine.
> >
>
> When you SSH, do you have to press something to see the prompt?
>
> > Suggestions? Response from hlogin below.
> >
> > rancid at net-mgmt2:~/logs$ /usr/lib/rancid/bin/hlogin 192.168.0.7
> >
> > 192.168.0.7
> >
> > spawn hpuifilter -- ssh -c 3des -x -l admin 192.168.0.7
> >
> > We'd like to keep you up to date about:
> >
> > * Software feature updates
> >
> > <snip>
> >
> > HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303
> >
> > Press any key to continuemgmt-OOB-sw1#
why is it missing a \r\n? is that rancid eating that in hpuifilter or
it he box doing that? hlogin sends a space. might have to look at debug
info; hlogin -d -c 'show vers' hostname
>
> It looks like RANCID doesn't recognise the prompt, but it seems like it
> has pressed something.
>
> A quick google suggests a change in 3.5 might be relevant:
>
> "hlogin: when refactoring prompt, eat full lines before looking for the
> prompt"
>
> alexd
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
More information about the Rancid-discuss
mailing list