ADDM: Physical Memory is not discovered for some Linux servers

Version 2
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BMC Discovery


    COMPONENT:

    BMC Atrium Discovery and Dependency Mapping


    APPLIES TO:

    BMC Atrium Discovery and Dependency Mapping



    QUESTION:

    A customer found they were missing the the physical memory data on some of their Linux Hadoop servers. All servers were showing logical memory but not all were displaying the physical memory. They found this is related to new memory (LRDIMM) on these servers. How can this be resolved?


    ANSWER:

    The getHostInfo script doesn't account for the GB memory size so no physical memory is reported. Defect DRUD1-17180 has been created, and a fix will be provided in a future release.

    As a workaround, you can modify the script as shown below:

      

    Administration / Discovery / Platforms / Linux / Shell Scripts / getHostInfo

      
       
    1. The specification only allows for the physical RAM size to be given in either
    2.  
    3. KB or MB. [System Management BIOS (SMBIOS) Reference Specification, p.86 -
    4.  
    5. http://www.dmtf.org/sites/default/files/standards/documents/DSP0134_2.8.0.pdf]
      if [ -f /usr/sbin/dmidecode ]; then
      dmidecode_ram=`PRIV_DMIDECODE /usr/sbin/dmidecode -t 17 2>/dev/null | awk '
      /Size:/ {
      if ($3 == "kB" || $3 == "KB")
      size += $2
      else if ($3 == "MB")
      size += $2*1024
      else if ($3 == "GB") <==== added line
      size += $2*1024*1024 <==== added line
      }
      END {
      print size
      }'`
      if [ "$ {dmidecode_ram}" != "" ]; then
      ram="${dmidecode_ram}

      KB"
      fi

      

    With this code addition, the physical memory is now displayed.

     


    Article Number:

    000130452


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles