Reference Guide
90
omconfig: 使用 Instrumentation Service 管理组件
Index (索引)
索引表示特定组件的事件编号。索引是可选参数。如果您省略索引参数,
则将配置指定类型的所有组件 (例如所有风扇)的事件。例如,当系统
包含多个风扇时,您可以启用或禁用某个特定风扇的事件通知。命令示例
如下:
omconfig system events type=fan index=0
severity=critical
或
omconfig servermodule events type=fan index=0
severity=critical
该命令示例的结果为:Server Administrator 仅在系统机箱中的第一个风扇
(索引 0)达到临界风扇转速时发送 SNMP 陷阱。
omconfig system webserver 或 omconfig servermodule webserver
使用 omconfig system webserver 或 omconfig servermodule webserver 命令
可以启动或停止 Web Server。表 4-29 显示该命令的有效参数。
omconfig system events type=
<component name> severity=critical
或
omconfig servermodule events type=
<component name> severity=critical
仅启用严重事件的
通知。
事件通知的限制形式。
omconfig system events type=
<component name> severity=none
或
omconfig servermodule events type=
<component name> severity=none
禁用事件通知。 无事件通知。
表 4-29. Web Server 配置参数
名称 = 值对 说明
action=start
启动 Web Server。
action=stop
停止 Web Server。
action=restart
重启动 Web Server。
表 4-28. 系统事件严重性参数 (续)
命令 结果 说明