Discussion:
[rancid] Alteon 184
Buchele, Jim Mr CTR USA USA
2010-06-24 23:50:32 UTC
Permalink
Heas Et All,

After following shrubbery.net/pipermail/rancid-discuss/2009-July/004094.htm=
l, I'm still coming up at a loss troubleshooting RANCID against an Alteon l=
oadbalancer. I'm running Solaris 10, I've installed the expect2 hack. Afte=
r forcing ssh v1, I've managed to successfully login to the unit with alogi=
n, and confirmed that alogin passes commands to the unit, and gets output. =
At this point, in my /var/logs I'm seeing:

lb1.foo.com: missed cmd(s): /info/sys,/cfg/dump
lb1.foo.com: End of run not found

Here's where I am:

=3D=3D=3D [Force SSH v1] =3D=3D=3D
I created a config file in my .ssh directory:
[***@myserver /rancid/bin]$cat /home/ranciduser/.ssh/config=20
Host lb1.foo.com
Protocol 1

=3D=3D=3D [.cloginrc] =3D=3D=3D
[***@myserver /rancid/bin]$cat /home/ranciduser/.cloginrc
# Alteon 184
add user lb1* admin
add userpassword lb1* my_password
add password lb1* my_password
add autoenable lb1* 1
add method lb1* ssh

=3D=3D=3D[Pass command to Alteon via RANCID]=3D=3D=3D
[***@myserver /rancid/bin]$./alogin -c '/info/slb/dump' lb1.foo.com
lb1.foo.com
spawn ssh -c 3des -x -l admin lb1.foo.com
sh: /usr/local/bin/stty: not found
***@lb1.foo.com's password:=20

System Information at 23:02:04 Thu Jun 24, 2010

Alteon 184
sysName: lb1.foo
sysLocation: Alpha_Site

Switch is up 131 days, 14 hours, 2 minutes and 18 seconds.
Last boot: 9:02:02 Sat Feb 13, 2010 (power cycle)

MAC address: 00:04:38:ea:8d:71 IP (If 1) address: 192.168.10.11
Hardware Revision: B
Hardware Part No: 200009E05
Software Version 10.1.1.1 (FLASH image2), active configuration.

Authorized use only! Go Away!

------------------------------------------------------------
[Main Menu]
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]
lb1.foo - Main# lines 0
Lines-per-screen changed from 24 to 0
lb1.foo - Main# /info/slb/dump
Real server state:
20: web01.foo.com, 00:15:17:ab:c4:2e, vlan 10 port 3, health 4, up
21: web02.foo.com, 00:00:00:00:00:00, vlan 0, port 0, health 4, FAILED
22: web03.foo.com, 00:00:00:00:00:00, vlan 0, port 0, health 4, FAILED
23: web04.foo.com, 00:15:17:a8:00:6a, vlan 10, port 3, health 4, up
24: web05.foo.com, 00:15:17:b2:11:c6, vlan 10, port 3, health 4, up

Virtual server state:
10: 192.168.9.4, 00:00:5e:00:01:0a, dname www.foo.com
virtual ports:
80: rport 80, group 1, www-internal, backup none, script2
real servers:
20: web01.foo.com, backup none, 0 ms, group ena, PASS
21: web02.foo.com, backup none, 0 ms, group ena, FAILED

11: 192.168.9.4, 00:00:5e:00:01:0a, dname www.foo.com
virtual ports:
21: rport 80, group 1, www-internal, backup none, script2
real servers:
22: web03.foo.com, backup none, 0 ms, group ena, FAILED
23: web04.foo.com, backup none, 0 ms, group ena, PASS
=20
Redirect filter state:

Port state:
1: 192.168.35.1, client
2: 192.168.35.2, proxy, client, server
3: 192.168.35.3, proxy, client, server
4: 192.168.35.4
5: 192.168.35.5, client, server
6: 192.168.35.6
7: 192.168.35.7
8: 192.168.35.8
9: 0.0.0.0
lb1.foo - Server Load Balancing Information# exit
Session terminated at 23:02:05 Thu Jun 24, 2010.
Connection to lb1.foo.com closed by remote host.
Connection to lb1.foo.com closed.
[***@myserver /rancid/bin]$


=3D=3D=3D[Test RANCID Comands]=3D=3D=3D
[***@myserver /rancid/bin]$./rancid -d lb1.foo.com
executing clogin -t 90 -c"admin show version;show version;show redundancy s=
econdary;show idprom backplane;show install active;admin show env all;show =
env all;show rsp chassis-info;show gsr chassis;show diag chassis-info;show =
boot;show bootvar;admin show variables boot;show variables boot;show flash;=
dir /all nvram:;dir /all bootflash:;dir /all slot0:;dir /all disk0:;dir /al=
l slot1:;dir /all disk1:;dir /all slot2:;dir /all disk2:;dir /all harddisk:=
;dir /all harddiska:;dir /all harddiskb:;dir /all sup-bootflash:;dir /all s=
up-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaves=
lot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /a=
ll slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all s=
ec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;d=
ir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-dis=
k2:;show controllers;show controllers cbus;show diagbus;admin show diag;sho=
w diag;show module;show spe version;show c7200;show inventory raw;show vtp =
status;show vlan;show vlan-switch;show debug;more system:running-config;sho=
w running-config;write term" lb1.foo.com
sh: clogin: not found
lb1.foo.com: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp c=
hassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,=
dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-boo=
tflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install =
active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all hardd=
iska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup=
-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,sho=
w boot,show inventory raw,dir /all slavedisk1:,show env all,show module,adm=
in show env all,show controllers,admin show version,show diagbus,more syste=
m:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir =
/all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp=
status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all=
slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show con=
trollers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-s=
witch,admin show variables boot,show redundancy secondary,show running-conf=
ig,show c7200,dir /all slot1:
lb1.foo.com: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp c=
hassis-info,dir /all sec-slot2:,show diag,dir /all disk1:,show gsr chassis,=
dir /all sec-nvram:,show diag chassis-info,dir /all disk2:,dir /all sec-boo=
tflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install =
active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all hardd=
iska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup=
-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,sho=
w boot,show inventory raw,dir /all slavedisk1:,show env all,show module,adm=
in show env all,show controllers,admin show version,show diagbus,more syste=
m:running-config,dir /all slavedisk0:,show debug,show idprom backplane,dir =
/all bootflash:,dir /all sec-slot0:,dir /all sec-disk1:,write term,show vtp=
status,dir /all sup-bootflash:,dir /all slot2:,dir /all harddisk:,dir /all=
slot0:,dir /all sup-microcode:,show vlan,dir /all slavebootflash:,show con=
trollers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-s=
witch,admin show variables boot,show redundancy secondary,show running-conf=
ig,show c7200,dir /all slot1:
lb1.foo.com: End of run not found
lb1.foo.com: End of run not found
!
[***@myserver /rancid/bin]$

=3D=3D=3D[View Output]=3D=3D=3D
[***@myserver/rancid/bin]$cat lb1.foo.com.new=20
!RANCID-CONTENT-TYPE: cisco
!
!
!
!
!
[***@myserver/rancid/bin]$


=20

Loading...