Discussion:
[rancid] timeout problems with cisco switch/ap
Wayne Eisenberg
2014-09-12 09:11:21 UTC
Permalink
Hi,

I'm using rancid 2.3.8 to monitor some devices and everything works well except at this one location behind a firewall. Rancid runs great against the firewall itself, and I have no problem reaching the switches and APs behind the firewall. I can login to the switches fine (either directly with ssh on the rancid box or with clogin), but any command I try to issue never seems to execute on the switch when using clogin. (I have no problems if I login with ssh from the rancid box. Response to issued commands is as quick as expected.) Example:

~~~~~~~~~~~~~~~~~~~~~~~~~
[***@xxxxxx rancid]$ bin/clogin switch1
spawn ssh -c 3des -x -l administrator -p 10001 switch1

************************ Warning! Warning! Warning! ************************
This system is restricted to authorized users. Unauthorized
<snip>
************************ Warning! Warning! Warning! ************************
Password:

Switch1#sh ver

Error: TIMEOUT reached
[***@xxxxxx rancid]$ sh ver
sh: ver: No such file or directory
[***@xxxxxx rancid]$
~~~~~~~~~~~~~~~~~~~~~~~~~

Changing the timeout in clogin to 90 seconds doesn't help. Any ideas?


Thanks,
Wayne





________________________________

The information in this Internet e-mail (and any attachments) is confidential, may be legally privileged and is intended solely for the Addressee(s) named above. If you are not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, then any dissemination or copying of this e-mail (and any attachments) is prohibited and may be unlawful. If you received this e-mail in error, please immediately notify us by e-mail or telephone, then delete the message. Thank you.
Wayne Eisenberg
2014-09-12 10:41:00 UTC
Permalink
I just love it when I solve my problem shortly after I ask for help.

After using clogin -d, I saw it was expecting (no pun intended) that I was not in enabled mode when I was. Set autoenable to 1 in .clogin and life is good for the switches.

Thanks for listening anyway. :)


From: Rancid-discuss [mailto:rancid-discuss-***@shrubbery.net] On Behalf Of Wayne Eisenberg
Sent: Friday, September 12, 2014 5:11 AM
To: rancid-***@shrubbery.net
Subject: [rancid] timeout problems with cisco switch/ap

Hi,

I'm using rancid 2.3.8 to monitor some devices and everything works well except at this one location behind a firewall. Rancid runs great against the firewall itself, and I have no problem reaching the switches and APs behind the firewall. I can login to the switches fine (either directly with ssh on the rancid box or with clogin), but any command I try to issue never seems to execute on the switch when using clogin. (I have no problems if I login with ssh from the rancid box. Response to issued commands is as quick as expected.) Example:

~~~~~~~~~~~~~~~~~~~~~~~~~
[***@xxxxxx rancid]$ bin/clogin switch1
spawn ssh -c 3des -x -l administrator -p 10001 switch1

************************ Warning! Warning! Warning! ************************
This system is restricted to authorized users. Unauthorized
<snip>
************************ Warning! Warning! Warning! ************************
Password:

Switch1#sh ver

Error: TIMEOUT reached
[***@xxxxxx rancid]$ sh ver
sh: ver: No such file or directory
[***@xxxxxx rancid]$
~~~~~~~~~~~~~~~~~~~~~~~~~

Changing the timeout in clogin to 90 seconds doesn't help. Any ideas?


Thanks,
Wayne





________________________________

The information in this Internet e-mail (and any attachments) is confidential, may be legally privileged and is intended solely for the Addressee(s) named above. If you are not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, then any dissemination or copying of this e-mail (and any attachments) is prohibited and may be unlawful. If you received this e-mail in error, please immediately notify us by e-mail or telephone, then delete the message. Thank you.
Loading...