3

I have a VMware infrastructure with some ESXi 4.1 hosts and a vCenter Server 5.0 installed. I need to extend our hardware inventory with the following info:

  • how many memory slots are available in each ESXi host
  • how many and what type (DDR2/DDR3, size, MHz) of memory modules are installed in the slots

To collect this info I have to use PowerCLI and if needed, I can use ESXCli from within it. However I do not have ssh access to the ESXi hosts, so running native ESXi commands is not a possibility.

Is there a way to query the memory information from PowerCLI?

(As a bonus it would be lovely to query if the RAID controllers in the ESXi hosts have a BBWC module installed...)

2
  • Do you know what types of servers (make/model) you have? The information you receive will depend on that information.
    – ewwhite
    Feb 7, 2013 at 13:53
  • I have HP blades. G5-G7 ones if I'm correct. However I can't use the admin UI of the chassis to query the info, all I have access to is PoweCLI... :/
    – Zizzencs
    Feb 7, 2013 at 13:55

2 Answers 2

4

So these are HP ProLiant servers. You have a variety of methods to gain the inventory information you're looking for... Of the available choices, querying the VMware host via PowerCLI is about the last option I'd use...

I'll add that if you're not using the HP build of ESXi or don't have the HP .VIB bundles installed, you won't get full visibility into the storage system features.

Also see:
How to find out more hardware details using only ESXi4.1 and (possibly) shell
and
Options for managing Smart Array P400 on an ESXi 5 host

2
  • Yeah, these are all the tools that I could use for this scenario - and they are exactly the ones that I do not have access to... I'm trying to convince the management that I need access to the chassis management UI but I'd still be interested if the querying is doable from PowerCLI.
    – Zizzencs
    Feb 7, 2013 at 14:19
  • Depends... Sounds like more of a political issue. For the PowerCLI, it's possible, but far more work. Start here.
    – ewwhite
    Feb 7, 2013 at 14:22
2

With the smbiosDump command it is possible to know how many RAM expansion slots and which are connected in each one.

Example:

To know the number of slots:

smbiosDump | grep -A 4 'Physical Memory Array'

It shows us the total RAM installed for 12 slots:

smbiosDump | grep -A 12 'Memory Device'

Here more detail of how it works: https://www.sysadmit.com/2018/05/vmware-esxi-ver-modulos-de-ram.html

1
  • To bring his answer a bit more up-to-date, I found it necessary, after the first step (determining the number of slots), to just pipe the smbiosDump output through less, and then personally parse the output to find out what slots were filled with what memory (the second step) given. Also, the standalone version of esxi 5.0.0 returns different information than illustrated in the link.
    – BISI
    Dec 4, 2018 at 22:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .