Report on the use of resources by VMfolder

Hi guys,.

I need to get a report that will review records VM to a vCenter and will report back the total amount of RAM used by each folder (implemented and active ideally), CPU (MHz) and perhaps the space used disk

We organize virtual machines by product/object, our idea is that, by looking at their records, we are able to estimate the total amount of the use of resources by product. I wish I could set this as a weekly task and get the result emailed in HTML form.

I tried to restore code snippets I've found, but none seem to do the trick.

Any help would be greatly appreciated.

Like this

Get-VM | Group-Object -Property {$_.Folder.Id} | Select @{N="Folder";E={  $folder = $_.Group[0].Folder  $path = $folder.Name  while($folder.Parent){    $folder = $folder.Parent    $path = $folder.Name + "/" + $path  }  $path  }},  @{N="NumCPU";E={$_.Group | Measure-Object -Property NumCpu -Sum | Select -ExpandProperty Sum}},  @{N="MemoryGB";E={$_.Group | Measure-Object -Property MemoryGB -Sum | Select -ExpandProperty Sum}} |Export-Csv C:\report.csv -NoTypeInformation -use

Tags: VMware

Similar Questions

  • UCCX 10.6 history report showing the use of the Port

    Hello

    I'm looking for a report that can show the use of the port by queue/application over a period of time.  What I'm looking for, that's exactly how my CTI ports is used for which at one point.

    We have more channels PRI in what we do the ports and want to make sure that we are not undersubscibing applications, if we are the ones who and when and if we go over our 150 ports are looking to buy licenses of more to come.

    Someone knows something that could do the trick - or this should be a personalized work?

    Thank you

    James

    Hi James,

    Please see the hourly report Utilization license available in your version in cuic which comes with UCCX. Look at the below Guide to historical reports for more detals on this report:

    http://www.Cisco.com/c/en/us/TD/docs/voice_ip_comm/cust_contact/contact _...

    Concerning

    Deepak

    -Note post - useful

  • Report on the use of modules in EBS

    Hello

    We have 500 users who use different modules of Oracle ERP.

    I would like to know if I can get a usage report or the Script to know how many users have access to each module

    Kind regards

    Mahesh

    Here's the SQL code for a list of users with assigned applications.

    SELECT DISTINCT

    FA. APPLICATION_NAME

    FU. USER_NAME

    Of

    FND_USER_RESP_GROUPS_ALL FURGA,

    FND_USER FU,

    FND_USER FUCB,

    FND_USER FULUB,

    FND_USER FULUL,

    FND_APPLICATION_VL FA,

    FND_RESPONSIBILITY_TL FRTL,

    FSG FND_SECURITY_GROUPS

    WHERE

    FURGA. USER_ID = FU. USER_ID

    AND FURGA. CREATED_BY = FUCB. USER_ID

    AND FURGA. LAST_UPDATED_BY = FULUB. USER_ID

    AND FURGA. LAST_UPDATE_LOGIN = FULUL. USER_ID

    AND FURGA. RESPONSIBILITY_APPLICATION_ID = FA. APPLICATION_ID

    AND FURGA. RESPONSIBILITY_ID = FRTL. RESPONSIBILITY_ID

    AND FRTL. LANGUAGE = "FR".

    AND FURGA. SECURITY_GROUP_ID = FSG. SECURITY_GROUP_ID

    ;

    Please mark the Correct/good accordingly.

  • Problem with VCenter, and VM of not listed in the use of resources

    We recently had a problem with a power being pulled cable and now things are a little twisted...  We had to reboot our servers (ESX1 and ESX2) ESX and VCenter.   ESX1 said that HA had been disabled and restarting didn't help, so we chose the command to 'Reconfigure for VMWare HA'.

    And now, after he reconfigured, it's what we have: ESX1 12 virtual machines on it, and ESX2 4.  ESX2 shows consumption of the normal resources of the virtual machines that are on, however, ESX1 says that there are 3 VMs on, but none of them use ANY resource.

    I've attached a screenshot of what I'm going to have to explain.  It is not sensible.  I can connect to the VMs that are lit on ESX1 3, but as far as VCenter is concerned, they are not using any CPU or mem...

    Any help, ideas or whatnot would be greatly appreciated!  Thank you!

    M

    -


    Windows is a true multitasking operating system... It can START and LOCK at the same time!

    a few other things you can try would be to shut down a virtual machine, remove from the inventory, then "add to the inventory.

    .. .or restart your vCenter Server Service.

  • The use of resources servlet?

    Hi all
    Any body knows know how to use servlet resources to share resources (xsd, wsdl, etc) in OSB? Witht th provid kindly steps

    Thank you.

    I think that as soon as you want to use URL http for the sharing of resources, BSF will just retrieve the resource and it create locally.
    You can use Oracle Enterprise repository to share resources in OSB

  • Report on the use of the user

    In the Adobe Creative Cloud account management, is it possible to view use of the user and the last date of connection?  People ask for applications, but the software is not actively used on a regular basis.  We want to proactively monitor this.

    Hello Ann,.

    I think that you are the admin on the cloud of Adobe Creative teams.

    You can simply manage the licenses of the administration console.

    The use by the user and the applications they use can be monitored through your admin console.

    Kind regards

    Sheena

  • kind monitor the use of resources of comments?

    I want to see the consumption of resources comments from the point of view of the host, things like the amount of memory dedicated, percentage of time processor, etc. It has long been available in various products of VMware but I can't find anything in the extended SNMP agent, and CIM classes all seem to be focused on the management of material resources. The Toolbox perl provides access to these data? Help?

    Try this:

    If {($vm_name set)

    My $vm = Vim::find_entity_views (view_type-online 'VirtualMachine');

    {foreach (@$vm)}

    #print Dumper(@$vm);

    If (defined $_-> name & $_-> name eq $vm_name) {}

    Print $_-> name. " " . $_-> Summary-> quickStats-> hostMemoryUsage.

    " " . $_-> Summary-> quickStats-> overallCpuUsage. "\n";

    }

    }

    }

    If {($host_name set)

    my $host = Vim::find_entity_views (view_type-online 'HostSystem');

    {foreach (@$host)}

    If (defined $_-> name & $_-> name eq $host_name) {}

    My = $memSizeInMB ($_-> hardware-> memorySize) / 1024/1024;

    My $cpuInMhz = (($_->hardware->cpuInfo->hz)/1000000)

    • $_-> hardware->-> numCpuCores cpuInfo;

    Print $_-> name.

    " " . $memSizeInMB.

    " " . $_-> Summary-> quickStats-> overallMemoryUsage.

    " " . $cpuInMhz.

    " " . $_-> Summary-> quickStats-> overallCpuUsage. "\n";

    }

    }

    }

  • Report on the use of the VM UC of "user created host group.

    Hi all
    I'm new to vFoglight and tries to get a grip of reporting. Can someone advise whether or not you can create a CPU / report mem on VMs grouped in a host group created by the user?
    Whenever I use a report, and then select my host group in the services list settings option is grayed out. Is there an easier way to report on groups of virtual machines without explicitly having the list of people?
    Any info would be great, well done.

    Hi Ms...
    There are so many ways to build vFoglight reports, it is probably best for you to call in and open an evidence in support. In this way, you can have 1-on-1 interaction with an engineer who could look at what you need to accomplish and point you in the right direction...

  • design problem... on the use of resource files

    where we can use resource files...? currently I used them to remove hardcodes the src files, but someone told me that it may have a delay of performance...

    any body can tell me if that's how only or not?

    Well, he's right.
    resource files are used for localization, put there channels that change when you change the regional settings of the device.

  • Requirements for the use of Resource Pools

    VMware says this about the Enterprise more than vSphere version:

    Delegation and control of resource pool. Guarantee

    allocation of resources to different levels in society. For example,.

    When a top-level administrator makes available a list of resources of a

    use of across the Department, all virtual machine creation and management can be

    made by the administrator of Department within the limits

    assigned to the resource pool.

    Having said that pools of resources cannot be created without the Enterprise more than VMware version? Or is he just saying that there is additional capacity to delegate control on resource pools in the company and others that it is in other versions?

    Thanks for your comments.

    Enterprise Plus is not required to create and use pools of resources.   With respect to the issuance of licenses to create/use the resource pools, a free license would suffice even.  The characteristics of Advance you are referring to a probably related specifically to the business + licenses.

  • How to create the new Custom XML report without the use of the form builder

    Hello

    What are the steps to create the new Custom XML report without using the Report Builder?

    Thank you and best regards,
    Aerts

    Aerts,
    Can you clarify your question more away!

    -bifacts
    http://www.obinotes.com

  • Report on the use of data store based on cluster (not data center)

    Hello

    I want to create separate HTML reports for each cluster I have in my virtual Center. I've created a script, but it doesn't seem to work. This script creates outputs separated from HTML based on clusters, but all the files have the same data, i.e. all data that are available in the Vcenter stores. How can I separate them with regard to the cluster in which they are assigned to the place?

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

    # Functions for math operations.

    usedspace {} function

    Param ($datastore)

    [math]: round (($datastore.)) CapacityMB - $datastore. (FreeSpaceMB) / 1024,2)

    }

    function dscapacity {}

    Param ($datastore)

    [math]: Round ($datastore. CapacityMB/1024,2)

    }

    freespace {} function

    Param ($datastore)

    [math]: Round ($datastore. FreeSpaceMB/1024,2)

    }

    function {percentage

    Param ($datastore)

    [math]: Round ((($datastore.)) FreeSpaceMB/1024) /($datastore.) CapacityMB/1024) * 100) / 1.2)

    }

    #Connect to Vcenter

    to connect-viserver-Server < myservername >

    # CSS stylesheet

    $a = '< style >.

    $a = $a + "BODY {background-color: Gainsboro ;}}.

    $a = $a + "TABLE {border-width: 1px;}. border-style: solid; border-color: black; border-collapse: collapse ;} »

    $a = $a + "TH {border-width: 1px;}. padding: 5px; border-style: solid; border-color: black; "{background-color: Blue}".

    $a = $a + "TD {border-width: 1px;}. padding: 5px; border-style: solid; border-color: black; "{background-color: PaleTurquoise}.

    $a = $a + ' * {do-family: Verdana, Arial, Helvetica, without serif;} '. font size: small ;} »

    $a = $a + ' < / style >.

    # get a list of clusters

    $clusters = get-cluster

    # Create HTML report for each cluster

    foreach ($cluster in $clusters)

    {

    $datastores = get-Datastore. where {$_.name - notcontains 'local'} | Sort the name

    $Report = @)

    {ForEach ($datastore to $datastores)

    $row = "" | Select-object Datastore, Datacenter, CapacityGB, UsedGB, FreeSpaceGB, PercentFree

    $row. Data store is $datastore. Name

    $row. Datacenter = $datastore. Data Center

    $row. CapacityGB = dscapacity $datastore

    $row. UsedGB = usedspace $datastore

    $row. FreeSpaceGB = freespace $datastore

    $row. PercentFree = % $datastore

    $Report += $row

    }

    $Report | Tri-objet-property PercentFree | ConvertTo-Html-head $a | Set-Content "D:\VMware\Scripts\Reports\Storage\$cluster.html".

    }

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

    To recover the cluster data warehouses, you must change the line:

    $datastores = get-Datastore. where {$_.name - notcontains 'local'} | Sort the name

    in:

    $datastores = $cluster | Get-Datastore. where {$_.name - notcontains 'local'} | Sort the name

  • Use of resources under, ViewPlanner vs. vCenter

    Hello

    When executing default ViewPlanner 3 StandardBenchmarkProfile, vCenter (connection of client vSphere ala) alerted on a high utilization of the processor for ESXi servers in the cluster. VCenter performance tables presented the CPU utilization to 80-90% and more for most of the duration of the workload. However, the ViewPlanner report shows average processor utilization at 40-50% for the same server ESXi. Who is the most accurate measure of the use of resources?

    ESXi servers have Intel processors with hyperthreading active. The difference between using reported in vCenter and ViewPlanner seems to be similar to the difference that I see in esxtop for CPU Core time values Util and PCPU time % Util (I admit I am a little fuzzy on the interpretation of the esxtop CPU Core Util PCPU % against metric Util when hyperthreading is enabled).

    Thank you

    In Scheduler report view, you can view % UTIL, which is the correct metric if you have active hyperthreading, % USED (s) will not give you the correct image.

  • Use of resources with JDE

    Hello

    I am new to the JDE and of course the development of BlackBerry, I read a laboratory for the use of resources in an application, essentially the strings, so that the laboratory works very well. I started to build my own app and I created two files: DRR and a HR Manager, but it seems that something is missing because my application does not compile. Is there something more than to create RRC and HR files?

    Thanks in advance

    In the laboratory code, there are two pieces of identification: BUNDLE_ID and BUNDLE_NAME, is the cause of the error, I guess, I can't find where they are defined.

    The error message:

    D:\Proyectos\Hildebrando\BlackBerry\Demo\com\demo\Principal.Java:41: cannot find symbol
    symbol: variable BUNDLE_ID
    location: com.demo.PrincipalScreen of the class
    private static ResourceBundle _resources is ResourceBundle.getBundle (BUNDLE_ID, BUNDLE_NAME);.

    Well I finally found the problem, in the laboratory for CityInfoB it does not explain that the class CityInfoScreen must implements CityInfoBResource this class seems to be created automatically by of JDE, in fact I don't know , but it works.

    I think that laboratories must be more kind with novice programmers to blackberry .

  • without the use of grouping sets

    Dear expert;


    I need help in the creation of this report without the use of the grouping sets. Any help is appreciated

    Week                                                          hours

    John                                                            24

    Tim                                                             1

    Mark                                                           16

    Adam                                                          10

    Subtotal (30/06/2013-06/07/2013) 66

    Adam                                                           7

    Subtotal (07/07/2013-08/07/2013) 7

    Month Total                                                   73

    Any help is appreciated. Thank you.

    see examples of data below. Thank you

    create table info_mech
    (
    
    req_name varchar(1000),
    beginwork_date date,
    endwork_date date
    );
    
    insert into info_mech values ('John', to_date('07/01/2013 08:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/01/2013 15:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('John', to_date('07/02/2013 10:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/02/2013 19:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('John', to_date('07/05/2013 11:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/05/2013 21:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Tim', to_date('07/02/2013 08:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/02/2013 15:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Tim', to_date('07/04/2013 09:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/04/2013 18:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    
    insert into info_mech values ('Mark', to_date('07/01/2013 08:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/01/2013 15:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Mark', to_date('07/02/2013 10:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/02/2013 19:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Adam', to_date('07/05/2013 11:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/05/2013 21:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    insert into info_mech values ('Adam', to_date('07/08/2013 08:00:00', 'MM-DD-YYYY HH24:MI:SS'), to_date('07/05/2013 15:00:00', 'MM-DD-YYYY HH24:MI:SS'));
    
    
    
    
    

    Hello

    It's a good start.  Is this really what you want to GROUP BY?

    Group of (next_day (beginwork_date, 'Sunday') - 7 - next_day (beginwork_date, "Saturday))

    Looks like always, which evaluates to-6 or - 13, according to was looking for beginwork_date is a Saturday or not.  If you want something which returns a different value for each week?  I would like to use

    TRUNC (beginwork_date + 1, 'IW')

    which returns the Monday of the week even as beginwork_date.  (Always ISO weeks start on Mondays.  The 'magic number' 1 in the above expression reflects the fact that your startw week 1 day earlier, on Sunday.)

    UNION, you try will work.  Finally, you want 3 different levels of rollup, so eventually you will need a Union of 3 tracks, each with a GROUP BY clause to different.  Here's a different approach, which gets 3 copies of the same data and totals in a single GROUP BY:

    WITH cntr AS

    (

    SELECT LEVEL AS grouping_level

    OF the double

    CONNECT BY LEVEL<=>

    )

    unaggregated_data AS

    (

    SELECT THE CHECK BOX

    WHEN c.grouping_level<=>

    THEN TRUNC (i.beginwork_date + 1, 'IW')

    Week END AS

    CASE

    WHEN c.grouping_level = 1

    THEN i.req_name

    END AS req_name

    24 * (i.endwork_date - i.beginwork_date)

    As schedules

    c.grouping_level

    Info_mech I have

    CROSS JOIN cntr c

    WHERE i.beginwork_date > = DATE ' 01-07-2013'

    AND i.endwork_date<  date="">

    )

    SELECT CASE grouping_level

    WHEN 1

    THEN req_name

    WHEN 2

    THEN "subtotal (' |)" To_char (week - 1, ' MM/DD/YYYY' -)

    || To_char (week + 6, MM/DD/YYYY")')

    ANOTHER "Grand Total".

    END AS name_or_week

    The amount (in hours) AS total_hours

    Of unaggregated_data

    GROUP BY week

    grouping_level

    req_name

    ORDER a week

    grouping_level

    req_name

    ;

    This assumes that, on a given line of the table, beginwork_date is in the same week as endwork_date.  The sample data you posted include 1 row when this was not true:

    insert into info_mech values ('Adam', to_date (July 8, 2013 08:00 ',' ' DD-MM-YYYY HH24:MI:SS), to_date (July 5, 2013 15:00 ',' ' DD-MM-YYYY HH24:MI:SS));))

    Not only are the two dates in different weeks, but beginwork_date is later than endwork_date.  I assumed that was a typo and changed endwork_date to July 8.  With this change, the result I got is:

    NAME_OR_WEEK TOTAL_HOURS

    ------------------------------------ -----------

    Adam                                          10

    John                                          26

    Mark                                          16

    Tim                                           16

    Subtotal (30/06/2013-07/07/2013) 68

    Adam                                           7

    Subtotal (07/07/2013-14/07/2013) 7

    Grand Total 75

    The last line is the total of all hours for all dates included.  In the query above, this means that the month of July 2013, because I've hardcoded the dates in the WHERE clause.  You can climatiqueLes WHERE clause for what you want, or omitted completely.

    Note how much more complicated the query above is that of the solution of GROUPING SETS below:

    WITH got_week AS

    (

    SELECT req_name

    TRUNC (beginwork_date + 1, 'IW') AS the week

    24 * (endwork_date - beginwork_date) AS hours

    Of info_mech

    WHERE beginwork_date > = DATE ' 01-07-2013'

    AND endwork_date<  date="">

    )

    SELECT THE CHECK BOX

    WHEN you GROUP (req_name) = 0

    THEN req_name

    WHEN you GROUP (week) = 0

    THEN "subtotal (' |)" To_char (week - 1, ' MM/DD/YYYY' -)

    || To_char (week + 6, MM/DD/YYYY")')

    ANOTHER "Grand Total".

    END AS name_or_week

    The amount (in hours) AS total_hours

    OF got_week

    GROUP BY GROUPING SETS ((semaine, req_name))

    (week)

    , ()

    )

    ORDER a week

    req_name

    ;

    GROUPING SETS will also be more effective.

Maybe you are looking for