VMware Cloud Community
jvm2016
Hot Shot
Hot Shot

get-esxtop_powercli

hi Luc,

i have been reading yur notes on get-esxtop and trying to understand as there is lot of stuff there.

i also downloaded yur module from github but just thought of asking has anything being changed with new release of powercli .

also  are we going to run this with stats level 1 only  ??changing to stats level 3 will need changing the size of DB vmdk .

also what number system is 1E6.

Tags (1)
Reply
0 Kudos
10 Replies
LucD
Leadership
Leadership

The esxtop metrics are not related to the Statistics Levels in vCenter.

The esxtop metrics are only collected when esxtop is running. These metrics are collected at 5 second intervals.

And no, there have not been any changes to the Get-EsxTop cmdlet, and the metrics it returns, since its introduction.


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

thanks i m checking this .

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

Hi Luc,

good morning ,

i see following files in your module .could you tell me if these needs to be saved in specif directory being module.

could you guide me in brief how to run this.

pastedImage_0.png

Reply
0 Kudos
LucD
Leadership
Leadership

You place all those files in one folder named EsxTopCollect.
That folder goes into one of the folders listed in $env:PSModulePath.

Note that my module, as I explained in the post, is a start, it definitely does not contain all mappings.

But feel free to contribute :smileycool:


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

sure ..i will definetly contribute but let me understand it fully ....Smiley Happy

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

i have following in function drive .tried to group-object under function using property source but it does not work .

however following 6 functions   imported from esxtopcollect .and im not sure which one to start with ??

pastedImage_1.png

Reply
0 Kudos
LucD
Leadership
Leadership

There are a couple of examples under the section Sample Usage.

You use the Get-TopStat function.


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

pastedImage_0.png

do i need to change basetype to above as got following

Function:\> Get-TopStat

cmdlet Get-TopStat at command pipeline position 1

Supply values for the following parameters:

VMHost: retrivemystats.example.com

Get-TopStat : Cannot process argument transformation on parameter 'VMHost'.

Cannot convert the "retrivemystats.example.com" value of type

"System.String" to type

"VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost".

At line:1 char:1

+ Get-TopStat

+ ~~~~~~~~~~~

    + CategoryInfo          : InvalidData: (:) [Get-TopStat], ParameterBinding

   ArgumentTransformationException

    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-TopStat

Reply
0 Kudos
LucD
Leadership
Leadership

You have to provide a VMHostImpl object (what is produced by Get-VMHost), not the name of the VMHost (which is a string).

Have a look at the samples


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

Reply
0 Kudos
jvm2016
Hot Shot
Hot Shot

tx im checking .

Reply
0 Kudos