[rancid] Rancid & Dell PowerConnect 3348P

128 views
Skip to first unread message

Gerhard Mourani

unread,
Aug 10, 2010, 4:49:21 PM8/10/10
to rancid-...@shrubbery.net

Hello List,

I'm trying to use this add on (http://www.rickyninja.net/rancid/) with Rancid 3.2.4 to make it work with a Dell PowerConnect 3348P switch without success. Does someone has been able to make it work?


--

Gerhard Mourani
Concepteur Logiciel / Software Developer

gmou...@prival.ca      www.prival.ca

bur (450) 761-9973  poste 634     1-866-761-9973      fax (450) 761-9842
9955, avenue Catania, bureau 145, Brossard, Qc J4Z 3V5

P Merci de penser Ă  l'environnement avant d'imprimer ce courriel.

Ce message électronique ainsi que tous les documents annexés s’adressent exclusivement à la personne ou à l’entité inscrit dans la rubrique destinataire ; il peut contenir des renseignements de nature confidentielle ou privilégiée  aux termes des lois applicables. Nulle autre personne ne doit y avoir accès.  Si vous n’êtes pas le destinataire convenu, nous vous avisons par la présente qu'il est strictement interdit d'en divulguer le contenu, de le distribuer, le copier ou l’ utiliser.  Veuillez aviser l’expéditeur immédiatement par retour de courrier électronique et supprimer ce message de votre système.  Toute diffusion ou reproduction de ce document ainsi que tout mesure prise à l’égard de la présente est formellement interdite

John Jetmore

unread,
Aug 11, 2010, 12:26:06 PM8/11/10
to gmou...@prival.ca, rancid-...@shrubbery.net
2010/8/10 Gerhard Mourani <gmou...@prival.ca>:

> Hello List,
>
> I'm trying to use this add on (http://www.rickyninja.net/rancid/) with
> Rancid 3.2.4 to make it work with a Dell PowerConnect 3348P switch without
> success. Does someone has been able to make it work?

Working with 3324s and 6220s here. Have you applied the
doesn't-send-trailing-newline patch?

http://www.rickyninja.net/rancid/patches/echo-newline-final-exit-3324.txt

--John
_______________________________________________
Rancid-discuss mailing list
Rancid-...@shrubbery.net
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

Gerhard Mourani

unread,
Aug 12, 2010, 8:41:19 AM8/12/10
to John Jetmore, rancid-...@shrubbery.net

On August 11, 2010 12:26:06 pm John Jetmore wrote:

> Have you applied the doesn't-send-trailing-newline patch?

Yes, already applied without success, same problem, the /usr/bin/rancid-run command never end.

john heasley

unread,
Aug 12, 2010, 10:09:36 PM8/12/10
to Gerhard Mourani, rancid-...@shrubbery.net
Thu, Aug 12, 2010 at 08:41:19AM -0400, Gerhard Mourani:

> On August 11, 2010 12:26:06 pm John Jetmore wrote:
> > Have you applied the doesn't-send-trailing-newline patch?
> Yes, already applied without success, same problem, the /usr/bin/rancid-run
> command never end.

