[rancid] Rancid and Nortel 8600
heas at shrubbery.net
Tue Nov 5 23:02:47 UTC 2013
Mon, Nov 04, 2013 at 08:55:01PM +0000, AJ Schroeder:
> I am making some progress. I followed the article at http://www.shrubbery.net/pipermail/rancid-discuss/2004-July/000808.html and created a "passrancid" and a "passlogin" based on the diff outputs. I am now able to login using those two files and rancid executes a show config, but the switch disconnects during the show config command. I continued to search and found the thread http://www.gossamer-threads.com/lists/rancid/users/2825 describing the same issue that I am seeing, but I don't think there ever was any resolution to the problem. The last comment was that expect was probably hanging on a pager, so I executed this command:
> expect -d /usr/bin/passlogin -c "show config" switch.example.com
> And then I see this output and where I get cut off:
> expect: does "vlan 208 ports remove 1/1-1/15,2/1-2/15,3/1-3/48,4/" (spawn_id exp4) match glob pattern "\n"? no
> 1-4/48,7/1-7/48,8/1-8/48,9/1-9/48,10/1-10/48 member portmember
> vlan 208 ports add 1/16,2/16 member portmember
> vlan 214 create byport 1 name "VLAN" color 3
> vlan 214 add-mlt 4
> vlan 214 ports remove 1/1-1/15,2/1-2/15,3/1-3/48,4/1-4/48,7/1-7/48,8/1-8/48,9/1-9/48,10/1-10/48 member portmember
> vlan 214 ports add 1/16,2/16 member portmember
> vlan 223 create byport 1 name "VOIP" color 3
> vlan 223 add-mlt 4
> vlan 223 ports remove 1/1-1/15,2/1-2/15,3/1-3/Connection to switch.example.com closed by remote host.
> Connection to switch.example.com closed.
> When I use passlogin to simply login to the switch I can manually run "show config" and everything works fine.
> Any idea on how to fix this?
buy a juniper? look for core dumps from expect, or run the commands your
script uses with -c of the login command and look for the disconnect/hang,
or tcpdump. its probably the device failing.
More information about the Rancid-discuss