OpenManage 安装使用

DELL 非官方支持在 Ubuntu 上的使用,10.04/12.04 的系统直接加源就可以了:
deb http://linux.dell.com/repo/community/deb/latest /
最新的是 7.1 版本:
# gpg –keyserver pool.sks-keyservers.net –recv-key 1285491434D8786F
# gpg -a –export 1285491434D8786F | sudo apt-key add –
# apt-get update
# apt-cache policy srvadmin-all
srvadmin-all:
  Installed: 7.1.0-3
  Candidate: 7.1.0-3
  Version table:
 *** 7.1.0-3 0
        500 http://linux.dell.com/repo/community/deb/latest/  Packages
        100 /var/lib/dpkg/status

在安装过程中,由于某台机器先前为了安装 MegaCli,曾通过 alien 安装了 lib-utils,其里面的 libsysfs.so 文件由于版本问题,造成跟 apt 安装的冲突:
# apt-get install -f
Reading package lists… Done
Building dependency tree       
Reading state information… Done
Correcting dependencies… Done
The following extra packages will be installed:
  srvadmin-storelib-sysfs
The following NEW packages will be installed:
  srvadmin-storelib-sysfs
0 upgraded, 1 newly installed, 0 to remove and 63 not upgraded.
25 not fully installed or removed.
Need to get 0 B/22.8 kB of archives.
After this operation, 115 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database … 69380 files and directories currently installed.)
Unpacking srvadmin-storelib-sysfs (from …/srvadmin-storelib-sysfs_7.1.0-1_amd64.deb) …
dpkg: error processing /var/cache/apt/archives/srvadmin-storelib-sysfs_7.1.0-1_amd64.deb (–unpack):
 trying to overwrite '/opt/lsi/3rdpartylibs/x86_64/libsysfs.so.2.0.2', which is also in package lib-utils 1.00-10
No apport report written because MaxReports is reached already
                                                           Errors were encountered while processing:
 /var/cache/apt/archives/srvadmin-storelib-sysfs_7.1.0-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
解决方式比较简单,将 /var/lib/dpkg/status 里面跟 lib-utils 相关的段删除,并且删除原先在 /opt/ 下面的 lsi/ 目前,重新执行上面的目录即可。

ipmi_msghandler,ipmi_si 以及 ipmi_devintf 这三个模块会在安装启动 dataeng 时自动加载,这个应该是调用了下面三个命令:

# /etc/init.d/dataeng start
Starting Systems Management Device Drivers:
Starting dell_rbu: *
Starting ipmi driver:  *
Starting Systems Management Data Engine:
Starting dsm_sa_datamgrd: *
Starting dsm_sa_eventmgrd:  *
Starting dsm_sa_snmpd:  *

接着就可以使用了:
# omreport system summary
# omreport system alertlog
# omreport chassis fans
# omreport storage pdisk controller=0

除了使用 cli 的方式,还有个 web 的方式查看,默认开启 1311 端口,https。用户名密码是你 *nix 主机的用户名密码:
# service dsm_om_connsvc start
# update-rc.d dsm_om_connsvc defaults

主要三大块:
1. Main system chassis
Batteries
BIOS
Fans
Firmware
Hardware performance
Intrusion
Memory
Network
Ports
Power management
Power supplies
Processor
Remove access
Removable Flash Media
Slots
Temperatures
Volages
2. Software
3. Storage

同时,web 可以控制登录权限,在 /opt/dell/srvadmin/etc/omarolemap 里面修改,如果是在内网,这个基本就没必要了。

通过 omconfig 可以完成对应的修改,如果需要 help,可以使用 omhelp:
# omhelp omconfig system

从网上找来的一些常用的命令:
# omreport chassis
# omreport chassis fans
# omreport chassis pwrsupplies
# omreport chassis -?
# omreport storage controller
# omreport storage vdisk controller=0
# omreport storage pdisk controller=0
# omreport storage pdisk controller=0 vdisk=0
# omreport chassis bios


详细的用法可以参见这里