[rancid] Rancid with Dell 6248 errors
Antonio Querubin
tony at lavanauts.org
Thu Oct 8 20:17:29 UTC 2015
On Thu, 8 Oct 2015, David Ahrens wrote:
> 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
> 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: tony at lavanauts.org
xmpp: antonioquerubin at gmail.com
More information about the Rancid-discuss
mailing list