Mailing List Archive

Arista Power supply timestamps
Hello,

I am backing up Arista devices using RANCID and works great, version
3.7. Is there a way to ignore the following timestamped lines for
power supplies ?

Thanks
-Azher

- !Power Supply 1: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:54

- !Power Supply 2: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:49

- !Power Supply 3: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:50

- !Power Supply 4: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:53

+ !Power Supply 1: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:51

+ !Power Supply 2: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:46

+ !Power Supply 3: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:48

+ !Power Supply 4: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:50


- !Power Supply 1: PWR-500AC-F 500W Ok 56 days, 14:55:49

- !Power Supply 2: PWR-500AC-F 500W Ok 58 days, 8:59:50

+ !Power Supply 1: PWR-500AC-F 500W Ok 57 days, 14:55:47

+ !Power Supply 2: PWR-500AC-F 500W Ok 59 days, 8:59:48

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Arista Power supply timestamps [ In reply to ]
Mon, Sep 17, 2018 at 11:30:35AM -0700, Azher:
> Hello,
>
> I am backing up Arista devices using RANCID and works great, version
> 3.7. Is there a way to ignore the following timestamped lines for
> power supplies ?

you'll have to show me the full output of the cli command that produces
the input. i suspect that is show env all

> Thanks
> -Azher
>
> - !Power Supply 1: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:54
>
> - !Power Supply 2: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:49
>
> - !Power Supply 3: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:50
>
> - !Power Supply 4: PWR-3KT-AC-RED 3000W Ok 122 days, 21:25:53
>
> + !Power Supply 1: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:51
>
> + !Power Supply 2: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:46
>
> + !Power Supply 3: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:48
>
> + !Power Supply 4: PWR-3KT-AC-RED 3000W Ok 123 days, 21:25:50
>
>
> - !Power Supply 1: PWR-500AC-F 500W Ok 56 days, 14:55:49
>
> - !Power Supply 2: PWR-500AC-F 500W Ok 58 days, 8:59:50
>
> + !Power Supply 1: PWR-500AC-F 500W Ok 57 days, 14:55:47
>
> + !Power Supply 2: PWR-500AC-F 500W Ok 59 days, 8:59:48
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss@shrubbery.net
http://www.shrubbery.net/mailman/listinfo/rancid-discuss
Re: Arista Power supply timestamps [ In reply to ]
I assume you want all the info on that line but to ignore the Uptime
column, yes?


On 1/23/2019 9:25 AM, Pedrosi, Derek G. wrote:
>
> Hello,
>
> I am backing up Arista devices using RANCID and works great, version
>
> 3.7. Is there a way to ignore the following timestamped lines for
>
> power supplies ?
>
> - !Power Supply 1: PWR-460AC-R???? Ok 122 days, 21:25:53
>
> + !Power Supply 1: PW-460AC-R? ????Ok 123 days, 21:25:51
>
> There was a reply to this in Sept 2018, but the OP never followed up.
>
> heasly guessed it was the ?sho env all? command and asked to see the
> output of it?
>
> Here is the pertinent part?
>
> Power??????????????????????? Input? Output Output
>
> Supply Model?????? Capacity Current Current? Power
> Status?????????????? Uptime
>
> ------ ----------- -------- ------- ------- ------ ----------
> ----------------
>
> 1????? PWR-460AC-R???? 460W?? 0.00A 0.00A?? 91.0W Ok???????? 124 days,
> 21:06:11
>
> 2????? PWR-460AC-R???? 460W?? 0.50A 7.75A? 91.0W Ok???????? 124 days,
> 21:06:11
>
> Total? --????????? ????460W????? -- --? 91.0W --?????????????????????? --
>
> Thanx,
>
> derek
>
>
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss@shrubbery.net
> http://www.shrubbery.net/mailman/listinfo/rancid-discuss
--
Doug Hughes
Keystone NAP
Fairless Hills, PA
1.844.KEYBLOCK (439.2562)
Re: Arista Power supply timestamps [ In reply to ]
Wed, Jan 23, 2019 at 02:25:22PM +0000, Pedrosi, Derek G.:
> Hello,
>
> I am backing up Arista devices using RANCID and works great, version
> 3.7. Is there a way to ignore the following timestamped lines for
> power supplies ?
>
> - !Power Supply 1: PWR-460AC-R Ok 122 days, 21:25:53
>
> + !Power Supply 1: PW-460AC-R Ok 123 days, 21:25:51
>
> There was a reply to this in Sept 2018, but the OP never followed up.
>
>
> heasly guessed it was the "sho env all" command and asked to see the output of it...
>
> Here is the pertinent part...
>
> Power Input Output Output
> Supply Model Capacity Current Current Power Status Uptime
> ------ ----------- -------- ------- ------- ------ ---------- ----------------
> 1 PWR-460AC-R 460W 0.00A 0.00A 91.0W Ok 124 days, 21:06:11
> 2 PWR-460AC-R 460W 0.50A 7.75A 91.0W Ok 124 days, 21:06:11
> Total -- 460W -- -- 91.0W -- --

i believe this was fixed in 3.8 when the format changed.

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