[rancid] Re: Dell Powerconnect switches - problem and suggestion

john heasley heas at shrubbery.net
Mon Aug 17 19:52:39 UTC 2009


Sat, Aug 15, 2009 at 10:46:57AM -0500, Josh Rogers:
> >
> > Did you look into what John Heasley suggested previously about trying
> > the SMC scripts?
> 
> I did try, but had trouble getting them to work.  They want to call
> hpuifilter, which doesn't connect for some reason, and I didn't get any
> further.

what do you mean by 'doent't connect for some reason'?

> I continued working on getting drancid/dlogin to work, and managed to get it
> to get past 'show vlan' more prompt hanging by removing the carrot ^ from
> the RE.

removing the anchor is a mistake.  i'd guess it doesnt match because there
are probably control characters before the prompt.

> Now, it completes the commands and shows it properly, but when it
> issues the final 'exit' command to disconnect, its picking up the
> "Connection closed by..." string created by the session closing and believes
> it did not close cleanly.
> 
> 
> 
> On Fri, Aug 14, 2009 at 11:23 PM, Jeremy Singletary
> <jeremys at rickyninja.net>wrote:
> 
> > You'll also need a modified rancid-fe that recognizes the dell string in
> > router.db and calls drancid.
> >
> > Did you look into what John Heasley suggested previously about trying
> > the SMC scripts?
> >
> > -jeremy
> >
> > On 08/14/09, Josh Rogers <2009 at tybox.net> said:
> > >
> > >    What  steps are necessary to monitor Dell switches?  Download drancid,
> > >    dlogin  and  put  them  in /opt/local/libexec/rancid with other rancid
> > >    executables,  then  what?   Update router.db and specify a device as a
> > >    'dell' instead of 'cisco' or 'juniper'
> > >    Is that basically it?
> > >
> > >    On    Fri,    Aug   14,   2009   at   9:45   PM,   Jeremy   Singletary
> > >    <[1]jeremys at rickyninja.net> wrote:
> > >
> > >      Looks  like  there  are some invisible characters showing up in the
> > >      pager
> > >      in  newer  Dells.  Download this version of dlogin, and let us know
> > >      if it
> > >      resolves the issue.
> > >      [2]http://www.rickyninja.net/rancid/dlogin-dev
> > >      Thanks,
> > >      Jeremy
> > >
> > >    On 08/14/09, George Hills <[3]george at brightbox.co.uk> said:
> > >    > Hi,
> > >    >
> > >    >  My  thanks to Jeremy Singletary for his drancid/dlogin scripts, and
> > >    Nate
> > >    > Steffen for his updates and email help.
> > >    >
> > >    > I've had a couple of different problems trying to get RANCID working
> > >    > with some Dell Powerconnect switches recently.
> > >    >
> > >    >  I'm  using  rancid  2.3.2a7 from the Ubuntu package on Ubuntu Hardy
> > >    amd64.
> > >    >
> > >    >  My  Powerconnects  are  6248s running 2.0.1.2 and 2.2.0.3 and 5324s
> > >    running
> > >    > 2.0.0.40.
> > >    >
> > >    >  The 6248s had an easy problem - the dlogin script is sending "exit"
> > >    and
> > >    >  expecting to get out, but that only takes it out of enable mode. It
> > >    then
> > >    > needs to send "quit" (*not* "exit" again) afterwards to get out.
> > >    >
> > >    > I bodged this by just adding a line:
> > >    >
> > >    > strowger at beast:~$ diff dlogin [4]dlogin.gh
> > >    > 672a673
> > >    > >     dsend "quit\r"
> > >    >
> > >    >
> > >    > On the 5348 (where "exit" from enable mode logs you off...sigh...) I
> > >    > think there's a problem with the pager. My "more" prompts look like
> > >    >
> > >    > "More: <space>,  Quit: q, One line: <return> "
> > >    >
> > >    >  and dlogin freezes when it sees one. Other than that it works fine.
> > >    I
> > >    >  guess there's a problem with the regex but I can't work out what it
> > >    is.
> > >    > Would be grateful for any suggestions.
> > >    >
> > >    > Cheers.
> > >    >
> > >    > --
> > >    > George Hills
> > >    > Systems Administrator
> > >    > Brightbox
> > >    > [5]http://www.brightbox.co.uk/
> > >    >
> > >    > _______________________________________________
> > >    > Rancid-discuss mailing list
> > >    > [6]Rancid-discuss at shrubbery.net
> > >    > [7]http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> > >    _______________________________________________
> > >    Rancid-discuss mailing list
> > >    [8]Rancid-discuss at shrubbery.net
> > >    [9]http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> > >
> > > References
> > >
> > >    1. mailto:jeremys at rickyninja.net
> > >    2. http://www.rickyninja.net/rancid/dlogin-dev
> > >    3. mailto:george at brightbox.co.uk
> > >    4. http://dlogin.gh/
> > >    5. http://www.brightbox.co.uk/
> > >    6. mailto:Rancid-discuss at shrubbery.net
> > >    7. http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> > >    8. mailto:Rancid-discuss at shrubbery.net
> > >    9. http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> >
> > > _______________________________________________
> > > Rancid-discuss mailing list
> > > Rancid-discuss at shrubbery.net
> > > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> > _______________________________________________
> > Rancid-discuss mailing list
> > Rancid-discuss at shrubbery.net
> > http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss
> >

> _______________________________________________
> 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