上一主题: remove_agents下一主题: list_agents


keep_agents

保留与给定的正则表达式匹配的代理

参数:

示例:

Windows

SmartStorTools.bat keep_agents –agents  <agent(s) name>  –dest <destination directory>  -src <source directory>

例如:

<EM_Home>\tools>SmartStorTools.bat keep_agents -agents ".*Websphere.*" -dest C:\SWDump\destination\keepagents -src data

成功执行该命令后,与 Websphere 代理相关的所有度量标准都出现在目标目录中,而源目录中的内容则保持原样。

UNIX

SmartStorTools.sh keep_agents -agents <Agent(s) name> -dest <destination directory> -src <source directory>

prune

查找在 SmartStor 中没有历史数据的代理,并删除所有关联的度量标准元数据。 使用此工具可以清除度量标准遗漏和爆发。

警告! 请谨慎使用 prune 工具。 由于此工具会删除数据,请特别注意不要误删重要数据。

使用 prune 工具需要执行一些步骤。 请参阅清除 SmartStor 元数据

参数:

示例

Windows

SmartStorTools.bat Prune  –dest <destination directory>  -src <source directory>

例如:

<EM_Home>\tools>SmartStorTools.bat Prune -dest C:\SWDump\destination\backup -src data

成功执行该命令后,元数据文件会使用名称 metrics.metadata 备份到 dest 目录。

UNIX

SmartStorTools.sh prune -dest <destination directory> -src <source directory>

test_regex

将与给定正则表达式匹配的度量标准或代理输出到 Windows 或 UNIX 控制台。

参数:

示例:

Windows

SmartStorTools.bat test_regex -agents <agent(s) name> –src <sourcedirectory>

例如:

<EM_Home>\tools>SmartStorTools.bat test_regex -agents ".*Websphere.*" -src <EM_Home>\data

成功执行该命令后,将打印 WebSphere 代理的所有度量标准。

UNIX

SmartStorTools.sh test_regex -agents <agent(s) name> -src <source directory>