Important Note: This knowledge document was written before APM 10.5 when this command option changed. If using APM 10.5 and later, first review TEC1663998 before reading this -- Does the Smartstor Tool remove_metric command behave differently in APM 10.5.x and later?)
SmartStor Tool Command : remove_metrics
Removes metrics matching the given regular expression. Use this tool to clean up metrics leaks and explosions.
Warning! Use the remove_metrics tool with caution. Since this tool deletes data, take care that you do not accidentally delete important data.
Arguments:
-dest -- Destination SmartStor directory.
-help -- Prints a help message.
-metrics -- Regular expression for metrics to remove.
-src -- Source SmartStor directory.
Examples:
Windows
SmartStorTools.bat remove_metrics -dest <destination directory> -metrics <metrics to be removed> -src <source directory>
For example:
<EM_Home>\tools\SmartStorTools.bat remove_metrics -dest C:\SWDump\destination -metrics ".*Socket.*" -src <EM_Home>\data
When the command executes successfully, all the metrics except the socket metrics are present in the destination directory and the source directory has all the metrics intact.
UNIX
SmartStorTools.sh remove_metrics -dest < destination directory> -metrics <metrics to be removed> -src <source directory>