[rancid] mtrancid - output exclusion?

heasley heas at shrubbery.net
Fri May 26 15:09:43 UTC 2017


Fri, May 26, 2017 at 02:52:28PM +0000, Alexander Griesser:
> Seems to be:
> 
> > system license print
>          system-id: VE7YcgZWD3E
>              level: p-unlimited
>   limited-upgrades: yes
>    next-renewal-at: may/26/2017 15:41:13
>        deadline-at: may/09/2017 20:59:59
> 
> So I guess I can just remove "system license print" from the commands to be run and should be good with it then?

mt is not a module yet, so yes but it is more difficult.  here is a patch
to mtrancid that should filter that line.


Index: bin/mtrancid.in
===================================================================
--- bin/mtrancid.in	(revision 3649)
+++ bin/mtrancid.in	(working copy)
@@ -217,6 +217,9 @@
 		return(1) if /(bad command name )/;
 		s/^\s+//g;
 
+		# license renewal timestamp
+		next if (/^next-renewal-at:/i);
+
 		ProcessHistory("COMMENTS","keysort","C1","# $_");
 	}
 



More information about the Rancid-discuss mailing list