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
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
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).
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
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
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#
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.
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