Discussion:
[rancid] Rancid with Dell 6248 errors
David Ahrens
2015-10-08 19:16:29 UTC
Permalink
Hi,

I'm testing Rancid 3.2 with a Dell Powerconnect 6248. The Dell is running version 3.3.3.3 of the firmware.

When I run:
/usr/local/rancid/bin/clogin -f .cloginrc rancid-test

I'm able to login and get a prompt "rancid-test>". If I hit return, I immediately get another command prompt.

When I run "/usr/local/bin/rancid-run" The log file shows
Error: TIMEOUT reached
Missed cmd(s): all commands
End of run not found

When I run
/usr/local/rancid/bin/dllogin -f .cloginrc rancid-test
Or
/usr/local/rancid/bin/hlogin -f .cloginrc rancid-test

I get a prompt "rancid-test>" but if I hit return at the prompt, there's no response and eventually the connection is closed with "Error: TIMEOUT reached".

For my router.db file, I've tried both
rancid-test;smc;up
and
rancid-test;dell;up

For .cloginrc file I have:
add method {ssh}
add autoenable rancid-test 1
add timeout rancid-test {30}
add cyphertype rancid-test {aes256-crtr}
add user rancid-test {ranciduser}
add password {##########}


Regards,
David
Antonio Querubin
2015-10-08 20:17:29 UTC
Permalink
Post by David Ahrens
I'm testing Rancid 3.2 with a Dell Powerconnect 6248. The Dell is
running version 3.3.3.3 of the firmware.
/usr/local/rancid/bin/clogin -f .cloginrc rancid-test
I'm able to login and get a prompt "rancid-test>". If I hit return, I
immediately get another command prompt.
When I run "/usr/local/bin/rancid-run" The log file shows
Error: TIMEOUT reached
Missed cmd(s): all commands
End of run not found
add password {##########}
Dell switches originate from multiple vendors. The following patch for
dell.pm for PowerConnect 7048 may work for you:


--- dell.pm 2014-10-06 18:17:17.000000000 -1000
+++ powerconnect.pm 2015-02-23 14:44:57.360419809 -1000
@@ -1,4 +1,4 @@
-package dell;
+package powerconnect;
##
## $Id: dlrancid.in 2258 2010-10-11 20:49:05Z heas $
##
@@ -102,7 +102,7 @@
TOP: while(<$INPUT>) {
tr/\015//d;
# XXX this match is not correct for DELL
- if (/[>#]\s?exit$/) {
+ if (/[>#]\s?exit/) {
$clean_run = 1;
last;
}


And add the following to rancid.types.conf:

powerconnect;script;rancid -t powerconnect
powerconnect;login;clogin
powerconnect;module;powerconnect
powerconnect;inloop;powerconnect::inloop
powerconnect;command;powerconnect::GetSystem;show switch
powerconnect;command;powerconnect::GetConf;show running-config


YMMV

Antonio Querubin
e-mail: ***@lavanauts.org
xmpp: ***@gmail.com

Continue reading on narkive:
Loading...