Dell racadm

# ubuntu 18.04
cat > /etc/apt/sources.list.d/linux.dell.com.sources.list <<'EOF'
deb http://linux.dell.com/repo/community/openmanage/920/bionic bionic main
EOF
sudo gpg --keyserver pool.sks-keyservers.net --recv-key 1285491434D8786F
sudo gpg -a --export 1285491434D8786F | sudo apt-key add -
sudo apt update
sudo apt install srvadmin-idracadm8 / srvadmin-idracadm7
ln -s /opt/dell/srvadmin/bin/idracadm7 /usr/bin/racadm
apt install libargtable2-dev
# centos 7
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
yum install srvadmin-idracadm8 / srvadmin-idracadm7

debian 10 (dell不支持debian的最新buster版本,所以只能这样提取一个客户端工具,然后远程登录来执行命令):

apt install libargtable2-0 -y
wget https://downloads.dell.com/FOLDER05558128M/1/OM-SrvAdmin-Dell-Web-LX-9.3.0-3465_A00.tar.gz
tar zxf OM-SrvAdmin-Dell-Web-LX-9.3.0-3465_A00.tar.gz
cp linux/RPMS/supportRPMS/srvadmin/RHEL7/x86_64/srvadmin-idracadm7-9.3.0-3465.14818.el7.x86_64.rpm /tmp
cd /tmp && cpio srvadmin-idracadm7-9.3.0-3465.14818.el7.x86_64.rpm | cpio -div
cp opt/dell/srvadmin/bin/idracadm7 /usr/local/sbin/racadm
# 使用(前面板LCD/LED错误)
racadm7 -r 172.17.120.1 -u root -p xxx frontpanelerror show
racadm7 -r 172.17.120.1 -u root -p xxx frontpanelerror hide

racadm语法:

racadm -r <racIpAddr> -u <username> -p <password> <subcommand> 
racadm -r <racIpAddr> -u <username> -p <password> get <devicename>.<groupname>.[<index>].[<objectname>]
racadm -r <racIpAddr> -u <username> -p <password> set <devicename>.<groupname>.[<index>].<objectname> <value>
-r <racIpAddr>[  : <port number> ]	指定IDRAC  IP,端口号默认是443
-u  <username>     	IDRAC用户名
-p  <password>     	IDRAC密码
-S      	安全认证无效时停止命令执行(所有正常执行命令基本都包含无效认证安全警告,非需求时不要配置此选项)
-i      	交互式登陆,手动输入账号密码;和-u、-p选项不能同时使用。
--nocertwarn      	忽略认证相关警告信息

范例:

racadm -r 192.168.0.0 -u root -p xxxx getsysinfo
racadm -r 192.168.0.0 -u root -p xxxx set idrac.ssh.port 22
racadm -r 192.168.0.0 -u root -p xxxx --nocertwarn get idrac.ssh.port

  • hardware/dell/racadm.txt
  • 最后更改: 2019/10/28 02:21
  • 由 mrco