host performance data up to 6 months in the grid store

Hello

I see that by default I can only display performance since 31 days data... is possible to modify the grid to store this information for 6 months?

It is indeed a good question, where deadlines for the parameters of the host - and where they can be changed (in GUI of GC/OEM)...

When you browse the homepage of a host-> Performance tab-> the CPU-> drop-down list on the right and selecting "Customize...". »
the OEM/GC shows information ' data available October 18, 2010 12:43:51 CEST-January 12, 2011 16:00:47 THIS "(this is just an example of myself).

What do you see when you navigate to this info?

Seems to me that it is not possible to change the value of 'how long keep settings' in the GUI...

Tags: Enterprise Manager

Similar Questions

  • Collect a free ESXi host performance data

    I need to create e PowerCLI script to collect the performance data (SUC, RAM,...) on a (free) ESXi host and guest virtual machines.

    Y at - it no samples can I start from?

    Concerning

    Marius

    It work?

    Try {}

    Get-PSSnapin-name VMware.VimAutomation.Core - ErrorAction Stop

    }

    Catch {}

    Add-PSSnapin VMware.VimAutomation.Core

    }

    SE connect-Viserver-Server 192.168.1.1 - root user | Out-Null

    $esx = get-VMHost

    Get-Stat - $esx - Stat "cpu.usage.average" at the time entity real - MaxSamples - 1

    Disconnect VIServer Server 192.168.1.1

  • no host performance data

    *

    Hello, I'm VC server performance data and when I get the perfQuerySpec list, I get 10 managed entities, 2 guests and 8 virtual machines that we have implemented in our VC server. Then when I switch in perfQuerySpec objects in the queryPerf() method to retrieve the performance indicators, my host managed entity magically disappears after executing queryPerf() (that is when I get the [] values of type PerfEntityMetricBase, please see code below). He only managed entities of type mor VirtualMachine, but not HostSystem. The hosts that are configured on the VC server are ESX 4.0. It works very well with VC Server ESX 3.0. Could if it you please let me know what is the problem?

    Please see below for the code snippet.

    Thank you.

    Sushant

    ======================================

    for (int i = 0; i & lt; mor_hosts.size (); i ++) {}

    *

    ManagedObjectReference mor_host = mor_hosts.get (i);

    ManagedEntity me_host = getMeHosts();

    PerfProviderSummary pps_hosts = pm.queryPerfProviderSummary (me_host);

    int refreshRate_hosts = pps_hosts.getRefreshRate ();

    PerfMetricId [] metricId_hosts = pm.queryAvailablePerfMetric (me_host, _calendarPerfStart, calendarPerfEnd, refreshRatehosts);

    PerfQuerySpec qSpec_hosts = new PerfQuerySpec();

    qSpec_hosts.setEntity (mor_host);

    qSpec_hosts.setStartTime (_calendarPerfStart);

    qSpec_hosts.setEndTime (_calendarPerfEnd);

    qSpec_hosts.setMetricId (metricId_hosts);

    qSpec_hosts.setIntervalId (refreshRate_hosts);

    qSpec_hosts.setFormat ("csv");

    perfQuerySpec [counter] = qSpec_hosts;

    ++ counter;

    ArrayList & lt; ManagedObjectReference & gt; mor_vms = vmu.getVirtualMachineMORs (inventoryCurrent, mor_host);

    for (int j = 0; j & lt; mor_vms.size (); j ++) {

    ManagedObjectReference mor_vm = mor_vms.get (j);

    ManagedEntity me_vms = getMeVms();

    PerfProviderSummary pps_vms = pm.queryPerfProviderSummary (me_vms);

    int refreshRate_vms = pps_vms.getRefreshRate ();

    PerfMetricId [] metricId_vms = pm.queryAvailablePerfMetric (me_vms, _calendarPerfStart, calendarPerfEnd, refreshRatevms);

    PerfQuerySpec qSpec_vms = new PerfQuerySpec();

    qSpec_vms.setEntity (mor_vm);

    qSpec_vms.setStartTime (_calendarPerfStart);

    qSpec_vms.setEndTime (_calendarPerfEnd);

    qSpec_vms.setMetricId (metricId_vms);

    qSpec_vms.setIntervalId (refreshRate_vms);

    qSpec_vms.setFormat ("csv");

    perfQuerySpec [counter] = qSpec_vms;

    ++ counter;

    }

    }

    PerfEntityMetricBase [] values = null;

    values = pm.queryPerf (perfQuerySpec);

    Hello

    This is a known issue that queryperf returns no data when querying in vCenter Server.

    You can refer to the workaround for this. Please see the KB article for the same below:

    http://KB.VMware.com/kb/1014091

    It will be useful.

  • the host performance, no update values not returned to the orchestrator script...

    Hope someone can tell what I'm doing wrong.

    I'm still on 5.5 and trying to get the load data for ESXi hosts (via connected to the orchestrator Server vcenter) to decide on which host is the best target for vmotion-action.

    As I could not find any workflow builtin or efforts to get data to load, I tried to dig myself via a script.

    • find all hosts
    • for each reading of the host.summary.quickStats.overallCpuUsage host

    I have values, but they are static and do not get updated.

    If I use perl-sdk and perform the same actions to vcenter I get updated for each esxi host values.

    Browse objects via the web on the server vcenter watch also updated these values.

    If only my orchestrator workflow seems to be wrong.

    I do not suspect that the workflow in orchestrator performs a query only the inventory and not the living objects. It is much faster than doing the same thing with perl-sdk.

    My little script (which could be run in a single Scriptable task with no impression one journal entry/exit). Problem can be seen by newspaper printing. Total used MHz does not change in my environment.

    --------------------------------CUT

    var host = System.getModule("com.vmware.library.vc.host").getAllHostSystems ();

    var tothz = 0;

    for {(i in hosts)

    var cpu_used =. summary.quickStats.overallCpuUsage of hosts [i];

    tothz = tothz + cpu_used;

    }


    System.log ("tothz:"+ tothz ");

    --------------------------------CUT

    Q1: I am doing something stupid in my script?

    Q2: I have to do some extra steps to get the updated values?

    Q3: Is there a better way to find/load-performance data for ESXi hosts?

    Stupid enough to write the sollution myself

    It is possible to force an update of the inventory values for objects that are important to your script/workflow.

    It can be done by the following function in a script.

    VcPlugin.refreshObjects (object-to-update - in - stock)

    So for my specific problem, I could solve it with a single additional line.

    --------------------------------CUT

    var host = System.getModule("com.vmware.library.vc.host").getAllHostSystems ();

    var tothz = 0;

    for {(i in hosts)

    VcPlugin.refreshObjects (the hosts [i]) / *.< my="" new="" line="">

    var cpu_used =. summary.quickStats.overallCpuUsage of hosts [i];

    tothz = tothz + cpu_used;

    }

    System.log ("tothz:"+ tothz ");

    --------------------------------CUT

    This seems to force an update of the inventory values before I use them.

    It will certainly slow down my script a little, but it's part of the game.

  • Growth of database for 6 months in the grid control

    Hello

    We have need of my team needs growth of the database for the last 6 months or every month for 6 months.

    I have not used before grid control. Can you please guide me how to set up to collect the necessary information.

    Thanks in advance.

    Target database size is indicated on the database Instance 'home' Page in the section "summary of the space. If you click on Size (GB) of data, you get a graph called the use of space based on historical data. In the upper area, you can set the 'time set' to be your 6 months.

    You can get this information from the sysman schema repository database´s as well.

    Best regards
    Martin Decker
    www.ora-solutions.NET

  • The data of each virtual machine in the list store

    We would like to know where to find Datastore (MON) our VMs and integrate in our weekly report.

    Someone has an idea, how we could do that?

    Any help would be appreciated!

    The data in the report are in the $report variable.

    Now it depends on where and in what format, you want your state.

    If you want a CSV file, you could do

    
    $report = @()
    Get-VM | Get-View | % {
         $row = "" | select Name, Datastore, Path
         $row.Name = $_.Name
         $row.Datastore = (Get-View $_.Datastore[0]).Summary.Name
         $current = Get-View $_.Parent
         $path = $_.Name
         do {
              $parent = $current
              if($parent.Name -ne "vm"){$path = $parent.Name + "\" + $path}
              $current = Get-View $current.Parent
         } while ($current.Parent -ne $null)
         $row.Path = $path
         $report += $row
    }
    $report | Export-Csv "C:\VM-ds-report.csv" -noTypeInformation
    

    If you want to get a report to HTML format, you can replace the last line to

    
    $report | ConvertTo-Html | Set-Content "c:\VM-ds-report.html"
    

    Note that it comes to the ConvertTo-Html cmdlet in its simplest form, you can use the parameters (- title, - head - body) to improve the output.

    There are a number of samples of these two methods in this community to quit smoking.

    For outlook HTML for example have a peek at the Script to the list of Annotations.

    And there are several scripts for reporting have been entered in the script of last year competition.

    Those that you can find in the community Community Sample Code .

    I almost forgot, there are very nice scripts Alan Renouf that creates reports in Word format.

    Recently, he has even published a script to create a Visio drawing from your infrastructure of VI

    Post edited by: LucD

  • When I opened tab check "send performance data," I don't have that choice of the tab. He wasn't there.

    I followed the instructions to check the firefox slowness and high utilization of the processor. Tools > options > advanced > General > check "Send performance data," but it there was not a box to check. All the other boxes were there. Just not 'send performance data."

    Quote: I followed the instructions to check the firefox slowness and high CPU usage.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the startup window Mode safe or make changes.
  • Generate data that are not available in the table

    I have a table that has monthly data for agents. Example of table structure is the following:

    create table agt_dum)

    agent_id number,

    number of months,

    Commission number)

    Examples of data include:

    AGENT_ID MONTHS COUNCIL

    1150
    12100
    1625
    2110
    2220

    Month value can be from 1 to 12.

    So as you can see these data is missing for the agents a few months.

    Here, the requirement is I need to generate data for each agent for 12 months. If the data is not already in the table and are should include agent_id, month number and commission is equal to zero.

    The output for the above data would be:

    AGENT_ID MONTHS COUNCIL

    1150
    12100
    130
    140
    150
    1625
    170
    180
    190
    1100
    1110
    1120
    2110
    2220
    230
    240
    250
    260
    270
    280
    290
    2100
    2110
    2120

    I tried SQL query with full outer join. I was able to generate data for columns of MONTHS and the COMMISSION using the NVL function. But I have been unable to generate the AGENT_ID.

    Please share your suggestions.

    I'm using Oracle 11 g 2.

    Thank you

    Sudhanshu

    If you need something like:

    WITH agt_dum (agent_id, MONTH, commission)

    (SELECT 1, 1, 50 IN all double union)

    Select 1, 2, 100 of all the double union

    Select 1, 6, 25 Union double all the

    Select double union all 2, 1, 10

    SELECT 2, 2, 20 DOUBLES)

    all_months as (select rownum as LUN double connect by rownum<=>

    SELECT *.

    To all_months:

    partition outer join agt_dum ad bequeathed (agent_id) on (ad.month = am.mon)

    /

    It is not yet complete, but I'm sure you can handle the rest...

    HTH

  • Beyond the performance data not available to a host through Virtual Center


    Hello

    I have an ESXi host that relates to the ' No Data Available ' under his paw through Virtual Center performance. Fine appears real-time performance data, but the latest data are not appear and give the error as "No Data Available".

    Within the cluster of 4 hosts, alone is to have the point above. Others are appearing fine performance data.

    In another cluster host ESXi too connected to the same vCenter, I see one of the host is to have a similar question.

    I checked:

    • All work Rollup SQL is run successfully the default schedule.
    • Restarted vpxa service connection to the host directly using the vsphere client.

    I followed the KB article http://kb.vmware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 2007388 . as suggested in the article when I run the Sub SQL query I see there is no data within who. 

    exec sp_spaceused vpx_hist_statx

    namelinesreserveddataindex_sizeunused
    VPX_HIST_STAT1NULL VALUENULL VALUENULL VALUE0 KB0 KB

    The output is similar (no data) if I run these queries:

    exec sp_spaceused vpx_hist_stat2

    exec sp_spaceused vpx_hist_stat3

    exec sp_spaceused vpx_hist_stat4

    Current configuration:

    ESXi 5.1.0 799733

    vCenter Server 5.1.0 Build 1123961

    Please help solve this.

    I actually planned for the downtime of the host and restarted it.

    Although loading performance data now.

    Thank you!

  • PS Script to obtain performance data for 6 months last VM

    Hi all

    Its time for me to Rightsize the virtual machines before business continues in vSphere 5.0... We all know... vRAM

    If I want to import virtual machines from a CSV file and run through the past 6 mth performance data (use CPU Avg and Avg Mem) and remove in a CSV file or htm... Here is what I use, but never to see the output to the top. I mess up something in the region of ForEach.  Help, please!

    *********************************

    $filelocation = "C:\VMStatsReport.htm".
    $ErrorActionPreference = "SilentlyContinue".
    $import = import-Csv "C:\listofvms.csv".

    {ForEach ($vm in $import)

    $Interval = "180".
    $IntervalFinish = get-Date
    $IntervalStart = $IntervalFinish.addDays (-1 * $Interval)

    $CPUAvg = $vm | Get-Stat - Stat Cpu.Used.Summation - start $IntervalStart - finishing $IntervalFinish
    $MemAvg = $vm | Get-Stat - Stat Mem.granted.average - start $IntervalStart - finishing $IntervalFinish

    $report = @)
    $vms = "" | Select-Object VMName "CPU Count", SixMonthCPUAvg, TotalMemory, SixMonthMemAvg
    $vms. VMName = $vm. Name
    $vms. "" CPU Count "= $vm.summary.config.numcpu
    $vms. SixMonthCPUAvg = [String] ([Math]: round ((($CPUAvg |))) Measure-object-propriete value - average). Average), 1))
    $vms. TotalMemory = $vm.summary.config.memorysizemb
    $vms. SixMonthMemAvg = [String] ([Math]: round ((($MemAvg |))) Measure-object-propriete value - average). Average), 1))
    $report += $vms
    }

    $report | ConvertTo-Html-title "Report VMs" - body "report VMs < H2 > < / H2 > ' | Out-file $filelocation

    **************************************************

    Thank you

    VMSavvy

    There are some other problems with the script.

    You had the name (a string) of the guest in the $vm variable. The cmdlet Get-Stat does not object to the setting of entity name.

    The solution is to use the object returned by Get - VM.

    I assumed that your CSV file looks like this

    'Name '.

    "vm1.

    "vm2.

    The metric cpu.used.summation is available only when the interval is set to level 3.

    So, unless you have history 4 interval set at level 3, use another more common measure for the use of the processor. For example, cpu.usage.average.

    $filelocation= "C:\VMStatsReport.htm"
    $ErrorActionPreference = "SilentlyContinue"
    $import = Import-Csv "C:\listofvms.csv" -UseCulture | %{Get-VM -Name $_.Name}
    
    $report = @()
    
    foreach ($vm in $import) {
        $Interval = "180"    $IntervalFinish = Get-Date    $IntervalStart = $IntervalFinish.addDays(-1 * $Interval)
    
        $CPUAvg = $vm | Get-Stat -Stat Cpu.Usage.Average -Start $IntervalStart -Finish $IntervalFinish    $MemAvg = $vm | Get-Stat -Stat Mem.granted.average -Start $IntervalStart -Finish $IntervalFinish    $vms = "" | Select-Object VMName, "CPU Count", SixMonthCPUAvg, TotalMemory, SixMonthMemAvg    $vms.VMName = $vm.Name
        $vms."CPU Count" = $vm.summary.config.numcpu
        $vms.SixMonthCPUAvg = [String]([Math]::Round((($CPUAvg | Measure-Object -Property Value -Average).Average),1))
        $vms.TotalMemory = $vm.summary.config.memorysizemb
        $vms.SixMonthMemAvg = [String]([Math]::Round((($MemAvg | Measure-Object -Property Value -Average).Average),1))
        $report += $vms}
    
    $report | ConvertTo-Html -title "VMs Report" -body "

    VMs Report

    " | Out-File $filelocation
  • cannot receive vCenter performance data

    Hello.

    I start with vFoglight to monitor my vCenter, and I can't receive vCenter performance data.

    I vFoglight hava installed on a host of Windows7 6.6.1. My vCenter is installed on a virtual machine and the operating system is Windows Server 2003. I Manager agent hava installed on vCenter host. I have a VMWarePerformance package deployed the host to vCenter and created an agent. The agent is active and data collting. But on the dashboard environment VMware, I see no performance information. There is only a single virtual centre with no performance data, and no there is no host ESX or Virtual Machines.

    I wonder if I need to deploy other cartridges or there is something that I have not properly config.

    Can someone help me?

    Additional accessories:

    It is clear now that I have the same problem like SOL87716, my vmware host uses the Chinese language.

    vFoglight is a stand-alone noncompliance, this means that there is no single cartridge for download.

    I connected the support engineer and open a support case, and then I got a legacy vmware agent 5.5.8.1.

    After I installed it on my vmware host, I can receive performance data now.

    Kind regards.

  • Import Performance data in VMware Capacity Planner

    VMware Capacity Planner has the ability to import performance data in data manager or you must collect data from performance via the Capacity Planner software?

    Hello wgmaurerEMC,


    You can collect data from target of UNIX and Linux machines running the CP shell on each target computer scripts

    rather than run the scripts through the host of collector.

    Please, see page 47 of the CP reference Guide attached on how to implement the manual execution of scripts.

    Best regards

    Lazar

  • Is it possible to migrate ESXi host between data centers, if so please provide a brief not

    Hi friends,

    1. is it possible to migrate ESXi host between data centers, if so please provide a brief walking distance.

    2 can we perform vMotion and Storage vMotion while ESXi is turned on.

    3. is it possible to extend the VMDK disk while it integrates snapshots in it.

    Best regards,

    Sirot Vijay

    Yes the vmotion and svmotion works but one by one.

    1 - vmotion is posssible to power on State, but you can't svmotion the vm simultaneously. The storage will remain same

    2 svmotion is also possible to power on the State, but you cannot vmotion virtual machine simultaneously. the host will remain the same.

    3 vmotion and svmotion is possible together when the vm is off power. the host and storage can be changed simultaneously on this State.

  • Process to get Performance data for the managed entity c#

    Could someone please describe the process for pulling data from the API performance?  The documentation seems a bit muddled.

    Qustions:

    Should you create a custom interval perf or you can use the default settings?

    If I have a performanceManager MOR and a hostSystem MOR what methods should I call on the PerformanceManger object to retrieve the performance counters on the managed entity? I'm trying to get ready time % of a host.  Looks like I need to use the QueryAvailablePerfMetric method to draw the MetricID and then use the QueryPerf to shoot the actual static...

    Any help is appreciated.

    VirtualFisk

    You can use available perfIntervals to extract data.

    You have reason to extract performance data, you must first call QueryAvailablePerfMetric to get metricIds and then pass them in the appeal of QueryPerf.

    Also to check whether or not real-time data are available on the entity you must first call QueryPerfProviderSummary on entity and check the PerfProviderSummary currentSupported property. If she defined as true, real-time data are available and you can pass PerfProviderSummary refreshRate as intervalID in your QueryAvailablePerfMetric call and still pass this refreshRate as intervalID PerfQuerySpec for QueryPerf appeal.

    Please see following code snippet to retrieve data for the managed entity HostSystem (hostMoRef), you can replace it with a managed object of an entity reference





    int counterID;

    int key;

    String group;

    String name;

    String rollup;

    ManagedObjectReference pmRef = _sic.perfManager;

    PerfCounterInfo[] cInfo = (PerfCounterInfo[])getObjectProperty(pmRef, "perfCounter");

    Hashtable PerfByID = new Hashtable();

    for (int i = 0; i < cInfo.Length; i++)

    {

    key = cInfo[i].key;

    group = cInfo[i].groupInfo.key;

    name = cInfo[i].nameInfo.key;

    rollup = cInfo[i].rollupType.ToString();

    Console.WriteLine("ID: " + key + " group: " + group + "." + name + "." + rollup);

    PerfByID.Add(key, group + "." + name + "." + rollup);

    }





    Console.WriteLine("\n---------------------------------------------");

    Console.WriteLine("Entity: " + hostMoRef.Value);

    PerfProviderSummary perfSum = _service.QueryPerfProviderSummary(pmRef, hostMoRef);

    Console.WriteLine("Refresh Rate" + perfSum.refreshRate + "\nCurrentSupported :"

    + perfSum.currentSupported + "\nisSummarySupported :" + perfSum.summarySupported);

    Console.WriteLine("Fetching Perf Metric Ids");

    DateTime curTime = _service.CurrentTime(_svcRef);

    DateTime beginTime = curTime.Subtract(new TimeSpan(1, 0, 0));

    DateTime endTime = curTime;

    int intervalID;



    if (perfSum.refreshRate < 0) {

    intervalID = 300;

    } else {

    intervalID = perfSum.refreshRate;

    }

    intervalID = 300;

    PerfMetricId[] Ids = _service.QueryAvailablePerfMetric(pmRef, hostMoRef, beginTime, false, endTime, false, intervalID, true);

    if (Ids != null && Ids.Length > 0)

    {

    Console.WriteLine("Ids fetched from QueryAvailablePerfMetric API are:");

    for (int k = 0; k < Ids.Length; k++) {

    Console.WriteLine("ID is: " + Ids[k].counterId + " Instance is: " + Ids[k].instance + "Name is: " + PerfByID[Ids[http://k].counterId|http://k].counterId]);

    }

    PerfQuerySpec qSpec = new PerfQuerySpec();

    qSpec.entity = hostMoRef;

    qSpec.metricId = Ids;

    qSpec.format = "csv";

    qSpec.intervalId = intervalID;

    qSpec.startTime = beginTime;

    qSpec.startTimeSpecified = true;

    qSpec.endTime = endTime;

    qSpec.endTimeSpecified = true;

    qSpec.maxSample = 1;

    qSpec.maxSampleSpecified = true;

    PerfQuerySpec[] qSpecs = new PerfQuerySpec[] { qSpec };

    if (hostMoRef != null)

    {

    PerfEntityMetricBase[] perfEntity = null;

    perfEntity = _service.QueryPerf(pmRef, qSpecs);

    if (perfEntity != null && perfEntity.Length > 0)

    {

    for (int i = 0; i < perfEntity.Length; i++)

    {

    PerfEntityMetricCSV pms = (PerfEntityMetricCSV)perfEntity[i];

    PerfMetricSeriesCSV[] vals = pms.value;

    if (vals != null)

    {

    Console.WriteLine("Perf Counters fetched");

    for (int vi = 0; vi < vals.Length; vi++)

    {

    PerfMetricSeriesCSV pmCSV = vals[vi];

    if (PerfByID[vals[http://vi].id.counterId|http://vi].id.counterId].ToString().StartsWith("mem.vmmemctl")) {

    Console.WriteLine("CounterId: " + vals[vi].id.counterId + " Name: " + PerfByID[vals[http://vi].id.counterId|http://vi].id.counterId] + " Instance: " + vals[vi].id.instance + " ----- ");

    counterID = vals[vi].id.counterId;

    //Console.WriteLine("Value in Map: " + PerfByID.get(counterID));

    Console.WriteLine("-------- Value : " + pmCSV.value);

    }

    }

    }

    }

    }

    else

    {

    Console.WriteLine("Performance statistics not available for this entity!");

    }

    }

    }

    else

    {

    Console.WriteLine("Perf Metrics not fetched");

    }

  • performance data not there

    Hi all

    Got a weird problem on capturing performance data.

    I use vc2.5 with sql 2005 full.

    My performance measures do not go beyond 24 hours.

    If you look at the chart options and try to choose anything, except the last day, there no data available.

    This host vc has been for more than a year.

    Anyone see this? Looks like some sort of setting but I can't seem to locate one.

    Thank you.

    I saw this, the data that you see are the perf data stored on the local host not in the comic book.  I suggest that you check the stat roller combined employment and ensure that they are running in the DB.  If they don't work I have very long and you have a large number of hosts and VM you're in trouble.  This could take hours or days to run the roll ups.  You can see that the tables affected truncating and just get the work right now to be your only option.  This is a Ko that explains how to solve the jobs:

    KB:1004382

    http://KB.VMware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=1004382&sliceId=1&docTypeID=DT_KB_1_1&dialogID=4558589&StateID=0%200%203759361

Maybe you are looking for