[rancid] Rancid and Nortel 8600

AJ Schroeder AJ.Schroeder at directsupply.com
Mon Nov 4 20:55:01 UTC 2013


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?

Thanks,

AJ

-----Original Message-----
From: rancid-discuss-bounces at shrubbery.net [mailto:rancid-discuss-bounces at shrubbery.net] On Behalf Of heasley
Sent: Wednesday, October 30, 2013 5:19 PM
To: Alan McKinnon
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] Rancid and Nortel 8600

Wed, Oct 30, 2013 at 08:27:12AM +0200, Alan McKinnon:
> Hi AJ,
> 
> That would explain it.
> 
> It's most unusual that it happens when brancid is running though, as 
> it's not idle, it's running commands in rapid succession. Tuning back 
> the timeout settings on the switch will probably solve your issue as 
> everything else you mention looks fine.
> 
> For troubleshooting things like this, I find
> 
> brancid -d <hostname>
> 
> very useful. It dumps the entire *login command to the console where 
> you can copy-paste it and run it repeatedly, plus lots of error output.
> 
> 
> 
> On 29/10/2013 16:53, AJ Schroeder wrote:
> > Alan,
> > 
> > Thanks for the reply. I ran blogin manually against the device and it logs me right in, however after letting it idle about 30 seconds I get the TIMEOUT reached message:

its not completing the login - its not matching the prompt that its looking for, it'd gone into interactive mode at this point and you'd be able to type at the prompt.

blogin -d host  will help you debug.

> > rancid at linux-server:~> bin/blogin host.example.com host.example.com 
> > spawn ssh -c 3des -x -l rwa host.example.com rwa at host.example.com's 
> > password:
> > 
> > Nortel8600:5#
> > Error: TIMEOUT reached
> > rancid at linux-server:~>
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss at shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss


More information about the Rancid-discuss mailing list