Discussion:
[rancid] Problems with Dell Extension
Temporary Mailbox
2009-06-03 19:01:13 UTC
Permalink
I'm attempting to set up the dell extension found at
http://www.rickyninja.net/rancid/

Everything seems to work fine when logging in with dlogin:

$ sudo -u www /opt/local/libexec/rancid/dlogin -autoenable -u Engineer -p
<snip> -c "show version" 10.13.8.1
10.13.8.1
spawn telnet 10.13.8.1
Trying 10.13.8.1...
Connected to 10.13.8.1.
Escape character is '^]'.
04-Jun-2009 02:12:41 %MSCM-I-NEWTERM: New TELNET connection from
10.75.224.12
User Name:Engineer
Password:**********

TW-G-6024-1#
TW-G-6024-1# show version
SW version 1.0.2.07 ( date 21-Nov-2003 time 09:58:38 )
Boot version 1.0.0.13 ( date 13-Aug-2003 time 15:28:31 )
HW version 00.01.64
TW-G-6024-1#eConnection closed by foreign host.


However, when I set up cloginrc:

#CTX
add autoenable 10.13.* 1
add method 10.13.* telnet
add password 10.13.* Engineer <snip>


and router.db:

10.13.8.1:dell:up


It doesn't seem to work when running rancid manually:

$ sudo -u www /opt/local/bin/rancid-run GROUP -r 10.13.8.1

Trying to get all of the configs.
opened network stream from 10.13.8.1 if () at
/opt/local/libexec/rancid/drancid line 266.
found_end = 0, clean_run = 0
10.13.8.1 dlogin error: Error: Connection closed (telnet): 10.13.8.1
10.13.8.1: missed cmd(s): show version,show running-config,show vlan
10.13.8.1: End of run not found
!


The error in the log isn't really revealing.

I installed rancid from macports, this is in the header of rancid-run:

## $Id: rancid-run.in,v 1.30 2004/03/12 23:17:28 heas Exp $


I really appreciate any support/ideas/help anyone can offer to help figure
this out.

-Josh
Jeremy Singletary
2009-06-03 20:14:18 UTC
Permalink
What happens if you run dlogin from the command line with a switch
command that will produce more than a page of output? Try dlogin with
the show running-config command (assuming there's more than one page of
ocnfig), and let me know if it hangs.

-jeremy
I'm attempting to set up the dell extension found at
[1]http://www.rickyninja.net/rancid/
$ sudo -u www /opt/local/libexec/rancid/dlogin -autoenable -u Engineer
-p <snip> -c "show version" 10.13.8.1
10.13.8.1
spawn telnet 10.13.8.1
Trying 10.13.8.1...
Connected to 10.13.8.1.
Escape character is '^]'.
04-Jun-2009 02:12:41 %MSCM-I-NEWTERM: New TELNET connection from
10.75.224.12
User Name:Engineer
Password:**********
TW-G-6024-1#
TW-G-6024-1# show version
SW version 1.0.2.07 ( date 21-Nov-2003 time 09:58:38 )
Boot version 1.0.0.13 ( date 13-Aug-2003 time 15:28:31 )
HW version 00.01.64
TW-G-6024-1#eConnection closed by foreign host.
#CTX
add autoenable 10.13.* 1
add method 10.13.* telnet
add password 10.13.* Engineer <snip>
10.13.8.1:dell:up
$ sudo -u www /opt/local/bin/rancid-run GROUP -r 10.13.8.1
Trying to get all of the configs.
opened network stream from 10.13.8.1 if () at
/opt/local/libexec/rancid/drancid line 266.
found_end = 0, clean_run = 0
10.13.8.1 dlogin error: Error: Connection closed (telnet): 10.13.8.1
[2]10.13.8.1: missed cmd(s): show version,show running-config,show
vlan
[3]10.13.8.1: End of run not found
!
The error in the log isn't really revealing.
## $Id: [4]rancid-run.in,v 1.30 2004/03/12 23:17:28 heas Exp $
I really appreciate any support/ideas/help anyone can offer to help
figure this out.
-Josh
References
1. http://www.rickyninja.net/rancid/
2. http://10.13.8.1/
3. http://10.13.8.1/
4. http://rancid-run.in/
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Temporary Mailbox
2009-06-03 20:30:51 UTC
Permalink
Good question.

