Recently have had the pleasure of using part of the the Dell Server Administrator tools to manage their hardware on RHEL 5 and 6 servers. The servers had been built and shipped out but the DRAC’s were un-configured. With RACADM command this is not an issue and can be done with command line tools and the use of configuration files. This is assuming the Server Admin tools have been installed on the system. If they have not, all is not lost.
All you need to do is download OM-SrvAdmin-Dell-Web-LX-7.0.0-4614_A00.tar.gz or the latest from Dell’s support site, untar it and run linux/supportscripts/srvadmin-install.sh. The screen will change and you will be presented with installation options. Enter 5 and press enter, when you are returned back press “I” and the installation will begin. Once the installation has completed you will be prompted to start the services, press Y and complete the installation.
Now we can set a few parameters such as:
- root password
- DRAC nic config
- Rac DNS servers
- DRAC DNS Domain
- DNS Rac name
So let’s get started setting them up! In the examples below I am ssh into the servers running the commands.
Set the password for the drac root user using racadm command.
# racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 "newpassword"
Set DRAC nic
# racadm setniccfg -s 192.168.1.50 255.255.255.0 192.168.1.1
Get the current nic config
# racadm getniccfg
NIC Enabled = 1
DHCP Enabled = 0
IP Address = 192.168.1.50
Subnet Mask = 255.255.255.0
Gateway = 192.168.1.1
Set DNS servers
# racadm config -g cfgLanNetworking -o cfgDNSServer1 192.168.1.200
# racadm config -g cfgLanNetworking -o cfgDNSServer2 192.168.1.201
Set DNS Rac Name
# racadm config -g cfgLanNetworking -o cfgDNSRacName myserver
Set DRAC DNS Domain
# racadm config -g cfgLanNetworking -o cfgDNSDomainName drac.mydomain.com
This is just a small piece of what you can do with racadm command. If you want to export the current settings to a file this can be done with getconfig sub-command.
# racadm getconfig –f config.txt
Now you can use this as a template and make changes to use on other systems to set DRAC’s. This also is a good way to see all the settings and parameter names for making more command line changes. Once you have made the changes you can copy the file to the server and use:
# racadm config -f config.txt
and the settings will be imported into the system.
Other useful commands are:
Reset DRAC configuration to factory defaults
# racadm racresetcfg
power off / power on / reboot
# racadm serveraction [powerdown|powerup|powercycle]
View system event log (this will let you see why the orange light is blinking)
# racadm getsel
Clear system event log (this will clear the blinking orange light)
# racadm clear
Get service tag
# racadm getsvctag
Get current system information
# racadm getsysinfo
Hope this helps you to manage your Dell hardware as it does for me!
