[rancid] Alteon 184

Buchele, Jim Mr CTR USA USA jim.buchele at us.army.mil
Thu Jun 24 23:50:32 UTC 2010


Heas Et All,

After following shrubbery.net/pipermail/rancid-discuss/2009-July/004094.html, I'm still coming up at a loss troubleshooting RANCID against an Alteon loadbalancer.  I'm running Solaris 10, I've installed the expect2 hack. After forcing ssh v1, I've managed to successfully login to the unit with alogin, 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:

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

=== [.cloginrc] ===
[ranciduser at 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

===[Pass command to Alteon via RANCID]===
[ranciduser at 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
admin at lb1.foo.com's password: 

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
 
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.
[ranciduser at myserver /rancid/bin]$


===[Test RANCID Comands]===
[ranciduser at myserver /rancid/bin]$./rancid -d lb1.foo.com
executing clogin -t 90 -c"admin show version;show version;show redundancy secondary;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 /all 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 sup-microcode:;dir /all slavenvram:;dir /all slavebootflash:;dir /all slaveslot0:;dir /all slavedisk0:;dir /all slaveslot1:;dir /all slavedisk1:;dir /all slaveslot2:;dir /all slavedisk2:;dir /all slavesup-bootflash:;dir /all sec-nvram:;dir /all sec-bootflash:;dir /all sec-slot0:;dir /all sec-disk0:;dir /all sec-slot1:;dir /all sec-disk1:;dir /all sec-slot2:;dir /all sec-disk2:;show controllers;show controllers cbus;show diagbus;admin show diag;show 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;show 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 chassis-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-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diagbus,more system: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 controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1:
lb1.foo.com: missed cmd(s): admin show diag,dir /all slavedisk2:,show rsp chassis-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-bootflash:,show spe version,dir /all slaveslot2:,dir /all disk0:,show install active,show bootvar,dir /all slaveslot0:,dir /all sec-slot1:,dir /all harddiska:,dir /all slavenvram:,show flash,dir /all sec-disk2:,dir /all slavesup-bootflash:,dir /all sec-disk0:,dir /all harddiskb:,show variables boot,show boot,show inventory raw,dir /all slavedisk1:,show env all,show module,admin show env all,show controllers,admin show version,show diagbus,more system: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 controllers cbus,dir /all slaveslot1:,dir /all nvram:,show version,show vlan-switch,admin show variables boot,show redundancy secondary,show running-config,show c7200,dir /all slot1:
lb1.foo.com: End of run not found
lb1.foo.com: End of run not found
!
[ranciduser at myserver /rancid/bin]$

===[View Output]===
[ranciduser at myserver/rancid/bin]$cat lb1.foo.com.new 
!RANCID-CONTENT-TYPE: cisco
!
!
!
!
!
[ranciduser at myserver/rancid/bin]$


 



More information about the Rancid-discuss mailing list