Re: [rancid] Extreme 200-series switches

Nick Nauwelaerts <[email protected]> Tue, 26 Mar 2019 12:36:41 +0000
Newsgroups gmane.network.rancid
Message-ID <[email protected]>
heya,
while i don't have extreme devices, the code seems to live in lib/exos.pm.in.

i would guess temperature & diskspace and such could perhaps be gated with the FILTER_OSC setting (see man rancid.conf), fortigate.pm.in has some examples which can get you started.

rancid.pm.in has some helper functions if you want to parse storage usage to human readable form or % space remaining, this can also reduce the amount of diffs you receive for minor changes in free space.


// nick

> -----Original Message-----
> From: Rancid-discuss [mailto:[email protected]] On
> Behalf Of James Andrewartha
> Sent: Monday, March 25, 2019 08:12
> To: heasley <[email protected]>
> Cc: [email protected]
> Subject: Re: [rancid] Extreme 200-series switches
>
> Hi,
>
> On 25/03/19 00:38, heasley wrote:
> > Perhaps this
> >
> > Index: bin/clogin.in
> >
> ==========================================================
> =========
> > --- bin/clogin.in(revision 3966)
> > +++ bin/clogin.in(working copy)
> > @@ -452,6 +452,12 @@
> >    send -h "quit\r"
> >    exp_continue;
> >  }
> > +-re "^\% Invalid input detected at "{
> > +  # Broadcom Fastpath based
> > +  # Extreme 200 series
> > +  send -h "quit\r"
> > +  exp_continue;
> > +}
> >  "The system has unsaved changes"{ # Force10 SFTOS
> >    if {$do_saveconfig} {
> >      catch {send "y\r"}
> >
>
> That works a treat, thanks. I haven't yet tested it when there's an
> unsaved config change though. Also I'll need to filter out these
> changing parts, where in the code is this done in 3.x?
>
>   !
> - !Temp (C)....................................... 26
> + !Temp (C)....................................... 27
>   !Temperature traps range: 0 to 45
>   !Fans:
>   !Unit Fan Description    Type      Speed         Duty
>   !---- --- -------------- --------- ------------- -------------
>   !1    1   Fan-1          Fixed     Not
>   !Power Modules:
>   !Unit     Power supply   Description        Type          State
>   !----     ------------   ----------------   ----------    --------------
>   !1        1              PS-1               Fixed         Operational
>   !Disk usage information:
>   !Unit   Total space (KB)   Free space
>   !----   ----------------   ---------------   ---------------
> ---------------
> - !1                27,584            25,828             1,756
>      6
> + !1                27,584            25,784             1,800
>      6
>   !
>
> --
> James Andrewartha
> Network & Projects Engineer
> Christ Church Grammar School
> Claremont, Western Australia
> Ph. (08) 9442 1757
> Mob. 0424 160 877
>
> _______________________________________________
> Rancid-discuss mailing list
> [email protected]
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

________________________________

Volg Aquafin op Facebook<https://www.facebook.com/AquafinNV> | Twitter<https://twitter.com/aquafinnv> | YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> | LinkedIN<http://www.linkedin.com/company/aquafin/products> | Instagram<https://www.instagram.com/aquafin_nv/>

In het kader van de uitoefening van onze taken verzamelen we bij Aquafin persoonsgegevens. Hoe we omgaan met deze gegevens en wat de rechten van de betrokkenen zijn, kan je nalezen in onze privacy policy<https://www.aquafin.be/nl-be/privacy-policy>.

  P Denk aan het milieu. Druk deze mail niet onnodig af.

_______________________________________________
Rancid-discuss mailing list
[email protected]
http://www.shrubbery.net/mailman/listinfo/rancid-discuss