[root@prod-cloudsino-server ~]# racadm
===============================================================================
RACADM version 9.3.0
Copyright (c) 2003-2019 Dell, Inc.
All Rights Reserved
===============================================================================
RACADM usage syntax:
racadm <subcommand> <options>
Examples:
racadm getsysinfo
racadm getsysinfo -d
racadm getniccfg
racadm setniccfg -d
racadm setniccfg -s 192.168.0.120 255.255.255.0 192.168.0.1
racadm getconfig -g cfgLanNetworking
Display a list of available subcommands for the RAC:
racadm help
Display more detailed help for a specific subcommand:
racadm help <subcommand>
-------------------------------------------------------------------------------
Remote RACADM usage syntax:
racadm -r <RAC IP address> -u <username> -p <password> <subcommand> <options>
racadm -r <RAC IP address> -i <subcommand> <options>
The "-i" option allows the username and password to be entered interactively.
Examples:
racadm -r 192.168.0.120 -u racuser1 -p aygqt12a getsysinfo
racadm -r 192.168.0.120 -u racuser2 -p gsdf12o1 getractime
racadm -r 192.168.0.120 -u racuser3 -p djh2iuha getconfig -g cfgSerial
racadm -r 192.168.0.120 -u racuser5 -p dsajkhds help getsysinfo
Display a list of available subcommands for the remote RAC:
racadm -r <RAC IP address> -u <username> -p <password> help
Display more detailed help for a specific subcommand:
racadm -r <RAC IP address> -u <username> -p <password> help <subcommand>
-------------------------------------------------------------------------------
[root@prod-cloudsino-server ~]#
[root@prod-cloudsino-server ~]# racadm -r 10.200.71.11 -u root -p Admin@9000 getsysinfo
Security Alert: Certificate is invalid - self signed certificate
Continuing execution. Use -S option for racadm to stop execution on certificate-related errors.
RAC Information:
RAC Date/Time = Tue Mar 2 08:19:20 2021
Firmware Version = 4.40.00.00
Firmware Build = 47
Last Firmware Update = 02/27/2021 11:02:56
Hardware Version = 0.01
MAC Address = f4:02:70:a3:97:56
SVC Tag = 10VF4Y2
Common settings:
Register DNS RAC Name = 0
DNS RAC Name = iDRAC-10VF4Y2
Current DNS Domain =
Domain Name from DHCP = Disabled
IPv4 settings:
Enabled = 1
Current IP Address = 10.200.71.11
Current IP Gateway = 10.200.71.254
Current IP Netmask = 255.255.255.0
DHCP Enabled = 0
Current DNS Server 1 = 0.0.0.0
Current DNS Server 2 = 0.0.0.0
DNS Servers from DHCP = Disabled
IPv6 settings:
Enabled = 0
Current IP Address 1 = ::
Current IP Gateway = ::
Autoconfig = 1
Link Local IP Address = fe80::f602:70ff:fea3:9756/64
Current IP Address 2 = ::
Current IP Address 3 = ::
Current IP Address 4 = ::
Current IP Address 5 = ::
Current IP Address 6 = ::
Current IP Address 7 = ::
Current IP Address 8 = ::
Current IP Address 9 = ::
Current IP Address 10 = ::
Current IP Address 11 = ::
Current IP Address 12 = ::
Current IP Address 13 = ::
Current IP Address 14 = ::
Current IP Address 15 = ::
DNS Servers from DHCPv6 = Disabled
Current DNS Server 1 = ::
Current DNS Server 2 = ::
System Information:
System Model = PowerEdge R740
System Revision = I
System BIOS Version = 2.2.11
Service Tag = 10VF4Y2
Express Svc Code = 2229556682
Host Name =
OS Name =
OS Version =
Power Status = ON
Fresh Air Capable = Yes
RollupStatus = Ok
Watchdog Information:
Recovery Action = None
Present countdown value = seconds
Initial countdown value = seconds
System Thermal Information:
EstimatedSystemAirflow = 49 CFM
EstimatedExhaustTemperature = 37 Degrees Centigrade
Embedded NIC MAC Addresses:
NIC.Integrated.1-1-1 Ethernet = E4:43:4B:5B:E0:30
FIP = E4:43:4B:5B:E0:31
WWN = 20:00:E4:43:4B:5B:E0:31
WWPN = 20:01:E4:43:4B:5B:E0:31
NIC.Integrated.1-4-1 Ethernet = E4:43:4B:5B:E0:35
NIC.Integrated.1-2-1 Ethernet = E4:43:4B:5B:E0:32
FIP = E4:43:4B:5B:E0:33
WWN = 20:00:E4:43:4B:5B:E0:33
WWPN = 20:01:E4:43:4B:5B:E0:33
NIC.Integrated.1-3-1 Ethernet = E4:43:4B:5B:E0:34
[root@prod-cloudsino-server ~]#
[root@prod-cloudsino-server ~]# racadm -r 10.200.71.11 -u root -p Admin@9000 get iDRAC.Users.2
Security Alert: Certificate is invalid - self signed certificate
Continuing execution. Use -S option for racadm to stop execution on certificate-related errors.
[Key=iDRAC.Embedded.1#Users.2]
AuthenticationProtocol=SHA
EmailAddress=
Enable=Enabled
IPMIKey=FE93D698ED7E3A4B8D57A35F659DC02441009967D1DF83F8C221438C21C13F09
IpmiLanPrivilege=4
IpmiSerialPrivilege=4
MD5v3Key=BE86FAF29726279F90921E22F4DB5A76
!!Password=******** (Write-Only)
PrivacyProtocol=AES
Privilege=0x1ff
ProtocolEnable=Disabled
SHA1v3Key=D9377927CA5B8BBF2416FF418242EEE628C45938
SHA256Password=0540288F93E8ADA373AE8CCA0480E7E15F6EBA949D9383CABB1DF75857191D5A
SHA256PasswordSalt=F18DD402F95A2F871A417BA44089A250
Simple2FA=Disabled
SMSNumber=
SolEnable=Enabled
UseEmail=Disabled
UserName=root
UseSMS=Disabled
[root@prod-cloudsino-server ~]#
[root@prod-cloudsino-server ~]# racadm -r 10.200.71.11 -u root -p admin@9000 get iDRAC.Users.2 |grep UserName
UserName=root
[root@prod-cloudsino-server ~]# racadm -r 10.200.71.11 -u root -p admin@9000 set iDRAC.Users.2.Password Admin@9000
Security Alert: Certificate is invalid - self signed certificate
Continuing execution. Use -S option for racadm to stop execution on certificate-related errors.
[Key=iDRAC.Embedded.1#Users.2]
Object value modified successfully
[root@prod-cloudsino-server ~]#
[root@prod-cloudsino-server ~]# sh racadm.sh
Security Alert: Certificate is invalid - self signed certificate
Continuing execution. Use -S option for racadm to stop execution on certificate-related errors.
[Key=iDRAC.Embedded.1#Users.2]
Object value modified successfully
Security Alert: Certificate is invalid - self signed certificate
Continuing execution. Use -S option for racadm to stop execution on certificate-related errors.
[Key=iDRAC.Embedded.1#Users.2]
Object value modified successfully
[root@prod-cloudsino-server ~]# cat racadm.sh
#! /bin/bash
pw=admin@9000
for i in `cat /root/ip.txt`; do
racadm -r $i -u root -p $pw set iDRAC.Users.2.Password Admin@9000
done
[root@prod-cloudsino-server ~]# cat /root/ip.txt
10.200.71.11
10.200.71.12
[root@prod-cloudsino-server ~]#