Projet

Général

Profil

Anomalie #1255

Tests IPMI sur Dell R620

Ajouté par Loïc Dachary il y a environ 11 ans. Mis à jour il y a plus de 3 ans.

Statut:
Rejeté
Priorité:
Normale
Assigné à:
Catégorie:
Task
Version cible:
Début:
08/04/2013
Echéance:
% réalisé:

0%

Temps estimé:
Difficulté:
2 Facile

Description

Hardware

Preparation

  • Get information about the serial ports on the machine
    # apt-get install setserial
    # setserial -g /dev/ttyS[01234]
    /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
    /dev/ttyS1, UART: 16550A, Port: 0x02f8, IRQ: 3
    /dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
    /dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
    
  • Setup grub to use the serial line
    cat > /etc/default/grub <<EOF
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet" 
    GRUB_CMDLINE_LINUX="console=ttyS0,115200n8 console=tty1" 
    GRUB_TERMINAL=serial
    GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" 
    EOF
    update-grub
    
  • iDrac control from the hardware on which it is installed
    apt-get install ipmitool openipmi
    modprobe ipmi_si
    modprobe ipmi_devintf
    echo ipmi_si >> /etc/modules
    echo ipmi_devintf >> /etc/modules
    ipmitool lan print
    
  • Activate SOL via iDRAC web interface
  • Activate IPMI via iDRAC web interface
  • On the bare metal, uncomment / add the ttyS0 and ttyS1 and ttyS2 lines in /etc/inittab
    T0:23:respawn:/sbin/getty -L ttyS0 115200 vt102
    

    and reload
    telinit q
    

Ask the kernel to use ttyS0 as a console:

diff --git a/default/grub b/default/grub
index b3a3467..e5c16f6 100644
--- a/default/grub
+++ b/default/grub
@@ -7,7 +7,7 @@ GRUB_DEFAULT=0
 GRUB_TIMEOUT=5
 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
 GRUB_CMDLINE_LINUX_DEFAULT="quiet" 
-GRUB_CMDLINE_LINUX="" 
+GRUB_CMDLINE_LINUX="console=ttyS0,115200n8r console=tty1" 

 # Uncomment to enable BadRAM filtering, modify to suit your needs
 # This works with Linux (no patch required) and with any kernel that obtains

Add the following options to grub

serial --unit=0 --speed=115200 
terminal --timeout=10 serial

Serial On Lan

# ipmitool -H 10.10.2.129 -I lanplus -U root -P XXX sol activate
[SOL Session operational.  Use ~? for help]

Debian GNU/Linux 7.0 bm0103.the.re ttyS0

bm0103 login: 

Web interface

  1. 10.10.2.129 # IP de IDRAC

iceweasel https://10.10.2.129/
user root and password XXX

( how to set the initial password ? )

ssh

ssh root@10.10.2.129 # password XXX

Note: la commande help ne montre pas toutes les commandes disponibles ( par exemple cela ne montre pas racadm, voir ci dessous )

RACADM

En suivant les instructions au début de IDRAC7 reference guide

"_SSH or Telnet — Also referred as Firmware RACADM. Firmware RACADM is accessible by logging in to iDRAC7
using SSH or Telnet. You do not have to specify the iDRAC7 IP, user name, or password to run Firmware
RACADM commands. Similar to Local RACADM, after you enter the RACADM prompt, directly run the
commands without the RACADM prefix._"

root@bm0102:~# ssh 10.10.2.129 # IP de IDRAC password: # mot de passe de l'utilisateur admin, celui qui permet de se logger sur l'interface web

Fichiers

idrac2.png (56,1 ko) idrac2.png Loïc Dachary, 08/04/2013 14:01
idrac1.png (68,5 ko) idrac1.png Loïc Dachary, 10/04/2013 12:10
dell-bios-sol.png (58,5 ko) dell-bios-sol.png Julien Porschen, 04/06/2013 11:29

Demandes liées

Lié à Admins - Demande #1055: configuration d'un serveur 1UFermé03/12/201215/12/2012

Actions

Historique

#1

Mis à jour par Loïc Dachary il y a environ 11 ans

  • Fichier idrac1.png ajouté
#2

Mis à jour par Loïc Dachary il y a environ 11 ans

#3

Mis à jour par Loïc Dachary il y a environ 11 ans

  • Fichier idrac1.png supprimé
#4

Mis à jour par Loïc Dachary il y a environ 11 ans

  • Fichier idrac1.png ajouté