It pages through it w/out error or problem.

Any other ideas?
Post by Jeremy Singletary
What happens if you run dlogin from the command line with a switch
command that will produce more than a page of output? Try dlogin with
the show running-config command (assuming there's more than one page of
ocnfig), and let me know if it hangs.
-jeremy
I'm attempting to set up the dell extension found at
[1]http://www.rickyninja.net/rancid/
$ sudo -u www /opt/local/libexec/rancid/dlogin -autoenable -u Engineer
-p <snip> -c "show version" 10.13.8.1
10.13.8.1
spawn telnet 10.13.8.1
Trying 10.13.8.1...
Connected to 10.13.8.1.
Escape character is '^]'.
04-Jun-2009 02:12:41 %MSCM-I-NEWTERM: New TELNET connection from
10.75.224.12
User Name:Engineer
Password:**********
TW-G-6024-1#
TW-G-6024-1# show version
SW version 1.0.2.07 ( date 21-Nov-2003 time 09:58:38 )
Boot version 1.0.0.13 ( date 13-Aug-2003 time 15:28:31 )
HW version 00.01.64
TW-G-6024-1#eConnection closed by foreign host.
#CTX
add autoenable 10.13.* 1
add method 10.13.* telnet
add password 10.13.* Engineer <snip>
10.13.8.1:dell:up
$ sudo -u www /opt/local/bin/rancid-run GROUP -r 10.13.8.1
Trying to get all of the configs.
opened network stream from 10.13.8.1 if () at
/opt/local/libexec/rancid/drancid line 266.
found_end = 0, clean_run = 0
10.13.8.1 dlogin error: Error: Connection closed (telnet): 10.13.8.1
[2]10.13.8.1: missed cmd(s): show version,show
running-config,show
vlan
[3]10.13.8.1: End of run not found
!
The error in the log isn't really revealing.
## $Id: [4]rancid-run.in,v 1.30 2004/03/12 23:17:28 heas Exp $
I really appreciate any support/ideas/help anyone can offer to help
figure this out.
-Josh
References
1. http://www.rickyninja.net/rancid/
2. http://10.13.8.1/
3. http://10.13.8.1/
4. http://rancid-run.in/
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Austin Schutz
2009-06-03 22:15:22 UTC
Permalink
On Wed, 3 Jun 2009 14:01:13 -0500
Post by Temporary Mailbox
I'm attempting to set up the dell extension found at
http://www.rickyninja.net/rancid/
$ sudo -u www /opt/local/libexec/rancid/dlogin -autoenable -u
Engineer -p <snip> -c "show version" 10.13.8.1
I would try dlogin -c "show version,show running-config,show vlan"

That way you are running the same commands as rancid would be running.


Austin
Josh Rogers
2009-08-15 04:34:34 UTC
Permalink
Using a semicolon as the deliminator caused running the dlogin script
manually to work. Its still not working when called from rancid-run though.

I did find something in the log file that reveals the problem:

unknown router manufacturer for a1.aus: dell

So... I'm guessing this is because I didn't install drancid/dlogin
correctly. How do I let rancid-run know about the newly installed
manufacturer (and corresponding scripts)?

-Josh
On Wed, 3 Jun 2009 17:41:39 -0500
I didn't realize that is how logind takes arguments. When I tested,
TW-G-6024-1# show version,show running-config,show vlan
% Unrecognized command
So... is this exactly how rancid is calling dlogin?
If so, I'm guessing I need to look at how to do a "s/,/\n/g" on the -c
argument of dlogin ?
-Josh
Post by Austin Schutz
On Wed, 3 Jun 2009 14:01:13 -0500
Post by Temporary Mailbox
I'm attempting to set up the dell extension found at
http://www.rickyninja.net/rancid/
$ sudo -u www /opt/local/libexec/rancid/dlogin -autoenable -u
Engineer -p <snip> -c "show version" 10.13.8.1
I would try dlogin -c "show version,show running-config,show vlan"
-c "show version;show running-config;show vlan"
the separator is ';', not ','.
Austin
Jeremy Singletary
2009-08-15 04:44:40 UTC
Permalink
Your rancid-fe is missing the dell manufacturer. Edit rancid-fe and add
the following line:

