[rancid] HP procurve Menu logon

heasley heas at shrubbery.net
Wed Feb 20 17:43:18 UTC 2013


Wed, Feb 20, 2013 at 03:00:12PM +0100, Marc Boisis-Delavaud:
> I 've made this patch which is working : 
> 
> #diff hlogin hloginULR
> 398a399
> > 
> 475a477,480
> > 		-re ".*=============================================- TELNET - MANAGER MODE" {
> >                 	send "5"
> >                 	exp_continue
> >         	}

its better, imo, to match all or at least the majority of input before
sending.  that way, your output and its response, is not mixed in with
the input.  its cleaner, easier, and more reliable - again, imo.

btw, is this menu a standard thing with procurves?  I've never seen it,
but the one that i have is a lower-end model.

> thanks
> 
> Le 19 févr. 2013 à 19:37, heasley <heas at shrubbery.net> a écrit :
> 
> > Tue, Feb 19, 2013 at 08:12:37AM +0100, Marc Boisis-Delavaud:
> >> It look like this :
> >> 
> >> sw28cri                                                    19-Feb-2013   8:11:21
> >> ===========================- TELNET - MANAGER MODE -============================
> >>                                   Main Menu
> >> 
> >>   1. Status and Counters... 
> >>   2. Switch Configuration...
> >>   3. Console Passwords...
> >>   4. Event Log
> >>   5. Command Line (CLI)
> >>   6. Reboot Switch
> >>   7. Download OS
> >>   8. Run Setup
> >>   9. Stacking...
> >>   0. Logout
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> Provides the menu to display configuration, status, and counters.               
> >> To select menu item, press item number, or highlight item and press <Enter>.
> > 
> > add a match in the login function of hlogin to find 'and press <Enter>.' and
> > send '5\r'.
> > 
> >> Le 19 févr. 2013 à 06:11, heasley <heas at shrubbery.net> a écrit :
> >> 
> >>> Mon, Feb 18, 2013 at 02:11:29PM +0100, Marc Boisis-Delavaud:
> >>>> Hello,
> >>>> For different reason I 've to use "Menu" logon on my HP procure switch. With my test hlogin only works with "CLI" logon. Is there any fix or patch to make "Menu" logon working with rancid ?
> >>> 
> >>> what does "menu logon" look like?
> >> 
> >> Marc Boisis-Delavaud
> >> Direction du Système d'Information
> >> Université de La Rochelle
> >> marc.boisis at univ-lr.fr | 05 46 45 82 14
> >> 
> 
> Marc Boisis-Delavaud
> Direction du Système d'Information
> Université de La Rochelle
> marc.boisis at univ-lr.fr | 05 46 45 82 14
> 

> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss



More information about the Rancid-discuss mailing list