Sun Management Center 3.6.1 用户指南

对象属性命令的示例

以下命令检索主机 haiku 端口 1161 处 agent-stats 模块中的被管理对象 totalstatssize 属性 (property) 的所有子属性 (attribute):


> getAttributes a=haiku:1161 m=agent-stats mgtObj=totalstats \
property=size

以下命令将上例指定的 size 属性 (property) 中的 alarmlimits.error-gt 子属性 (attribute) 设置为 2


> setAttributes a=haiku:1161 m=agent-stats mgtObj=totalstats \
property=size attribute=alarmlimits.error-gt value=2

以下命令从被管理对象中(由 mgtObj 参数指定)删除由 rowValues 参数指定的行:


> delRow a=haiku:1161 \
m=filemon mgtObj=filemonstats/filemonTable/filemonEntry \
rowValues="name=test,desc=this,filename=/etc/passwd"