Discussion:
[rancid] powerconnect problem
Angelo Höngens
2011-02-04 18:24:05 UTC
Permalink
Hey,

I'm running rancid 2.3.6 on CentOS5.5..

I was running on old version of rancid, which worked perfectly for over
a year, but I was stupid enough to break it. (I trashed the vm and
installed a new clean CentOS machine to start fresh)

I'm monitoring cisco, hp and dell devices. Cisco and HP work fine, but I
have some problems with my dell devices (PowerConnect 6224 switches).
I'm running Ricky Ninja's dlogin and drancid scripts, the latest on his
site.

When I run dlogin interactively, it works fine:

-----------------------------------------------------
[***@til-bak-02 logs]$ dlogin -c "show ver"
wol-swi-a1.weeronlinecolo.local
wol-swi-a1.weeronlinecolo.local
spawn ssh -c 3des -x -l root wol-swi-a1.weeronlinecolo.local
***@wol-swi-a1.weeronlinecolo.local's password:

console>enable

console#
console#show ver

<..bla, correct output..]

1 2.2.0.3 2.2.0.3 image1 image1
2 2.2.0.3 2.2.0.3 image1 image1

console#exit

console>exit
^
% Invalid input detected at '^' marker.

console>quitReceived disconnect from 10.216.254.181: 11: Logout
[***@til-bak-02 logs]$
-----------------------------------------------------
As you can see, the command exits nicely (it sends an 'exit', and when
that gives an error it send a 'quit').


Hoewever, when running from rancid-run, it seems to hang. When I tail
the logfile, I see it logs in to the switch, it sends the enable
command, and then.. nothing, everything just hangs:

-----------------------------------------------------
wol-swi-a1.weeronlinecolo.local
spawn ssh -c 3des -x -l root wol-swi-a1.weeronlinecolo.local
***@wol-swi-a1.weeronlinecolo.local's password:

console>enable

console#
console#
-----------------------------------------------------

Does anyone have any clever ideas?
--
With kind regards,


Angelo Höngens
systems administrator

MCSE on Windows 2003
MCSE on Windows 2000
MS Small Business Specialist
------------------------------------------
NetMatch
tourism internet software solutions

Ringbaan Oost 2b
5013 CA Tilburg
+31 (0)13 5811088
+31 (0)13 5821239

***@netmatch.nl
www.netmatch.nl
------------------------------------------
Ron Whitney
2011-02-04 18:43:36 UTC
Permalink
Not sure if this is relevant but on my Powerconnect switches, I created user 'rancid' as a privledged (15) user. I then configured 'add autoenable <device> 1' to my .cloginrc file. This avoids the 'enable' command which may be causing your issue. Just a thought.


Ron Whitney
Network Administrator

Do it Best Corp. | 6502 Nelson Road | Fort Wayne, IN 46803
260.748.5657 (direct) | 260.748.5623 (fax)
-----Original Message-----
Angelo Höngens
Sent: Friday, February 04, 2011 13:24
Subject: [rancid] powerconnect problem
Hey,
I'm running rancid 2.3.6 on CentOS5.5..
I was running on old version of rancid, which worked
perfectly for over a year, but I was stupid enough to break
it. (I trashed the vm and installed a new clean CentOS
machine to start fresh)
I'm monitoring cisco, hp and dell devices. Cisco and HP work
fine, but I have some problems with my dell devices
(PowerConnect 6224 switches). I'm running Ricky Ninja's
dlogin and drancid scripts, the latest on his site.
-----------------------------------------------------
wol-swi-a1.weeronlinecolo.local
wol-swi-a1.weeronlinecolo.local spawn ssh -c 3des -x -l root
wol-swi-a1.weeronlinecolo.local
console>enable
console#
console#show ver
<..bla, correct output..]
1 2.2.0.3 2.2.0.3 image1 image1
2 2.2.0.3 2.2.0.3 image1 image1
console#exit
console>exit
^
% Invalid input detected at '^' marker.
console>quitReceived disconnect from 10.216.254.181: 11: Logout
-----------------------------------------------------
As you can see, the command exits nicely (it sends an 'exit',
and when that gives an error it send a 'quit').
Hoewever, when running from rancid-run, it seems to hang.
When I tail the logfile, I see it logs in to the switch, it
-----------------------------------------------------
wol-swi-a1.weeronlinecolo.local
spawn ssh -c 3des -x -l root wol-swi-a1.weeronlinecolo.local
console>enable
console#
console#
-----------------------------------------------------
Does anyone have any clever ideas?
--
With kind regards,
Angelo Höngens
systems administrator
MCSE on Windows 2003
MCSE on Windows 2000
MS Small Business Specialist
------------------------------------------
NetMatch
tourism internet software solutions
Ringbaan Oost 2b
5013 CA Tilburg
+31 (0)13 5811088
+31 (0)13 5821239
www.netmatch.nl
------------------------------------------
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Angelo Höngens
2011-02-04 18:47:01 UTC
Permalink
Post by Ron Whitney
Not sure if this is relevant but on my Powerconnect switches, I created user 'rancid' as a privledged (15) user. I then configured 'add autoenable <device> 1' to my .cloginrc file. This avoids the 'enable' command which may be causing your issue. Just a thought.
--
With kind regards,


