[rancid] Cisco devices and calculating percent free
Chris Wopat
me at falz.net
Thu Nov 12 19:20:38 UTC 2020
On Thu, Nov 12, 2020 at 12:17 PM Randy Bush <randy at psg.com> wrote:
>
> something analogous to
>
> --- rancid.types.base.ORIG 2020-03-19 01:11:40.000000000 +0000
> +++ rancid.types.base 2020-03-21 19:41:36.522622000 +0000
> @@ -221,7 +221,7 @@
> cisco-nx;command;nxos::ShowEnvPower;show environment power
> cisco-nx;command;nxos::ShowBoot;show boot
> cisco-nx;command;nxos::DirSlotN;dir bootflash:
> -cisco-nx;command;nxos::DirSlotN;dir debug:
> +## cisco-nx;command;nxos::DirSlotN;dir debug:
> cisco-nx;command;nxos::DirSlotN;dir logflash:
> cisco-nx;command;nxos::DirSlotN;dir slot0:
> cisco-nx;command;nxos::DirSlotN;dir usb1:
> @@ -598,7 +598,7 @@
> junos;module;junos
> junos;inloop;junos::inloop
> junos;command;junos::ShowChassisClocks;show chassis clocks
> -junos;command;junos::ShowChassisEnvironment;show chassis environment
> +## junos;command;junos::ShowChassisEnvironment;show chassis environment
> junos;command;junos::ShowChassisFirmware;show chassis firmware local
> junos;command;junos::ShowChassisFirmware;show chassis firmware
I had not yet tested this out, but it looks like it may remove the
full directory listing from whichever disc it's churning on.
I should have noted that I do have value in knowing the contents of
flash within RANCID, just not the amount of free space, which I get
via SNMP.
I'll test above or heasley's suggestion when it comes out to confirm.
Hell maybe I'll even spend a few minutes checking the cause of the
issue (ie what's happening to fluctuate disk utilization)
Cheers,
--Chris
More information about the Rancid-discuss
mailing list