SLAC ESD Software Engineering Group
Stanford Linear Accelerator Center

RACADM

SLAC Computing
Software Engineering
Detailed
Unix
 

 

 


RACADM provides command line interfacet to the DRAC.

Located in /opt/dell/srvadmin/sbin

Standard Configuration of ALL iDrac

FILE:         /usr/local/admin/Drac/DRAC-Configs/Auto-config

 

#Email
racadm config -g cfgEmailAlert -o cfgEmailAlertAddress -i 1 "controls-system-admins@slac.stanford.edu"

#To enable email alerts
racadm config -g cfgEmailAlert -o cfgEmailAlertEnable -i 1 1

#To enable Platform Event Filters
racadm config -g cfgIpmiLan -o cfgIpmiLanAlertEnable 1

#NTP:

racadm get idrac.NTPConfigGroup

racadm set idrac.NTPConfigGroup.NTP1 134.79.151.12

racadm set idrac.NTPConfigGroup.NTP2 134.79.151.13

racadm set idrac.time America/Tijuana

racadm set idrac.NTPConfigGroup.NTPEnable 1

#DNS

racadm config -g cfgLanNetworking -o cfgDNSServer1 134.79.151.12

racadm config -g cfgLanNetworking -o cfgDNSServer2 134.79.151.13

# SYSLOG server
racadm config -g cfgRemoteHosts -o cfgRhostsSyslogEnable 1
racadm config -g cfgRemoteHosts -o cfgRhostsSyslogServer1 134.79.151.40

#To configure the DNS Rac name
racadm config -g cfgLanNetworking -o cfgDNSRacName "$HOST"

 

#Turn on Ipmi monitoring

racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 1 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 2 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 3 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 4 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 5 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 6 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 7 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 8 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 9 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 10 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 11 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 12 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 13 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 14 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 15 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 16 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 17 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 18 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 19 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 20 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 21 0
racadm config -g cfgIpmiPef -o cfgIpmiPefAction -i 22 0

 

Other Settings:

#test Email
/opt/dell/srvadmin/sbin/racadm testemail -i 1

#To create a config file
racadm getconfig -f racadm-config-file
#To load a config file
racadm config -f racadm-config-file

 

To change NIC settings without rebooting:

racadm setniccfg -s 172.27.7.27 255.255.252.0 172.27.4.1

 

[root@lcls-srv08 sbin]# ./racadm getniccfg

IPv4 settings:
NIC Enabled = 1
IPv4 Enabled = 1
DHCP Enabled = 0
IP Address = 172.27.7.27
Subnet Mask = 255.255.252.0
Gateway = 172.27.4.1

Set DNS:

racadm config -g cfgLanNetworking -o cfgDNSServer1 134.79.151.12
racadm config -g cfgLanNetworking -o cfgDNSServer2 134.79.151.13

To Reset a password:

 

[root@lcls-daemon2 ~]# racadm getconfig -g cfgUserAdmin -i 2
# cfgUserAdminIndex=2
cfgUserAdminUserName=root
# cfgUserAdminPassword=******** (Write-Only)
cfgUserAdminEnable=1
cfgUserAdminPrivilege=0x000001ff
cfgUserAdminIpmiLanPrivilege=4
cfgUserAdminIpmiSerialPrivilege=4
cfgUserAdminSolEnable=1


[root@lcls-daemon2 ~]# racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 "Password"
Object value modified successfully
[root@lcls-daemon2 ~]#

 

Set IPMI

racadm config -g cfgIpmiLan -o cfgIpmiLanEnable 1

Set console to use Java

racadm config -g cfgRacTuning -o cfgRacTunePluginType 1

 


 

 

 

 

 

 

[root@lcls-srv08 sbin]# ./racadm help


help [subcommand] -- display usage summary for a subcommand
clearasrscreen -- clear the last ASR (crash) screen
closessn -- close a session
clrraclog -- clear the RAC log
clrsel -- clear the System Event Log (SEL)
config -- modify RAC configuration properties
coredump -- display the last RAC coredump
coredumpdelete -- delete the last RAC coredump
fwupdate -- update the RAC firmware
getconfig -- display RAC configuration properties
getniccfg -- display current network settings
getraclog -- display the RAC log
getractime -- display the current RAC time
getsel -- display records from the System Event Log (SEL)
getssninfo -- display session information
getsvctag -- display service tag information
getsysinfo -- display general RAC and system information
gettracelog -- display the RAC diagnostic trace log
krbkeytabupload -- upload kerberose keytab file to the RAC
localconredirdisable -- disable the Virtual Console from a local Console
racreset -- perform a RAC reset operation
racresetcfg -- restore the RAC configuration to factory defaults
remoteimage -- Makes a remote ISO image available to the server
serveraction -- perform system power management operations
setniccfg -- modify network configuration properties
sshpkauth -- manage SSH PK authentication keys on the RAC
sslcertdownload -- download an SSL certificate from the RAC
sslcertupload -- upload an SSL certificate to the RAC
sslcertview -- view SSL certificate information
sslcsrgen -- generate a certificate CSR from the RAC
sslkeyupload -- upload an SSL key to the RAC
testemail -- test RAC e-mail notifications
testtrap -- test RAC SNMP trap notifications
usercertupload -- upload an user certificate to the DRAC
usercertview -- view user certificate information
version -- display the version info of RACADM
vflashpartition -- manage partitions on the vFlash SD card
vflashsd -- perform vFlash SD Card initialization
vmdisconnect -- disconnect Virtual Media connections

 

 

 

 

 

 

 

racadm help setniccfg
setniccfg -- modify network configuration properties

Usage:

racadm setniccfg -d
racadm setniccfg -d6
racadm setniccfg -o
racadm setniccfg -s <ipv4_address> <subnetmask> <ipv4_gateway>
racadm setniccfg -s6 <ipv6_address> <prefix_length> <ipv6_gateway>

-d : enable DHCP
-d6 : enable DHCP6
-o : enable/disable NIC
-s : enable static IPv4 address and set parameters
-s6 : enable static IPv6 address and set parameters

 

 

 

Following is for Dell RAC 6 -

If you lose root password for racadm then reset to factory defaults, configure network, change password.

 

# racadm racresetcfg

 

Default user name – root. Default dell password calvin

 

# racadm setniccfg –s  172.27.7.52   255.255.252.0   172.27.4.1

Static IP configuration enabled and modified successfully

 

Now you can logon over web using default user name  root. Default dell password calvin

 

 

# racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2  "ourpassword_in_quotes"

Object value modified successfully

 

 

 

 


[SLAC ESD Software Engineering Group][ SLAC Home Page]


Author: Ken Brobeck

Modified: 25-Oct-2013