[rancid] Re: Rancid with Ethernet Blade Switch for HP

Jethro R Binks jethro.binks at strath.ac.uk
Fri Aug 1 19:15:23 UTC 2008


On Fri, 1 Aug 2008, Olli Janatuinen wrote:

> We have many "GbE2c Ethernet Blade Switch for HP" switches in our 
> company and we want get its configs for Rancid.
> 
> In HP Blade switches haven't same software than in HP Procurve switches.
> I can login to switches with hlogin but I can't get configurations.
> 
> I'm not very good coder but I you can tell me what I need change I think 
>    I can get it working.
> 
> My hlogin and manual config getting log below.

I have some of these, although I haven't got around to getting rancid to 
work with them yet.

If you are using the default AOS CLI, then you may have more success using 
alogin and arancid rather than hlogin, which are for Alteon's WebOS.  If 
you see the commands in arancid, they are much the same.  However, I 
suspect some refinement will be required, which would be useful to feed 
back into the alogin/arancid modules.

The reason why I haven't done this is because for familiarity reasons, I 
changed the command mode to be the IOS-like interface rather than the AOS 
one.  Unfortunately it isn't near enough IOS-like for plain cisco 
rancid/clogin to work well enough just yet, from what I recall.

Hope that helps a bit,

Jethro.

> 
> Best regards, Olli Janatuinen
> 
> 
> 
> 
> bash-3.1$ hlogin 10.10.10.2
> 10.10.10.2
> spawn hpuifilter -- telnet 10.10.10.2
> Trying 10.10.10.2...
> Connected to 10.10.10.2 (10.10.10.2).
> Escape character is '^]'.
> 
> GbE2c Ethernet Blade Switch for HP c-Class BladeSystem.
> 
> Copyright(C)2003 Hewlett-Packard Development Company, L.P.
> 
> 
> Enter password:
> ------------------------------------------------------------
> [Main Menu]
> 
> Aug  1 11:22:33 NOTICE  mgmt: (admin) login from host 10.10.10.3
>       info     - Information Menu
>       stats    - Statistics Menu
>       cfg      - Configuration Menu
>       oper     - Operations Command Menu
>       boot     - Boot Options Menu
>       maint    - Maintenance Menu
>       diff     - Show pending config changes  [global command]
>       apply    - Apply pending config changes [global command]
>       save     - Save updated config to FLASH [global command]
>       revert   - Revert pending or applied changes [global command]
>       exit     - Exit  [global command, always available]
> 
>  >> Main#
> 
> 
>  >> Main# cfg
> ------------------------------------------------------------
> [Configuration Menu]
>       sys      - System-wide Parameter Menu
>       port     - Port Menu
>       l2       - Layer 2 Menu
>       l3       - Layer 3 Menu
>       rmon     - RMON Menu
>       pmirr    - Port Mirroring Menu
>       ufd      - Uplink Failure Detection Menu
>       dump     - Dump current configuration to script file
>       ptcfg    - Backup current configuration to TFTP server
>       gtcfg    - Restore current configuration from TFTP server
>       cur      - Display current configuration
> 
> 
>  >> Configuration#
> 
>  >> Configuration#dump
> script start "HP c-Class GbE2c Switch" 4  /**** DO NOT EDIT THIS LINE!
> /* Configuration dump taken 11:22:33 Fri Aug  1, 2008
> /* Version 1.1.0,  Base MAC address 00:aa:bb:cc:ee:ff
> /* RackId: Default RUID, RackName: G2
> /* Enclosure: AA99883XX1, EnclosureName: test-host
> /* Slot:  1
> /c/sys/ntp
>          on
>          prisrv 10.10.10.4
>          tzone +2:00
> /c/port 1
>          pvid 3001
> 
> <<<<<<<<<<<<< config cutted >>>>>>>>>>>>>>><<<<><<<
> 
> /c/l3/gw 1
>          ena
>          addr 10.10.10.1
> /
> script end  /**** DO NOT EDIT THIS LINE!
> 
>  >> Configuration# exit
> Session terminated at 11:22:33 Fri Aug  1, 2008.
> Connection closed by foreign host.
> bash-3.1$
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at shrubbery.net
> http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> 

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks
Computing Officer, IT Services
University Of Strathclyde, Glasgow, UK


More information about the Rancid-discuss mailing list