参考文档 idrac7-8-lifecycle-controller-v2.40.40.40_Reference Guide_en-us
0、下文中账户名密码均省略-r <RAC IP address> -u root -p <password>
1、使用racadm远程命令
Remote RACADM usage syntax:
racadm -r <RAC IP address> -u <username> -p <password> <subcommand> <options>
racadm -r <RAC IP address> -i <subcommand> <options>
Security Alert: Certificate is invalid - self signed certificate
Continuing execution. Use -S option for racadm to stop execution on certificate-related errors.
使用 --nocertwarn 可以忽略警告
2、racadm help
#racadm --nocertwarn help
3、racadm help get 获取idrac信息(也可以形成文件)
racadm get <fqdd alias>.<group>
racadm get <fqdd alias>.<group>.<object>
racadm get <fqdd alias>.<group>.<index>.<object>
racadm get -f <filename>
racadm get -f <filename> -t <filetype> -u <username> -p <password>
-l <CIFS share> -c <FQDD>
racadm get -f <filename> -t <filetype> -l <NFS share> -c <FQDD>
4、racadm get iDRAC.NIC.DNSRacName 获取idrac Name
5、racadm set iDRAC.SNMP.Alert.1.DestAddr <IP address> 设置snmp的报警地址
racadm set iDRAC.IPMILan.AlertEnable enabled设置警报为已启用
racadm eventfilters set -c idrac.alert.all -a none -n email,snmp 设置警报类型
6、racadm set iDRAC.Time.Timezone Asia/Shanghai iDRAC设置timezone
7、racadm storage get pdisks 获取磁盘信息
更多的命令可以通过帮助找到