thiag2011
Enthusiast
Enthusiast

Fetch host hardware information

Hi all,

I would like to fetch the information available from health status of ESXi host .

Configuration --> Hardware --> Health Status

Need to fetch hard disk size, raid level of local harddisk, BMC firmware version etc.

Please advice how to fetch the same using powercli.

7 Replies
LucD
Leadership
Leadership

For the health state, did you already check this one  20.  Re: checking esxi hardware for problems using powercli


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

thiag2011
Enthusiast
Enthusiast

Hi LucD,

Thanks for your reply.

I think i need to be more detailed.

Actually my requirement is not to fetch the health status,

but would like to get the BIOS version, BMC firmware version, number of physical harddisks, and what raid level is configured for the DAS disk of that host.

I could see those info in the Hardware section, but not sure how to fetch it.

0 Kudos
thiag2011
Enthusiast
Enthusiast

Hi LucD,

With help of your post, am able to get the BIos and BMC firmware information.

But unable to fetch the local harddisk information and its raid level.

Please help

0 Kudos
LucD
Leadership
Leadership

Can't you get that info with one of the methods is gave in  1.  Re: Host Server power Management and processor options to be fetched ?

Sorry, no HP HW at my disposition, can't try it out.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
thiag2011
Enthusiast
Enthusiast

Hi Luc,

No, unable to use those.

1) we cannot use plink.exe in our environment as it is against compliance

2) HPILO cmdlets are only for windows OS, i guess.. as per the statement given in the link shared by you.

Is there a possibility to find just the local harddisks and its size alone.

( local harddisk before creating raid. and not the local harddisk datastore size)

0 Kudos
thiag2011
Enthusiast
Enthusiast

Hi,

Finally am able to get the list of physical drives only  using the below command,

/opt/hp/hpssacli/bin # ./hpssacli controller slot=0 physicaldrive all show

This gives the output when i login via putty.

But thing is that, i need to run this via powercli.

Is there a possibility to run this command via powercli.

0 Kudos
LucD
Leadership
Leadership

You can do that via plink.exe, see a sample script in  6.  Re: Restart Service Script ?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos