上一主题: dpmce ceconfig -setalias 命令-设置别名下一主题: dpmce ceconfig -setnode 命令-设置主机间隔


dpmce ceconfig -setglobal 命令-设置数据中心间隔

dpmce ceconfig -setglobal 命令用于设置数据中心级别的收集、记录和保留间隔以及阈值。

此命令具有以下格式:

dpmce ceconfig -setglobal [-sc sc_url] -recording_interval value 
-retention_sec value -retention_day value 
-lower_threshold lowerthreshold -upper_threshold upperthreshold
[-ws_user username -ws_password password][-locale iso629value]
-sc sc_url

(可选)为服务控制器主机定义 URL。

示例:https://hostname:port/...

hostname

定义安装了服务控制器的完全限定主机。

示例:localhost.ca.com

port

定义服务控制器服务器的侦听端口。

示例:80

-recording_interval value

定义记录间隔。 如果未定义 retention_day 或 retention_sec,则必须提供该值。

单位:秒

-retention_day value

定义每日数据平均值存储在性能数据库中的时长(每日汇总数据保留)。 如果未定义 recording_interval 或 retention_sec,则必须提供该值。

单位:天

-retention_sec value

定义轮询数据存储在性能数据库中的时长(轮询数据保留)。 定义该值时,请考虑收集的受管系统、服务以及度量标准的数量。 存储的轮询数据对象随着时间的推移不断累积且可以影响性能。 如果出现性能问题,请减少保留天数。 如果未定义 recording_interval 或 retention_day,则必须提供该值。

单位:天

-lower_threshold lowerthreshold

定义数据中心的总体使用阈值下限。 阈值下限必须始终小于阈值上限。

限制:0-100%

-upper_threshold upperthreshold

定义数据中心的总体使用阈值上限。 阈值上限必须始终大于阈值下限。

限制:1-100%

-ws_user username -ws_password password

(可选)指定要用于 Web 服务安全检查的凭据。 如果不包含凭据,系统会提示您输入凭据。 通过使用 caaipsecurity 设置自己的会话来避免提示输入凭据。

-locale iso639value

(可选)指定 IS0 639_3166 组合以覆盖默认的英语输出(例如:法语为 fr_FR)。 要使用命令提示符的区域设置,请指定“native”。

示例:为数据中心设置收集和记录间隔

本示例为数据中心设置收集和记录间隔。

dpmce ceconfig -setglobal -recording_interval 120

示例:为数据中心设置阈值

本示例为数据中心设置阈值上限和下限。

dpmce ceconfig -setglobal -lower_threshold 10 -upper_threshold 90