Angelo Höngens
systems administrator

MCSE on Windows 2003
MCSE on Windows 2000
MS Small Business Specialist
------------------------------------------
NetMatch
tourism internet software solutions

Ringbaan Oost 2b
5013 CA Tilburg
+31 (0)13 5811088
+31 (0)13 5821239

***@netmatch.nl
www.netmatch.nl
------------------------------------------
Angelo Höngens
2011-02-04 18:48:11 UTC
Permalink
Post by Ron Whitney
Not sure if this is relevant but on my Powerconnect switches, I
created user 'rancid' as a privledged (15) user. I then configured
'add autoenable <device> 1' to my .cloginrc file. This avoids the
'enable' command which may be causing your issue. Just a thought.
doh, hit the wrong button..

I'm connecting using the 'root' account over ssh. But I can try adding a
user, good idea, perhaps that behaves different from the root account.
--
With kind regards,


Angelo Höngens
systems administrator

MCSE on Windows 2003
MCSE on Windows 2000
MS Small Business Specialist
------------------------------------------
NetMatch
tourism internet software solutions

Ringbaan Oost 2b
5013 CA Tilburg
+31 (0)13 5811088
+31 (0)13 5821239

***@netmatch.nl
www.netmatch.nl
------------------------------------------
Ron Whitney
2011-02-04 19:15:53 UTC
Permalink
Post by Angelo Höngens
I'm connecting using the 'root' account over ssh. But I can
try adding a user, good idea, perhaps that behaves different
from the root account.
FWIW, my switch is using the 'Login' Authentication Profile instead of the 'Enable' profile.
Angelo Höngens
2011-02-04 19:46:25 UTC
Permalink
Post by Ron Whitney
Post by Angelo Höngens
I'm connecting using the 'root' account over ssh. But I can try
adding a user, good idea, perhaps that behaves different from the
root account.
FWIW, my switch is using the 'Login' Authentication Profile instead
of the 'Enable' profile.
I am using the basic defaults. A 'show run' shows me only some
'username' lines, but nothing else concerning authentication.

When I go to 'select authentication' in the GUI, I see it uses the
default authentication profile 'networkList' for ssh login, and the
profile 'enableList' for ssh enable. I tried some stuff there, but did
not get anywhere, and rolled back.

I'm a bit reluctant to change anything on the switches, as I want to
keep things as simple and a default as possible, and the 12 M6220's I
have, have been monitored fine in the past..

I think I'm going to try some old versions of rancid, and see if
anything useful comes up there.
--
With kind regards,


Angelo Höngens
systems administrator

MCSE on Windows 2003
MCSE on Windows 2000
MS Small Business Specialist
------------------------------------------
NetMatch
tourism internet software solutions

Ringbaan Oost 2b
5013 CA Tilburg
+31 (0)13 5811088
+31 (0)13 5821239

***@netmatch.nl
www.netmatch.nl
------------------------------------------
Continue reading on narkive:
Search results for '[rancid] powerconnect problem' (Questions and Answers)
3
replies
How can I get the XM Radio to work in a 2007 Honda Civic?
started 2010-10-28 16:11:52 UTC
car audio
Loading...