1.查看当前idrac设置
If you want to have information about your current server, type:
racadm getsysinfo
2.管理服务器电源
Connect to the Dell Remote Access Controller (Drac) IP address via SSH. Then execute:
racadm serveraction powerdown — Powers down the managed system.
racadm serveraction powerup — Powers up the managed system.
racadm serveraction powercycle — Issues a power-cycle operation on the managed system. This action is similar to pressing the power button on the system’s front panel to power down and then power up the system.
racadm serveraction powerstatus — Displays the current power status of the server (“ON”, or “OFF”)
racadm serveraction hardreset — Performs a reset (reboot) operation on the managed system.
So, to power off and back on your server, you just type racadm serveraction powercycle.
3.重启idrac卡
If your Drac crashes for any reason, you may want to reset it:
racadm racreset
4.修改idrac密码
All Dell DRACs come with a default account set up as root / calvin which may be a security risk!
Having Drac5 or Drac6 and racadm installed on one of your servers, you can display your current admin account with this command:
racadm getconfig -g cfgUserAdmin -i 2
When you‘ve made sure that this is the right account, you can change the password using the folling command:
The command for DRAC 5 and older:
racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 1 <newpassword>
The command for iDRAC 6 and newer:
racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 <newpassword>