Miscellaneous racadm commands for Dell server management
Find iDRAC info using racadm
racadm getsysinfo
racadm getniccfg
Reset / Restart iDRAC remotely
racadm -u root -p calvin -r <RemoteServerIP> -i racreset soft
Server PowerDown
racadm serveraction powerdown
Server PowerOn
racadm serveraction powerup
Server Restart
racadm serveraction powercycle
Check Server Power Status
racadm serveraction powerstatus
Server Hard Reset
racadm serveraction hardreset
Reset iDRAC from SSH (to resolve iDRAC Web console not opening)
racadm racreset soft
Display all iDRAC available event filter configurations using RACADM:
racadm eventfilters get -c idrac.alert.all
Clear all iDRAC available alert settings using RACADM
racadm eventfilters set -c idrac.alert.all -a none -n none
iDRAC Alert Setup All using RACADM
racadm eventfilters set -c idrac.alert.all -a none -n email
Set iDRAC Critical and Warning Alerts using racadm (OMSA)
racadm eventfilters set -c idrac.alert.system.critical -a none -n email
racadm eventfilters set -c idrac.alert.storage.critical -a none -n email
racadm eventfilters set -c idrac.alert.updates.critical -a none -n email
racadm eventfilters set -c idrac.alert.audit.critical -a none -n email
racadm eventfilters set -c idrac.alert.config.critical -a none -n email
Reset iDRAC root Password Local Racadm
racadm set iDRAC.Users.2.Password Passw0rd
Reset iDRAC root Password from SSH
ssh -t root@Server-idrac racadm set iDRAC.Users.2.Password Passw0rd
Reset iDRAC root Password locally with OMS installed
racadm set iDRAC.Users.2.Password Passw0rd
Reset iDRAC Password from remote racadm
racadm -r Server-idrac -u root -p calvin set iDRAC.users.2.Password Pa55W0rd
Racadm Add User
racadm --nocertwarn -r server-idrac -u root -p calvin set idrac.users.8.username computeadmin
Racadm Set Password
racadm --nocertwarn -r server-idrac -u root -p calvin set idrac.users.8.password Password
Racadm Enable Account
racadm --nocertwarn -r Server-idrac -u root -p calvin set idrac.users.8.enable 1
Racadm Set Privilege (0x1 ReadOnly; 0xf3 Operator; 0xff Administrator; 0x0 None)
racadm --nocertwarn -r Server-idrac -u root -p calvin set idrac.users.8.privilege 0x1ff
Racadm Delete Account
racadm --nocertwarn -r Server-idrac -u root -p calvin set idrac.users.8.username ""
Enable AD / Active Directory integration on iDRAC
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set iDRAC.IPv4.DNS1 <DNS1>
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set iDRAC.IPv4.DNS2 <DNS2>
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set idrac.ActiveDirectory.Enable 1
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set idrac.ActiveDirectory.DomainController1 <DomainName>
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set idrac.ActiveDirectory.GlobalCatalog1 <DomainName>
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set idrac.ActiveDirectory.Schema 2
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set idrac.ADgroup.1.Domain <DomainName>
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set idrac.ADgroup.1.Name <Authorised AD Group>
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set idrac.ADgroup.1.Privilege 0x1ff
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set idrac.UserDomain.1.Name <DomainName>
Run command on iDRAC using SSH (non interactive Password Prompt)
echo calvin | ssh root@Server-idrac racadm getsysinfo
Racadm get boot mode bios or uefi
racadm get bios.bootsettings.bootmode
Racadm Update idrac firmware from catalog
racadm update -f Catalog.xml -l <NFSIP>:/nfsexport/bios/2019-10-Dec/repository -t NFS -a TRUE
iDRAC Mount virtual Media
racadm remoteimage -c -u username -p password -l '<NFSIP>:/nfsexport/iso/custom_iso/WIN_SRV2019_X64_UEFI-1190.iso'
Collect TSR from Racadm command.
racadm -r <Remote NFS Share IP> -u root -p calvin techsupreport export -f c:\temp\sfhnvr_1-cctv_8XVNQP2.zip
Update firmware using racadm
racadm -r iDRACName -u root -p calvin update -f D:\Data\Dell\iDRAC-with-Lifecycle-Controller_Firmware_NKGJW_WN64_3.31.31.31_A00.EXE
iDRAC Virtual Console Port Change
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set iDRAC.VirtualConsole.Port 8080
iDRAC Virtual Console Type
racadm --nocertwarn -r Server-iDRAC -u root -p calvin set iDRAC.VirtualConsole.PluginType <0-ActiveX, 1-Java, 2-HTML5>
Racadm List Physical Disks:
racadm storage get pdisks
List Physical Disks with extended information to identify SSD/SAS disks:
racadm storage get pdisks -o
Echo Create RAID one with SSD
racadm storage createvd:RAID.Integrated.1-1 -rl r1 -wp wt -rp nra -name APPS -pdkey:Disk.Bay.12:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.13:Enclosure.Internal.0-1:RAID.Integrated.1-1
Echo Create RAID 6 with SAS
racadm storage createvd:RAID.Integrated.1-1 -rl r6 -wp wt -rp nra -name DATA -pdkey:Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.3:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.4:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.5:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.6:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.7:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.8:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.9:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.10:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.11:Enclosure.Internal.0-1:RAID.Integrated.1-1
Echo Schedule Job at realtime
racadm jobqueue create RAID.Integrated.1-1 --realtime
Echo View Virtual Disks
racadm storage get vdisks
Set CPU Performance settings to Max Performance (using iDRAC Web Console):
System BIOS > System Profile Settings > CPU Power Management > Change CPU Profile to Max Performance.
Set CPU C1 Settings to Disabled (using iDRAC Web Console):
System BIOS > System Profile Settings > C1E > Disabled
Set CPU C Settings to Disabled (using iDRAC Web Console):
System BIOS > System Profile Settings > C States > Disabled
Set Bios Profile settings to Custom mode to be able to set Performance settings (Using racadm command line):
racadm set bios.SysProfileSettings.SysProfile Custom
Set CPU Performance settings to Max Performance (Using racadm command line):
racadm set BIOS.SysProfileSettings.ProcPwrPerf MaxPerf
Set CPU C1 Settings to Disabled (Using racadm command line)
racadm set BIOS.SysProfileSettings.ProcC1E Disabled
Set CPU C Settings to Disabled (Using racadm command line)
racadm set Bios.sysprofileSettings.proccstates Disabled
Create Job Queue for changes done above (Using racadm command line)
racadm jobqueue create BIOS.Setup.1-1 -r forced
Initiate Server Reboot to apply changes (Using racadm command line):
racadm serveraction powercycle
Retrieve Settings defined using racadm command:
Get Bios Profile Settings
racadm get bios.SysProfileSettings.SysProfile
Get CPU Power Performance Settings
racadm get BIOS.SysProfileSettings.ProcPwrPerf
Get CPU C1 Settings
racadm get BIOS.SysProfileSettings.ProcC1E
Get CPU C Settings
racadm get Bios.sysprofileSettings.proccstates
To check PSU Redundancy policy setting : (14th Gen and above systems)
racadm get system.serverPwr.PSRedPolicy
To set policy setting to ‘redundant or A/B grid Redundant’
racadm set system.serverPwr.PSRedPolicy 1
To check current primary power supply :
racadm get system.serverPwr.RapidOnPrimaryPSU
To set Primary power supply to ‘PSU1’ :
racadm set system.serverPwr.RapidOnPrimaryPSU PSU1
Note : ‘PSU2’ if you want PSU2 to set as primary.
To check policy setting : (12 Gen Systems)
racadm get system.power.RedundancyPolicy
To set policy setting to ‘redundant or A/B grid Redundant’
racadm set system.power.RedundancyPolicy 1
To check current primary power supply :
racadm get System.Power.HotSpare.PrimaryPSU
To set Primary power supply to ‘PSU1’ :
racadm set System.Power.HotSpare.PrimaryPSU PSU1
Staye tuned for more :) ....
No comments:
Post a Comment