[rancid] Cisco devices and calculating percent free

Pan Affa affa_pan at hotmail.com
Fri Nov 13 13:03:54 UTC 2020


I’m expecting the postscript filter because there more and more files in flash.  I need per-device per-tag postscript filter.

from Affa Pan

> john heasley <heas at shrubbery.net> 於 2020年11月13日 上午2:32 寫道:
> 
> Thu, Nov 12, 2020 at 07:19:36AM -0600, Chris Wopat:
>> I recently updated to v3.13, I do not recall exactly what version I
>> was on but it was >1 year old, and could've been HEAD based on some
>> previous debugging of other issues.
>> 
>> Anyhow, we have many IOS devices that calculate percent free and it oscillates:
>> 
>> - !Flash: bootflash: 1 GB total (19% free)
>> + !Flash: bootflash: 1 GB total (18% free)
>> 
>> Without manually patching ios.pm (or wherever this takes place) is
>> there any type of config setting to just turn off showing any info
>> about how much disk space is free? We get this info properly from snmp
>> trending systems.
>> 
>> Just trying to cut down on router diffs where there were no actual
>> config changes.
> 
> Except that something to writing to your flash...maybe you expect that.
> 
> anyway, private devices types without the dir commands could be
> created in rancid.types.conf(5).
> 
> or, i have almost finished an option for a user-defined per-device type
> postscript filter.  eg:
> 
> +# example use of the postscript directive.  This will replace control
> +# characters in the output with an ASCII representation.
> +arbor-ctrl;script;rancid -t arbor-ctrl
> +arbor-ctrl;login;anlogin
> +arbor-ctrl;module;arbor
> +arbor-ctrl;inloop;arbor::inloop
> +arbor-ctrl;postscript;/bin/cat -v
> +arbor-ctrl;command;arbor::ShowVersion;system version
> +arbor-ctrl;command;arbor::ShowVersion;system file show
> +arbor-ctrl;command;arbor::ShowHardware;system hardware
> +arbor-ctrl;command;arbor::ShowHardware;system show
> +arbor-ctrl;command;arbor::ShowFlash;system disk show
> +arbor-ctrl;command;arbor::ShowConfig;config show
> 
> _______________________________________________
> Rancid-discuss mailing list
> Rancid-discuss at www.shrubbery.net
> https://www.shrubbery.net/mailman/listinfo/rancid-discuss


More information about the Rancid-discuss mailing list