[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-poweredge
Subject:    Determine whether or not a DRAC5 is installed
From:       "Mike M" <saetaes () gmail ! com>
Date:       2007-05-30 21:49:29
Message-ID: 8552c3a30705301449l4ac5063cld749357649101f8c () mail ! gmail ! com
[Download RAW message or body]

Hi,

Is there a way to determine whether or not a DRAC5 is installed in a
29xx within the running OS?  In the DRAC3/4 generations, you could
tell by running `lspci`.  In the 9G servers it doesn't seem to be the
case.

In fact, in the OMSA deployment scripts, it doesn't look like there is
any intelligence in determining whether or not a DRAC is actually
installed - it just sets the DRAC5PRESENT=1 if the server is a 9G.
See the code snippet below.

Does anyone know if this is possible?

Thanks,

Mike

-------- Code Snippet from OMSA 5.2 srvadmin-install.sh --------


function IsRACHardwarePresent {
  # including rac based on RAC hardware presence
  DRAC3PRESENT=0
  DRAC4PRESENT=0
  DRAC5PRESENT=0

  SYSID=`GetSysId`
  if [ -n "${SYSID}" ];
  then
      # 9G System detected?
      if grep -iq "^${SYSID}=" "${NINEGSYSIDFILEPATH}" ;
      then
          # system is 9G, always install
          DRAC5PRESENT=1

      else
          for X in `lspci -n`;
          do

           # DRAC3 found?
           grep $X=DRAC3 "${SYSIDFILEPATH}" > /dev/null;
           if [ $? = 0 ];
           then
               DRAC3PRESENT=1
           fi

           # DRAC4 found?
           grep $X=DRAC4 "${SYSIDFILEPATH}" > /dev/null;
           if [ $? = 0 ];
           then
               DRAC4PRESENT=1
           fi

          done
      fi
  fi
}

_______________________________________________
Linux-PowerEdge mailing list
Linux-PowerEdge@dell.com
http://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic