Determine whether or not a DRAC5 is installed

Mike M saetaes at gmail.com
Wed May 30 16:49:29 CDT 2007


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
}



More information about the Linux-PowerEdge mailing list