[rancid] Re: Problems with Dell Extension

Jeremy Singletary jeremys at rickyninja.net
Sat Aug 15 04:44:40 UTC 2009


Your rancid-fe is missing the dell manufacturer.  Edit rancid-fe and add
the following line:

elsif ($vendor =~ /^dell$/i)        { exec('drancid', $router); }


On 08/14/09, Josh Rogers <2009 at tybox.net> said:
> 
>    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 Thu, Jun 4, 2009 at 3:29 PM, Austin Schutz <[1]tex at off.org> wrote:
> 
>      On Wed, 3 Jun 2009 17:41:39 -0500
> 
>    Temporary Mailbox <[2]2009 at tybox.net> wrote:
>    > I didn't realize that is how logind takes arguments.  When I tested,
>    > it did not replace the , with a \n:
>    >
>    > 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
>    >
>    >  On  Wed,  Jun  3,  2009  at 5:15 PM, Austin Schutz <[3]tex at off.org>
>    wrote:
>    >
>    > > On Wed, 3 Jun 2009 14:01:13 -0500
>    > > Temporary Mailbox <[4]2009 at tybox.net> wrote:
>    > >
>    > > > I'm attempting to set up the dell extension found at
>    > > > [5]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
>    > >
>    > > I would try dlogin -c "show version,show running-config,show vlan"
>    > >
> 
>      My mistake: This should be:
> 
>     -c "show version;show running-config;show vlan"
> 
>      the separator is ';', not ','.
>      Austin
> 
> References
> 
>    1. mailto:tex at off.org
>    2. mailto:2009 at tybox.net
>    3. mailto:tex at off.org
>    4. mailto:2009 at tybox.net
>    5. http://www.rickyninja.net/rancid/

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


More information about the Rancid-discuss mailing list