安装戴尔OMSA
设置变量
versionum=`cat /etc/redhat-release | awk '{print $3}' | awk -F '.' '{print $1}'`
versionname=`cat /etc/redhat-release`
if [ $versionum == 5 ];then
echo $versionname" Tikanga" > /etc/redhat-release
echo "OM-SrvAdmin-Dell-Web-LX-7.4.0-866.RHEL5.x86_64_A00.tar.gz"
elif [ $versionum == 6 ];then
echo $versionname" Santiago" > /etc/redhat-release
echo "OM-SrvAdmin-Dell-Web-LX-8.5.0-2372.RHEL6.x86_64_A00.tar.gz"
elif [ $versionum == 7 ];then
echo $versionname" Maipo" > /etc/redhat-release
echo "OM-SrvAdmin-Dell-Web-LX-8.5.0-2372.RHEL7.x86_64_A00.tar.gz"
fi
下载上面显示的tar.gz,并解压
centos 6的安装方式依赖
rpm -Uivh http://mirrors.163.com/centos/6/os/x86_64/Packages/libxslt-1.1.26-2.el6_3.1.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/libxslt-devel-1.1.26-2.el6_3.1.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/libxml2-2.7.6-21.el6_8.1.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/libxml2-devel-2.7.6-21.el6_8.1.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/net-snmp-utils-5.5-60.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/net-snmp-libs-5.5-60.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/net-snmp-5.5-60.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/net-snmp-devel-5.5-60.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/net-snmp-perl-5.5-60.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/net-snmp-python-5.5-60.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/lm_sensors-libs-3.1.1-17.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/libgcrypt-devel-1.4.5-12.el6_8.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/libgcrypt-1.4.5-12.el6_8.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/libgpg-error-1.7-4.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/libgpg-error-devel-1.7-4.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/libxml2-python-2.7.6-21.el6_8.1.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/sblim-sfcb-1.3.11-5.el6.x86_64.rpm \
http://mirrors.163.com/centos/6/os/x86_64/Packages/cim-schema-2.33.0-1.el6.noarch.rpm \
../RPMS/supportRPMS/srvadmin/RHEL6/x86_64/libwsman1-2.2.3.9-2372.10488.el6.x86_64.rpm \
../RPMS/supportRPMS/srvadmin/RHEL6/x86_64/libcmpiCppImpl0-2.0.0Dell-2372.10488.el6.x86_64.rpm \
../RPMS/supportRPMS/srvadmin/RHEL6/x86_64/sblim-sfcb-1.3.7-2372.10488.el6.x86_64.rpm \
../RPMS/supportRPMS/srvadmin/RHEL6/x86_64/sblim-sfcc-2.2.1-2372.10488.el6.x86_64.rpm \
../RPMS/supportRPMS/srvadmin/RHEL6/x86_64/openwsman-client-2.2.3.9-2372.10488.el6.x86_64.rpm \
../RPMS/supportRPMS/srvadmin/RHEL6/x86_64/openwsman-server-2.2.3.9-2372.10488.el6.x86_64.rpm --nodep
如不能装,添加--force强制安装
centos 5 安装依赖
rpm -ivh ../RPMS/supportRPMS/opensource-components/RHEL5/x86_64/libcmpiCppImpl0-2.0.0Dell-4.3.1.el5.x86_64.rpm \
../RPMS/supportRPMS/opensource-components/RHEL5/x86_64/openwsman-server-2.2.3.9-4.3.2.el5.x86_64.rpm \
../RPMS/supportRPMS/opensource-components/RHEL5/x86_64/sblim-sfcb-1.3.7-4.16.2.el5.x86_64.rpm \
../RPMS/supportRPMS/opensource-components/RHEL5/x86_64/sblim-sfcb-1.3.7-4.16.2.el5.x86_64.rpm \
../RPMS/supportRPMS/opensource-components/RHEL5/x86_64/sblim-sfcc-2.2.1-4.9.1.el5.x86_64.rpm \
../RPMS/supportRPMS/opensource-components/RHEL5/x86_64/openwsman-server-2.2.3.9-4.3.2.el5.x86_64.rpm --nodeps
开始安装
cd linux/supportscripts/
./srvadmin-install.sh
y
10
i
y
ln -s /opt/dell/srvadmin/bin/omreport /bin/
iptables -A INPUT -p tcp --dport 1311 -s 公司ip -j ACCEPT
iptables -A INPUT -p tcp --dport 1311 -j DROP
chkconfig dsm_om_connsvc off
chkconfig dsm_om_connsvc --list
#访问
https://ip:1311
#启动
/opt/dell/srvadmin/sbin/srvadmin-services.sh start
netstat -tlnp | grep 1311