i can't test that script, but your description begs the question of
whether you are using solaris or linux and have not applied the expect
patch (http://www.shrubbery.net/rancid/#osystems).

Gerhard Mourani

unread,
Aug 13, 2010, 9:09:53 AM8/13/10
to john heasley, rancid-...@shrubbery.net

On August 12, 2010 10:09:36 pm john heasley wrote:

> you are using solaris or linux and have not applied the expect patch

Am using Linux and the expect patch has been applied to the expect source code and recompiled.

Here the log related to this Dell switch when running the /usr/bin/rancid-run binary command.

starting: Fri Aug 13 08:57:32 EDT 2010

Trying to get all of the configs.

opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.

FOUND PROMPT: PowerConnect 3448P#

can not find channel named "exp4"

while executing

"send $send_this"

(procedure "dsend" line 4)

invoked from within

"dsend "[subst -nocommands [lindex $commands $i]]\r""

invoked from within

"if [ string match "*\;*" "$command" ] {

set commands [split $command \;]

set num_commands [llength $commands]

for {set i 0} {$..."

(procedure "run_commands" line 13)

invoked from within

"run_commands $prompt $command"

("foreach" body line 138)

invoked from within

"foreach router [lrange $argv $i end] {

set router [string tolower $router]

send_user "$router\n"

# Figure out the prompt.

# autoenabl..."

(file "/usr/bin/dlogin" line 660)^M

found_end = 0, clean_run = 0

192.168.2.100 dlogin error: Error: TIMEOUT reached

192.168.2.100: missed cmd(s): show version,show running-config,show vlan

192.168.2.100: End of run not found

!

=====================================

Getting missed routers: round 1.

opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.

FOUND PROMPT: PowerConnect 3448P#

can not find channel named "exp4"

while executing

"send $send_this"

(procedure "dsend" line 4)

invoked from within

"dsend "[subst -nocommands [lindex $commands $i]]\r""

invoked from within

"if [ string match "*\;*" "$command" ] {

set commands [split $command \;]

set num_commands [llength $commands]

for {set i 0} {$..."

(procedure "run_commands" line 13)

invoked from within

"run_commands $prompt $command"

("foreach" body line 138)

invoked from within

"foreach router [lrange $argv $i end] {

set router [string tolower $router]

send_user "$router\n"

# Figure out the prompt.

# autoenabl..."

(file "/usr/bin/dlogin" line 660)^M

found_end = 0, clean_run = 0

192.168.2.100 dlogin error: Error: TIMEOUT reached

192.168.2.100: missed cmd(s): show version,show running-config,show vlan

192.168.2.100: End of run not found

!

=====================================

Getting missed routers: round 2.

opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.

FOUND PROMPT: PowerConnect 3448P#

can not find channel named "exp4"

while executing

"send $send_this"

(procedure "dsend" line 4)

invoked from within

"dsend "[subst -nocommands [lindex $commands $i]]\r""

invoked from within

"if [ string match "*\;*" "$command" ] {

set commands [split $command \;]

set num_commands [llength $commands]

for {set i 0} {$..."

(procedure "run_commands" line 13)

invoked from within

"run_commands $prompt $command"

("foreach" body line 138)

invoked from within

"foreach router [lrange $argv $i end] {

set router [string tolower $router]

send_user "$router\n"

# Figure out the prompt.

# autoenabl..."

(file "/usr/bin/dlogin" line 660)^M

found_end = 0, clean_run = 0

192.168.2.100 dlogin error: Error: TIMEOUT reached

192.168.2.100: missed cmd(s): show version,show running-config,show vlan

192.168.2.100: End of run not found

!

=====================================

Getting missed routers: round 3.

opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.

Received signal - ending run (1).

=====================================

Getting missed routers: round 4.

opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.

Received signal - ending run (1).

cvs diff: Diffing .

cvs diff: Diffing configs

cvs diff: cannot find configs/192.168.2.100

cvs commit: Examining .

cvs commit: Examining configs

cvs commit: Up-to-date check failed for `configs/192.168.2.100'

cvs [commit aborted]: correct above errors first!

ls: cannot access 192.168.2.100: No such file or directory

john heasley

unread,
Aug 13, 2010, 2:52:18 PM8/13/10
to Gerhard Mourani, rancid-...@shrubbery.net
Fri, Aug 13, 2010 at 09:09:53AM -0400, Gerhard Mourani:

> On August 12, 2010 10:09:36 pm john heasley wrote:
> > you are using solaris or linux and have not applied the expect patch
> Am using Linux and the expect patch has been applied to the expect source code
> and recompiled.

so, it finishes, but not successfully.

> Trying to get all of the configs.
> opened network stream from 192.168.2.100 if () at /usr/bin/drancid line 273.
> FOUND PROMPT: PowerConnect 3448P#
> can not find channel named "exp4"
> while executing

so, either the expect script closed the channel to ssh/telnet, or the
ssh/telnet command exited, or the device closed the connection prematurely.

try whateveritislogin -c 'show version' hostname

Gerhard Mourani

unread,
Aug 13, 2010, 4:49:15 PM8/13/10
to john heasley, rancid-...@shrubbery.net

On August 13, 2010 02:52:18 pm john heasley wrote:

> ry whateveritislogin -c 'show version' hostname

Here the output of the clogin commad on it.

bash-4.0$ /usr/bin/clogin -c 'show version' 192.168.2.100

192.168.2.100

spawn ssh -c 3des -x -l admin 192.168.2.100

User Name:admin

Password:*********

PowerConnect 3448P> enable

Password:********

PowerConnect 3448P#

PowerConnect 3448P# terminal length 0

% Unrecognized command

PowerConnect 3448P#

john heasley

unread,
Aug 13, 2010, 10:33:01 PM8/13/10
to Gerhard Mourani, rancid-...@shrubbery.net
Fri, Aug 13, 2010 at 04:49:15PM -0400, Gerhard Mourani:

> On August 13, 2010 02:52:18 pm john heasley wrote:
> > ry whateveritislogin -c 'show version' hostname
> Here the output of the clogin commad on it.
>
> bash-4.0$ /usr/bin/clogin -c 'show version' 192.168.2.100

doesnt the dell have its own login cmd? your log has function call 'dsend'
which is not part of clogin.

> 192.168.2.100
> spawn ssh -c 3des -x -l admin 192.168.2.100
>
>
> User Name:admin
> Password:*********
>
> PowerConnect 3448P> enable
> Password:********
>
> PowerConnect 3448P#
> PowerConnect 3448P# terminal length 0
> % Unrecognized command
> PowerConnect 3448P#

sorry, those are all the easy things to test. have to get dirty from here.
ktrace/strace/truss, expect -d / clogin -d, etc.

maybe the author of the dell module or somewith a dell can help you.

Gerhard Mourani

unread,
Aug 16, 2010, 10:29:49 AM8/16/10
to john heasley, rancid-...@shrubbery.net

On August 13, 2010 10:33:01 pm john heasley wrote:

> doesnt the dell have its own login cmd?

I don't think. Anyway thanks for your help here. I think that's one of the reason why the author of Rancid doesn't include Dell support into Rancid.

John Jetmore

unread,
Aug 16, 2010, 10:43:54 AM8/16/10
to gmou...@prival.ca, rancid-...@shrubbery.net
8/16 Gerhard Mourani <gmou...@prival.ca>:

> On August 13, 2010 10:33:01 pm john heasley wrote:
>
>> doesnt the dell have its own login cmd?
>
> I don't think. Anyway thanks for your help here. I think that's one of the
> reason why the author of Rancid doesn't include Dell support into Rancid.

dlogin

Reply all
Reply to author
Forward
0 new messages