[rancid] hlogin script to ProCurve 2650

Steve Ousley steve at host-it.co.uk
Mon Aug 4 16:14:54 UTC 2008


Hi

 

We are just trying to add some ProCurve switches to RANCID.  I have got
various PIX and ASA's on rancid, but this is my first attempt at a HP
device.

 

I have setup the method for this as {telnet} above the add method * line so
it tries to use telnet rather than ssh for this device.

 

When I run hlogin <device name> I see the following:

 

nagios-1:/usr/local/rancid/var/mkone# hlogin <device name>

<device name>

spawn hpuifilter -- telnet <device name>

Trying <ip>...

Connected to <device name>

Escape character is '^]'.

ProCurve J4899B Switch 2650

Software revision H.10.50

 

Copyright (C) 1991-2007 Hewlett-Packard Co.  All Rights Reserved.

 

                           RESTRICTED RIGHTS LEGEND

 

 Use, duplication, or disclosure by the Government is subject to
restrictions

 as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data
and

 Computer Software clause at 52.227-7013.

 

         HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303

 

<company> procurve

 

Press any key to continuePassword:

ProCurve Switch 2650#

 

 

To me, this looks to be all ok (after testing with telnet straight away),
however, when I get to this point, the session seems to die, and I cannot do
anything on the switch, then the connection times out after a short while
and disconnects.

 

I have tried manually telnetting to the device, and can run commands on the
switch no problems (sh run etc), and get output.

 

Also, is there any way to use rancid to connect to a device on multiple
ports? For instance I would like to get rancid to get configurations from 2
switches, where the gateway forwards the relevant port to the relevant
switch. Eg telnet 1.2.3.4 on port 23 telnet 1.2.3.4 on port 45.

 

Regards

 

Steve Ousley - SO620-RIPE

Nuco Technologies Ltd

 <mailto:steve at host-it.co.uk> steve at host-it.co.uk

 <http://www.nucotechnologies.com/> www.nucotechnologies.com

Tel. 0870 165 1300

 

Nuco Technologies Ltd is a company registered in England and Wales
with company number 04470751

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20080804/7c1bef59/attachment.html 


More information about the Rancid-discuss mailing list