elsif ($vendor =~ /^dell$/i) { exec('drancid', $router); }
Using a semicolon as the deliminator caused running the dlogin script
manually to work. Its still not working when called from rancid-run
though.
unknown router manufacturer for a1.aus: dell
So... I'm guessing this is because I didn't install drancid/dlogin
correctly. How do I let rancid-run know about the newly installed
manufacturer (and corresponding scripts)?
-Josh
On Wed, 3 Jun 2009 17:41:39 -0500
I didn't realize that is how logind takes arguments. When I tested,
TW-G-6024-1# show version,show running-config,show vlan
% Unrecognized command
So... is this exactly how rancid is calling dlogin?
If so, I'm guessing I need to look at how to do a "s/,/\n/g" on the
-c
argument of dlogin ?
-Josh
Post by Austin Schutz
On Wed, 3 Jun 2009 14:01:13 -0500
Post by Temporary Mailbox
I'm attempting to set up the dell extension found at
[5]http://www.rickyninja.net/rancid/
$ sudo -u www /opt/local/libexec/rancid/dlogin -autoenable -u
Engineer -p <snip> -c "show version" 10.13.8.1
I would try dlogin -c "show version,show running-config,show vlan"
-c "show version;show running-config;show vlan"
the separator is ';', not ','.
Austin
References
5. http://www.rickyninja.net/rancid/
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
john heasley
2009-06-04 18:00:38 UTC
Permalink
Post by Temporary Mailbox
I'm attempting to set up the dell extension found at
http://www.rickyninja.net/rancid/
Do the SMC scripts work for these switches? some of the dell switches
are SMC OEMs.
Mahaffey, Brian
2009-06-05 16:54:40 UTC
Permalink
I tried to google this error but I am not seeing any results so I
apologize if this is one of those regular questions.

Has anyone ran into this? Running 2.3.2a9 figured I might try 2.3.2a10
to see if this would fix the issue.

-bash-3.2$ ./hlogin hp5308-b6-1.pelco.org
hp5308-b6-1.pelco.org
spawn hpuifilter -- ssh -c 3des -x -l suser hp5308-b6-1.pelco.org

Error: ssh failed: couldn't execute "hpuifilter": no such file or
directory

Hp5308-b6-1.pelco.org:hp:up correctly configured in router.db

Clogin works without issue with cisco. I have my passwords in .cloginrc
when I read the hlogin man page it sends me to clogin so I don't know if
I did the hp setup properly for rancid.

- ------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to ***@pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation.
- ------------------------------------------------------------------------------
john heasley
2009-06-05 17:03:30 UTC
Permalink
Post by Mahaffey, Brian
I tried to google this error but I am not seeing any results so I
apologize if this is one of those regular questions.
Has anyone ran into this? Running 2.3.2a9 figured I might try 2.3.2a10
to see if this would fix the issue.
-bash-3.2$ ./hlogin hp5308-b6-1.pelco.org
hp5308-b6-1.pelco.org
spawn hpuifilter -- ssh -c 3des -x -l suser hp5308-b6-1.pelco.org
Error: ssh failed: couldn't execute "hpuifilter": no such file or
directory
fix your PATH to include whatever dir has this program
Post by Mahaffey, Brian
Hp5308-b6-1.pelco.org:hp:up correctly configured in router.db
Clogin works without issue with cisco. I have my passwords in .cloginrc
when I read the hlogin man page it sends me to clogin so I don't know if
I did the hp setup properly for rancid.
- ------------------------------------------------------------------------------
- ------------------------------------------------------------------------------
_______________________________________________
Rancid-discuss mailing list
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
Loading...