Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Viewing all articles
Browse latest Browse all 1577

Search and return a specific perfcounter from per manager perl SDK

$
0
0

Hello,

I have read the vsphere perl sdk guides and have also looked at the performance.pl script to return perf data. What I am trying to do is to return a single perfcounters values. 

For example if I wanted to return the value for this particular counter below. I am wanting to search based on the nameinfo=>summary value and the rolluptype=>val value.

 '65555' => bless( {
                            'groupInfo' => bless( {
                                                    'key' => 'mem',
                                                    'label' => 'Memory',
                                                    'summary' => 'Memory'
                                                  }, 'ElementDescription' ),
                            'key' => '65555',
                            'nameInfo' => bless( {
                                                   'key' => 'zero',
                                                   'label' => 'Zero',
                                                   'summary' => 'Memory that contains 0s only'
                                                 }, 'ElementDescription' ),
                            'rollupType' => bless( {
                                                     'val' => 'minimum'
                                                   }, 'PerfSummaryType' ),
                            'statsType' => bless( {
                                                    'val' => 'absolute'
                                                  }, 'PerfStatsType' ),
                            'unitInfo' => bless( {
                                                   'key' => 'kiloBytes',
                                                   'label' => 'KB',
                                                   'summary' => 'Kilobytes'
                                                 }, 'ElementDescription' )
                          }, 'PerfCounterInfo' ),

 '65555' => bless( {

                            'groupInfo' => bless( {

                                                    'key' => 'mem',

                                                    'label' => 'Memory',

                                                    'summary' => 'Memory'

                                                  }, 'ElementDescription' ),

                            'key' => '65555',

                            'nameInfo' => bless( {

                                                   'key' => 'zero',

                                                   'label' => 'Zero',

                                                   'summary' => 'Memory that contains 0s only'

                                                 }, 'ElementDescription' ),

                            'rollupType' => bless( {

                                                     'val' => 'minimum'

                                                   }, 'PerfSummaryType' ),

                            'statsType' => bless( {

                                                    'val' => 'absolute'

                                                  }, 'PerfStatsType' ),

                            'unitInfo' => bless( {

                                                   'key' => 'kiloBytes',

                                                   'label' => 'KB',

                                                   'summary' => 'Kilobytes'

                                                 }, 'ElementDescription' )

                          }, 'PerfCounterInfo' ),

 

The performance.pl creates tables based on the countertypes, mem, cpu etc... and then outputs all counters and values for that type. I am thinking to try and return only the values for the specific counter with filtres perhaps. Any guidance would be great.

 

Thanks


Viewing all articles
Browse latest Browse all 1577

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>