The Event and Statistics cache can get corrupted at time due to various incidents such as an abrupt shut down of the PATROL Agent. You can fix the corrupted cache in two ways:
fix_cache
command-line utility.This topic provides information about repairing the corrupted Event and Statistics cache using fix_cache
utility.
fix_cache
utilityfix_cache
utility. The files are located at:fix_cache
utilityRunning the fix_cache
utility requires shutting down the PATROL agent for the entire duration of running the fix_cache utility. The length of the down time is directly related to the size of the cache. If these files are very large or any down time for the agent is undesirable, consider automatic recovery instead of running the fix_cache
utility.
Warning
Ensure that adequate disk space is available on the system. A minimum of ten times the size of the cache will be required. During the cache repair, if the system runs out of disk space, all PATROL files will become inaccessible and other applications might also stop running.
Stop the PATROL Agent.
fix_cache
utility and monitor the output.$ echo $?
fix_cache
utilityThe fix_cache
utility exits with one of the following values:
fix_cache
utilityThe fix_cache
utility has the following format:
[-port port]
[-host hostname]
[-queue_size]
[-rebuild_cache]
[-v]
The following table lists and defines the options recognized by the fix_cache
utility:
Options recognized by the fix_cache
utility
Option | Definition |
---|---|
-host | This option specifies which PATROL Agent's cache is used. If -host option is not specified, then the name of the host, where the |
-queue_size | This option specifies the queue size used by the utility. If no value is specified or the value is invalid, then value 100 is set as default. |
-rebuild_cache | This option rebuilds the cache from the buffer. No value is needed for this option. |
-port | This option specifies which PATROL Agent's cache is used. Combined with the -host option, -port specifies a unique PATROL Agent. The value of this option must be the port number to which the specified PATROL Agent is listening. The default value is 3181. |
-v | This option displays version information. |
fix_cache
utilityThe following examples illustrate how to use the fix_cache
utility.
fix_cache -port 5000
This command fixes the cache and creates a backup of the cache file at port 5000.
fix_cache -rebuild_cache
This command fixes the cache and rebuilds it.
fix_cache -host host123 -port 3181
This command fixes the cache for host host123 at port 3181.