[rancid] How to remove all comments made by rancid
Adam Thompson
athompson at merlin.mb.ca
Thu Jun 27 15:31:22 UTC 2019
You’re still seeing that because that’s part of the Arista output, not something inserted by Rancid.
Log in manually and execute the “show run” command and you’ll see the same output. (Except for the “RANCID-CONTENT-TYPE” header, of course, and I don’t know how to suppress that without editing source code.)
After a slightly deeper look, I believe my assumption is correct – you can’t remove or suppress the RANCID-CONTENT-TYPE header without editing the Rancid code directly.
My only Arista (a 7280R-something) is sitting on a desk next to me, and I’m *definitely* not going to power it on in the office just to pull a running-config to verify my recollection of its “show run” format, sorry.
-Adam
Adam Thompson
Consultant, Infrastructure Services
[[MERLIN LOGO]]<https://www.merlin.mb.ca/>
100 - 135 Innovation Drive
Winnipeg, MB, R3T 6A8
(204) 977-6824 or 1-800-430-6404 (MB only)
athompson at merlin.mb.ca<mailto:athompson at merlin.mb.ca>
www.merlin.mb.ca<http://www.merlin.mb.ca/>
From: Rancid-discuss <rancid-discuss-bounces at shrubbery.net> On Behalf Of Florin Vlad Olariu
Sent: Thursday, June 27, 2019 4:17 AM
To: rancid-discuss at shrubbery.net
Subject: [rancid] How to remove all comments made by rancid
Hello,
I'm using the latest version of Rancid. I would like to remove all comments that Rancid makes (e.g beginning with ! ) from the config file it collects. I already disabled all commands from the rancid.types.base and only allows "show run" but it doesn't seem to be enough because I still see (for example):
!RANCID-CONTENT-TYPE: arista
!
! Command: show running-config
! device: LAB-arista1a (DCS-7150S-64-CL, EOS-4.20.12M-2GB)
!
! boot system flash:/EOS-2GB-4.20.12M.swi
!
. Any help you could provide would be appreciated!
Thanks,
V
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20190627/91a8c680/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2381 bytes
Desc: image001.png
URL: <http://www.shrubbery.net/pipermail/rancid-discuss/attachments/20190627/91a8c680/attachment.png>
More information about the Rancid-discuss
mailing list