This is a quick note for some commands, I have found useful.

Get the currently configured OS hostname

1
> racadm get System.ServerOS.Hostname

Set the configured OS hostname

1
2
3
> racadm set System.ServerOS.Hostname hv-2.ka.beiheimdaheim.de
[Key=System.Embedded.1#ServerOS.1]
Object value modified successfully

Reset the SSL certificate

1
2
> racadm sslresetcfg
> racadm racreset

Get a list of all storage devices, and their blocksize (conversion of NetApp Disks - blocksize 520)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$ for sg in $( ls /dev/sg* ); do output=$(sg\_format $sg 2>/dev/null); blocksize=$( echo "$output" \| grep 'Block size' \| cut -d\\= -f2 \| cut -d\ -f1); echo "$sg: $blocksize"; done
/dev/sg0: 512
/dev/sg1: 512
/dev/sg10: 512
/dev/sg11: 512
/dev/sg12: 512
/dev/sg13: 512
/dev/sg14: 512
/dev/sg15: 512
/dev/sg16: 512
/dev/sg17: 512
/dev/sg18: 512
/dev/sg19: 512
/dev/sg2: 512
/dev/sg20: 512
/dev/sg21: 512
/dev/sg22:
/dev/sg23:
/dev/sg3: 512
/dev/sg4: 512
/dev/sg5: 512
/dev/sg6: 512
/dev/sg7: 512
/dev/sg8: 512
/dev/sg9: 512

List the servers power status and try and turn the power off.

1
2
3
4
admin1-> racadm serveraction powerstatus
Server power status: ON
admin1-> racadm serveraction powerdown
ERROR: Timeout while waiting for server to perform requested power action.

If you happen to have 3rd party fans inside the system, you may get the above reaction.

1
2
3
4
# Get/Enable/Disable 3rd party fan response
racadm get system.thermalsettings.ThirdPartyPCIFanResponse
racadm set system.thermalsettings.ThirdPartyPCIFanResponse 1 # enable
racadm set system.thermalsettings.ThirdPartyPCIFanResponse 0 # disable
  • BIOS 2.0.21
  • iDrac 1.57.57
  • BIOS 2.1.3
  • iDrac w/ Lifecycle Controller 2.21.21 (the updates merged after this point)
  • BIOS 2.4.2
  • iDrac w/ LCC 2.40.40
  • BIOS 2.5.1
  • iDrac w. LCC 2.63.60.62. (latest)
  • BIOS 2.6.0 (latest)