#5

Mis à jour par Loïc Dachary il y a environ 11 ans

  • Fichier idrac1.png supprimé
#6

Mis à jour par Loïc Dachary il y a environ 11 ans

  • Fichier idrac3.png ajouté
#7

Mis à jour par Loïc Dachary il y a environ 11 ans

  • Fichier idrac3.png supprimé
#8

Mis à jour par Loïc Dachary il y a environ 11 ans

#9

Mis à jour par Loïc Dachary il y a environ 11 ans

# ssh 10.10.2.129 
root@10.10.2.129's password: 
/admin1-> racadm getconfig -g cfgSerial
cfgSerialBaudRate=115200
cfgSerialConsoleEnable=0
cfgSerialConsoleQuitKey=^\
cfgSerialConsoleIdleTimeout=300
cfgSerialConsoleNoAuth=0
cfgSerialConsoleCommand=
cfgSerialHistorySize=8192
cfgSerialCom2RedirEnable=1
cfgSerialTelnetEnable=0
cfgSerialSshEnable=1
/admin1-> 
#10

Mis à jour par Loïc Dachary il y a presque 11 ans

  • Version cible changé de Avril 2013 à Mai 2013
#12

Mis à jour par Julien Porschen il y a presque 11 ans

  • Fichier dell-bios-sol.png ajouté

Avec la commande citée plus haut et ipmitool 1.8.12 l'erreur suivante se produit :

$ ipmitool -I lanplus -U root -P XXX -H IP.xx.yy.zz sol activate
Error activating SOL payload: Invalid data field in request

Pour contourner ce problème avec la version 1.8.12 utiliser la variante :

$ ipmitool -I lanplus -U root -P XXX -H IP.xx.yy.zz sol activate -C 3
[SOL Session operational.  Use ~? for help]

Debian GNU/Linux 6.0 XXXX ttyS1

XXXX login:

A toutes fins utiles, en sol, certains raccourcis clavier sont différent de via l'idrac ou en clavier/vga :

    KEY MAPPING FOR CONSOLE REDIRECTION:

    Use the <ESC><0> key sequence for <F10>
    Use the <ESC><!> key sequence for <F11>
    Use the <ESC><@> key sequence for <F12>

    Use the <ESC><Ctrl><M> key sequence for <Ctrl><M>
    Use the <ESC><Ctrl><H> key sequence for <Ctrl><H>
    Use the <ESC><Ctrl><I> key sequence for <Ctrl><I>
    Use the <ESC><Ctrl><J> key sequence for <Ctrl><J>

    Use the <ESC><X><X> key sequence for <Alt><x>, where x is any letter
    key, and X is the upper case of that key

    Use the <ESC><R><ESC><r><ESC><R> key sequence for <Ctrl><Alt><Del>

Et on peut donc aller dans le bios en serial :

#13

Mis à jour par Julien Porschen il y a presque 11 ans

  • Fichier dell-bios-sol.png supprimé
#14

Mis à jour par Julien Porschen il y a presque 11 ans

#15

Mis à jour par Loïc Dachary il y a presque 11 ans

  • Version cible changé de Mai 2013 à Juin 2013
#16

Mis à jour par Loïc Dachary il y a plus de 10 ans

  • Assigné à Loïc Dachary supprimé
#17

Mis à jour par Frédéric Couchet il y a plus de 10 ans

  • Version cible changé de Juin 2013 à Backlog
#18

Mis à jour par François Poulain il y a plus de 7 ans

  • Description mis à jour (diff)

Que faire de ça ? On a toujours un serveur Dell ?

#19

Mis à jour par Vincent-Xavier JUMEL il y a plus de 7 ans

Je crois que la machine offerte par la fondation Free est un Dell, mais je ne suis pas sur que ça soit un R620.

#20

Mis à jour par Vincent-Xavier JUMEL il y a plus de 7 ans

Vérification faite, il s'agit d'un R210 II qui dispose d'IDRAC6 https://www.dell.com/downloads/global/products/pedge/en/poweredge-r210-ii-technical-guide.pdf

#21

Mis à jour par François Poulain il y a environ 7 ans

Du coup ça nous concerne ?

#22

Mis à jour par Benjamin Drieu il y a environ 6 ans

  • Statut changé de En cours de traitement à Rejeté

Plus d'actualité je pense.

#23

Mis à jour par Christian P. Momon il y a plus de 3 ans

  • Assigné à mis à Benjamin Drieu

Formats disponibles : Atom PDF