Discussion:
[rancid] problems with PowerConnect switches
Wayne Eisenberg
2018-12-07 10:18:54 UTC
Permalink
Hi,

I have a PowerConnect 5448 that I am having trouble with. If I run the steps manually it's fine, but using rancid-run always fails.

The router.db file is:
pc5448;powerconnect;up

The etc/rancid.types.conf section is:

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

and all the info in .clogin is fine.

If I manually run clogin for that switch, it has no problems. Then running 'show system' and 'show running-config' gives no problems.

If I run 'bin/rancid-run -r pc5448', the error messages are:

Trying to get all of the configs.

pc5448: missed cmd(s): all commands
pc5448: End of run not found
pc5448 dllogin error: Error: TIMEOUT reached


I cannot figure out why rancid-run is trying to use dllogin when I have nothing that says to use it. Can someone help me sort this out?

Thanks,
Wayne
heasley
2018-12-07 20:05:48 UTC
Permalink
Post by Wayne Eisenberg
Hi,
I have a PowerConnect 5448 that I am having trouble with. If I run the steps manually it's fine, but using rancid-run always fails.
pc5448;powerconnect;up
powerconnect;script;rancid -t powerconnect
powerconnect;login;clogin
powerconnect;module;dell
powerconnect;inloop;dell::inloop
powerconnect;command;dell::GetSystem;show system
powerconnect;command;dell::GetConf;show running-config
and all the info in .clogin is fine.
If I manually run clogin for that switch, it has no problems. Then running 'show system' and 'show running-config' gives no problems.
meaning that
clogin -c 'show system;show running-config' hostname
completes w/o a timeout? if so, that implies to me that either a pager is
involving itself in an unrecognized manner or there is other unrecognized
input preventing it from finding the prompt reliably, possibly due to TERM
settings (and poor defaults). that could be tested, or it might debugging
to, run that clogin from cron to see how it acts w/o a terminal.
Post by Wayne Eisenberg
Trying to get all of the configs.
pc5448: missed cmd(s): all commands
pc5448: End of run not found
pc5448 dllogin error: Error: TIMEOUT reached
I cannot figure out why rancid-run is trying to use dllogin when I have nothing that says to use it. Can someone help me sort this out?
its not, its just the hard-coded error msg of dell.pm.
Wayne Eisenberg
2018-12-11 06:51:01 UTC
Permalink
-----Original Message-----
Sent: Friday, December 07, 2018 3:06 PM
Subject: Re: [rancid] problems with PowerConnect switches
Post by Wayne Eisenberg
Hi,
I have a PowerConnect 5448 that I am having trouble with. If I run the steps
manually it's fine, but using rancid-run always fails.
Post by Wayne Eisenberg
pc5448;powerconnect;up
powerconnect;script;rancid -t powerconnect powerconnect;login;clogin
powerconnect;module;dell powerconnect;inloop;dell::inloop
powerconnect;command;dell::GetSystem;show system
powerconnect;command;dell::GetConf;show running-config
and all the info in .clogin is fine.
If I manually run clogin for that switch, it has no problems. Then running
'show system' and 'show running-config' gives no problems.
meaning that
clogin -c 'show system;show running-config' hostname completes w/o a
timeout? if so, that implies to me that either a pager is involving itself in an
unrecognized manner or there is other unrecognized input preventing it
from finding the prompt reliably, possibly due to TERM settings (and poor
defaults). that could be tested, or it might debugging to, run that clogin from
cron to see how it acts w/o a terminal.
That results in:

User Name:admin
Password:************

console#
console# terminal length 0
% Unrecognized command

What is issuing the 'terminal length 0' command?

Wayne

Loading...