RAM Slot information for Linux Machine

Hi All,

Is there any way to pull Total Ram Slot,Used Ram Slot and Free Ram Slot from Linux machine because I am not able to see any out of box property present in IBM Bigfix Console.

Thanks in Advance.

Any help will be highly appreciated

I’m not familiar with Linux or querying it via relevance personally but check out the SMBIOS Inspectors section (page 186) in http://support.bigfix.com/fixlet/documents/Linux%20Inspectors%2081_110706.pdf

Maybe something like this will get the info you need.

string values "number_of_associated_memory_slots" of structures "memory_controller_information" of smbios

Regs
Rob

In inspector guide also I’m not able to find anything about the Ram slot.

This is very critical for us.If any other help can be done that will be highly appreciated

Seems that this what you are looking for:

size of <ram>
Returns the number of bytes of random access memory on the current machine.

available amount of <ram>
Returns the amount of system ram that is currently available, in bytes.

used amount of <ram>
Returns the amount of system RAM currently used, in bytes.

free amount of <ram>
Returns the amount of system RAM currently unused, in bytes.

Reference: http://support.bigfix.com/inspectors/System%20Objects_Lin.html#ram

@fermt thanks for your relpy but I need RAM Slot information.

For example my system has
Total number of RAM Slot -8
In use -4
Free -4

Any help related to above will be helpful

Then SMBIOS objects inspectors should be used, just take a look into the documentation.

Another approach could be to write a fixlet that returns that information using Linux commands, save the output to a file and then use an analysis to pull the information from the file, finally create a report and you will have the information.

Any of those approaches should work.

Try this analysis: https://bigfix.me/analysis/details/2994751

Also see this related analysis: https://bigfix.me/analysis/details/2994574

These make use of the SMBIOS inspector, which should work on both Windows & Linux.