原文链接:http://blog.51cto.com/wuyanc/1864030
常用命令指南
1.omreport:查看组件状态命令
1)命令用法
# omreport -? #查看omreport一级子命令
about Product and version properties.
licenses Displays the digital licenses of the installed hardware devices.
preferences Report system preferences.
system System component properties.
chassis Chassis component properties.
storage Display storage component properties.
# omreport storage -? #查看omreport二级子命令
2)查询常用组件状态信息
a.存储类
omreport storage controller 查询controller信息
omreport storage adisk controller=0 查询阵列磁盘中物理磁盘信息
omreport storage pdisk controller=0 查询物理磁盘信息
omreport storage vdisk controller=0 查询虚拟磁盘信息
b.机架类
omreport chassis pwrsupplies 查看物理电源状态信息
omreport chassis pwrmonitoring 查看电源信息(电流、功耗)
omreport chassis bios BIOS版本及发布日期
omreport chassis biossetup BIOS设置信息
omreport chassis fans [ index=0 ] 风扇信息
omreport chassis info 服务器序型号、列号、服务代码、IDRAC版本
omreport chassis memory [ index=0 ] 内存信息
omreport chassis nics [ index=0 | config=team ] 网卡信息
omreport chassis processors 物理CPU信息
omreport chassis temps CPU和主板温度
omreport chassis batteries CMOS电池状态
c.日志类
omreport system alertlog 系统日志浏览
omreport system esmlog 硬件日志
omreport system summary 所有系统组件信息
2.omconfig:配置管理组件命令 (可通过racadm环境实现)
# omconfig -? 获取omconfig一般帮助
about Product and version properties.
preferences Set system preferences.
system Set system properties.
chassis Set chassis component properties.
storage Set storage component properties.