Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can extend or overrule that default for a whole command set, in conf/command_sets.d/{vendor-name}.nmis:

Code Block
'IOS_HOURLY' => {
...
  'purging_policy' => {
    'keep_last' => 1000,
    'purge_older_than' => 2592000, # 30 days
    'autoprotect_first_revision' => 'true', 
  },    

...

Finally, you can also set a purging policy for a single command only, again overriding any of the command set or the global defaults. Here is such an example, again configured in conf/command_sets.d/{vendor-name}.nmis:

Code Block
'TS_LINUX_PROCESSES' => {
...
  'commands' => [
    {
      'multipage' => 'true',
      'privileged' => 'true',
      'command' => 'ps -ef',
	  'keep_last' => 0,
	  'purge_older_than' => 86400, 
      'tags' => [ 'troubleshooting', 'operatingsystem' ],
    },
  ],
},

...

This cron entry would run a daily purge at 03:40.