Discussion:
[rancid] Rancid with Ethernet Blade Switch for HP
Olli Janatuinen
2008-08-01 15:43:40 UTC
Permalink
Hi

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.


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$
Jethro R Binks
2008-08-01 19:15:23 UTC
Permalink
Post by Olli Janatuinen
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.
Post by Olli Janatuinen
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.
------------------------------------------------------------
[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
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Jethro R Binks
Computing Officer, IT Services
University Of Strathclyde, Glasgow, UK
Olli Janatuinen
2008-08-04 16:42:30 UTC
Permalink
Hi

Peter Serwe tell me that Blade Switch for HP are actually Nortel
(formerly Alteon products) OEM'd to HP.

They works with alteon mode doesn't need any changes to code or devices.
So problem is solved and I'm happy.

I think that is good idea add description to alteon mode that they works
with HP Blade Switches too.


Best regards, Olli Janatuinen
Post by Jethro R Binks
Post by Olli Janatuinen
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.
Loading...