How.com.vn is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 13 people, some anonymous, worked to edit and improve it over time.
This article has been viewed 80,666 times.
The Dell PowerEdge series of servers come with built into management interfaces called DRACs.
This page instructs you on how to configure the DRAC interface from inside Linux in order to enable console redirection over SSH connections.
Steps
Preconfiguration
- Upgrade software and firmware.
- Upgrade to the latest Dell OpenManage Server Administrator Managed Node package. Omconfig and racadm should be included in those packages.
- Upgrade your Drac firmware to the latest version.
- Install ipmitool
- Set the Dell Drac Password. See setting Dell Drac Passwords
- Determine if you have a DRAC4 or DRAC5 card installed.
- Two ways to tell your DRAC card version _before_ installing racadm (so you know which racadm to symlink to /usr/bin/racadm ) :
- First way is to use the IPMI version. DRAC4's are version 1.5 and DRAC5's are 2.0.
- Run the command, /opt/bcs/bin/ipmitool mc info |grep IPMI
- On a DRAC4 host= IPMI Version : 1.5
- On a DRAC5 host= IPMI Version : 2.0
- What's nice about ipmitool is that you don't have to have any OpenManage packages installed to use it. But that's not going to work when they release DRAC6 if DRAC6 is IPMI version 2.0 as well.
Advertisement - Use the omreport command as another method for determining the DRAC version:
- Run the command, omreport chassis info |grep DRAC
- On a DRAC4 host = DRAC4 Version : 1.60
- On a DRAC5 host = DRAC5 Version : 1.32
- It is recommended that you use omreport to determine the DRAC version.
Advertisement
For Dell DRAC 4 : How To Set Up Console Redirection Over SSH
- Dell DRAC 4 : Configure the bios options:
- omconfig chassis biossetup attribute=conredirect setting=enable
- omconfig chassis biossetup attribute=serialport1 setting=rac
- omconfig chassis biossetup attribute=fbr setting=9600
- omconfig chassis biossetup attribute=crab setting=enabled
- Dell DRAC 4 : Change drac settings: (If racadm is not in your path check /opt/dell/srvadmin/rac5/bin/racadm )
- racadm config -g cfgSerial -o cfgSerialBaudRate 57600
- racadm config -g cfgSerial -o cfgSerialConsoleEnable 1
- racadm config -g cfgSerial -o cfgSerialConsoleIdleTimeout 0x300c
- racadm config -g cfgSerial -o cfgSerialTelnet7fIsBackspace 1
- racadm config -g cfgSerial -o cfgSerialSshEnable 1
- racadm config -g cfgSerial -o cfgSerialHistorySize 0x2000
- Check the changes: racadm getconfig -g cfgSerial
- Dell DRAC 4 : Edit your grub.conf (now called /boot/grub/menu.lst) to enable two things: 1- grub interaction and 2- kernel messages and rc script output.
- For the first part (grub interaction) add a "serial" and "terminal" line to the grub.conf. You must comment out the splashimage for this to work:
- splashimage=(hd0,0)/grub/splash.xpm.gz
- hiddenmenu
- serial --unit=0 --speed=9600
- terminal --timeout=5 serial console
- Pass to the kernel the console arguments (in the grub.conf) so you can see all the messages once the kernel loads and beyond (output from rc scripts for example.) Note that it's ttyS0:
- kernel /vmlinuz-2.6.9-67.ELsmp ro root=LABEL=/ console=tty0 console=ttyS0,57600
- Add a agetty line in the /etc/inittab to redirect the serial console correctly and restart init afterwards. This will provide you with a login prompt in the serial console once the system has booted. For example (Note: ttyS0):
- ONS:2345:respawn:/sbin/agetty -i -L 57600 ttyS0 vt100
- To allow root login access to the new console, you will need to add 'ttyS1' to /etc/securetty (if it's not already there).
- After you've added the above line to /etc/inittab Restart init with:
- init q
Advertisement - For the first part (grub interaction) add a "serial" and "terminal" line to the grub.conf. You must comment out the splashimage for this to work:
For Dell DRAC 5 : How To Set Up Console Redirection Over SSH
- Dell DRAC 5 : Configure the bios options:
- omconfig chassis biossetup attribute=extserial setting=rad
- omconfig chassis biossetup attribute=fbr setting=9600
- omconfig chassis biossetup attribute=serialcom setting=com2
- omconfig chassis biossetup attribute=crab setting=enabled
- Dell DRAC 5 : Change drac settings:
- racadm config -g cfgSerial -o cfgSerialBaudRate 115200
- racadm config -g cfgSerial -o cfgSerialConsoleEnable 1
- racadm config -g cfgSerial -o cfgSerialSshEnable 1
- racadm config -g cfgSerial -o cfgSerialHistorySize 2000
- Dell DRAC 5 : Edit your grub.conf (now called /boot/grub/menu.lst) to enable two things: 1- grub interaction and 2- kernel messages and rc script output.
- For the first part (grub interaction) you'll need to add a "serial" and "terminal" line to the grub.conf. You must comment out the splashimage for this to work. Note that it's unit=1 and speed=115200 which is different from the DRAC4:
- splashimage=(hd0,0)/grub/splash.xpm.gz
- hiddenmenu
- serial --unit=1 --speed=115200
- terminal --timeout=5 serial console
- Next pass to the kernel the console arguments so you can see all the messages once the kernel loads and beyond (output from rc scripts for example.) Note that it's ttyS1:
- kernel /vmlinuz-2.6.9-67.ELsmp ro root=LABEL=/ console=tty0 console=ttyS1,115200
- Add a agetty line in the /etc/inittab to redirect the serial console correctly and restart init afterwards. This will provide you with a login prompt in the serial console once the system has booted. For example (Note: ttyS1):
- CONS:2345:respawn:/sbin/agetty -i -h -L 115200 ttyS1 vt100
- To allow root login access to the new console add 'ttyS1' to /etc/securetty (if it's not already there).
- After you've added the above line to /etc/inittab Restart init with:
- init q
- For the first part (grub interaction) you'll need to add a "serial" and "terminal" line to the grub.conf. You must comment out the splashimage for this to work. Note that it's unit=1 and speed=115200 which is different from the DRAC4:
- Test your connection to the Inband interface
- Now from a remote host, ssh to the Drac IP address or Drac hostname as user "root". For example : ssh test.host.com -l root
- Type the iDrac password to log into the Drac.
- Either use racadm commands or the connect command (Example: racadm help ).
- To connect to the serial console redirection connect to com2. For example: connect com2
- To disconnect use "[CTRL]+[\]" (Press the Control key and the backslash key together to disconnect cleanly from the connection.)
- If it says the port is in use by another user that probably means the connection was not cleanly terminated. Best way to clear that up is to reset the Drac card with the following command: racadm racreset
- Also useful for when you need to reboot the host: racadm serveraction gracereboot
Advertisement
Expert Q&A
Is this article up to date?
⚠️ Disclaimer:
Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.
- - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
- - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
- - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
- - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.