Re: [rancid] How to remove all comments made by rancid
Adam Thompson <[email protected]> Thu, 27 Jun 2019 15:31:22 +0000
| Newsgroups | gmane.network.rancid |
|---|---|
| Message-ID | <[email protected]> |
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) [email protected]<mailto:[email protected]> www.merlin.mb.ca<http://www.merlin.mb.ca/> From: Rancid-discuss <[email protected]> On Behalf Of Florin Vlad Olariu Sent: Thursday, June 27, 2019 4:17 AM To: [email protected] 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 _______________________________________________ Rancid-discuss mailing list [email protected] http://www.shrubbery.net/mailman/listinfo/rancid-discuss
image001.png
(image/png, 2.3 KB) - not displayed