Reporting based on memory capacity

Hello world

I am trying to write a script based on very specific requirements of management that will measure the ability of multiple clusters based on memory.


The model that gave me was a CSV file that looks like this:


UsedMemGB MaxMemGB AvailableMemGB CurrentVMs AvgMemGB(per VM) MaxVMs(based on the average) AvailVMs

CLUSTER1

Cluster2

Cluster3

Total general

My current obstacle is that management wants to allocated memory, not memory in use which, to my knowledge, is what MemoryUsageMB reflects. It is not logical for me to go further than the field of AvgMemGB will depend on the total amount allocated memory

Here's what I have so far:

Game-PowerCLIConfiguration - multiple DefaultVIServerMode - confirm: $true | Out-Null

$vcenters = @)

"vCenter1,"

"vCenter2,"

"vCenter3,"

);

SE connect-VIServer-Server $vcenters - user < username > - < password >

{foreach ($cluster Get-cluster)

$esx = $cluster | Get-VMHost

$ds = get-Datastore - VMHost $esx | where {$_.} Type - eq "VMFS"}

$cluster | Select @{N = "Clustername"; E = {$cluster. Name}},

@{N = "UsedMemGB"; E = {([Math]: round (($esx |)))} Measure-Object-MemoryUsageMB property-sum). {{(Somme/1024, 0))}}.

@{N = "MaxMemGB"; E = {([Math]: round (($esx |)))} Measure-Object-MemoryTotalMB property-sum). {{(Somme/1024, 0))}}.

@{N = "AvailMemGB"; E = {([Math]: round (($esx |)))} Measure-object - InputObject {$_.} MemoryTotalMB - $_. MemoryUsageMB} - sum). {{(Somme/1024, 0))}}.

@{N = "NumVM"; E={($_ | Get - VM). County}},

@{N = "AvgMemGB"; E = {([Math]: round ((($esx |)))} Measure-Object-MemoryUsageMB property-sum). Summary / 1024) / (($_ |)) Get - VM). County), 2))}}

}

format-list

Thanks in advance to anyone who can provide assistance. Please let me know if you need more information.

The Export-Csv should be after the last brace.

Tags: VMware

Similar Questions

  • HP dv7t-7300 ENVY: what is the maximum memory capacity dv7t-7300?

    I am trying to upgrade RAM on my PC HP ENVY dv7t-7300 CTO Quad Edition laptop. What is the maximum memory capacity for this model?

    Thank you!

    Gena.

    Supports the following memory system configurations:

    16384 MB (8192 MB × 2; not the supportedon computer models, equipped with 32-bit operating system)

    12288 MB (8192 MB × 1 + 4096 MB × 1; not supported on the computer modelsequipped with a 32-bit operating system)

    8192 MB (8192 MB × 1 or 4096 MB × 2; not supported on the computer modelsequipped with a 32-bit operating system)

    Your manual here.

    http://h10032.www1.HP.com/CTG/manual/c03591253

    REO

  • Updated interactive report based on shuttle Page

    I am trying to create an interactive report based on the selected items in a shuttle service.  On the page there is a page entitled P2_ITEMS element which is a shuttle service.  It displays a list of items for the user to choose and returns the item_id, the primary key of the main table.  I then an interactive report on the same page that displays data for the item_ids selected in the shuttle.  I use the sql query below in my interactive report, but nothing shows up in my report.  How can I get the interactive report to be updated when items are selected in the shuttle?

    Select

    a.date_loaded,

    b.item_type,

    c.Item,

    a.info

    point a, item_type_lookup b, item_name_lookup c,.

    where instr (': ' |: P251_ITEMS |': ',' :'|| a.item_id |': ') > 0

    and a.item_type_id = b.item_type_id

    and a.item_name_id = c.item_name_id;

    Hello

    Please, install application example sample Dynamic Actions. There are exactly what you are looking for (side Server-online shuttle refresh).

    Kind regards

    Pavel

  • Report based on the result of the sorting function?

    Dear all,

    I will make this issue in general terms:

    We have a report based on a query that reads data from a single table (P). It will take to provide a field more (X) in the report which is obtained using more than two tables (E, 1 m approx).

    I wrote a function that produces this extra field based on a join of tables E and P1. Please note that this function depends on the report query variables. This output is correct and provides all the necessary information, but it is necessary to sort the report based on the result of this function, i.e. the value of field X.

    Is this possible?

    I appreciate your comments.

    Note: I've tried incorporating pictures E, P1 in the request report (I can then sort on the required field) but gets reduced the number of lines in the report. This is because the join between the tables, P, E and P1 reduces the number of lines (which is not the correct result).

    Yes, it is possible. If you have ended up above a formula column.

    Create the formula column. For example, CF_SALARY_TOTAL. Place a level to the top of the query and set your desired sort (Asc/Desc)

    Hope this helps

    Hamid

    Move or

  • interactive report based on an existing table

    Many people, it is the next step in the construction of my app.  I watched a tutorial of utube produced from a worksheet a table in a database and a set of pages to enter data and to display and edit data in the table.  I already have the table and I would like to make the pages I've seen.  a spreadsheet as a table which allows the edition of each row and a button create on top.  I guess I was also able to delete a line if necessary. I think I need to creata a page, select report and interactive report.  Continues in this way, I get a request for a sql statement that will likely tell the page generator that he needs to create the report.  I need to make the report based on a table in another table space.  At this page, I entered in the query designer and my table space is not listed, only the current APEX of table space is available.  I went in a different direction to create a form for a table and to the bottom of the sequence, he also requested information in the table.  My table db space is listed as available and I am able to create the registration in a satisfactory manner.

    Then, why I can see and interact with my db table space when you create a form for a table but can not find the db table space when you generate an interactive report?

    Also, I'm heading down the correct path for the interactive report, that I need?

    "HustlingHare" alright, get ready to be the hero.  "" "You're almost there. '"

    (1) Firstly, nuke has report page IR that you just created.  You don't need it.

    (2) then go back and run the wizard to create a Page.  Choose 'Form', then 'form on a Table with the report '.  Because your DBUSER1 has privileges discrete objects on the table in the schema DBUSER2, DBUSER2 must appear in the select list of "Table / view owner" in this wizard.

    Follow the steps in the wizard to create the interactive report and form, and you're done!

    Joel

  • What metrics to use for memory capacity planning? Active or consumed (in request or use vROPS)

    Hey all,.

    I was wondering once more what metrics to use for memory capacity planning. Since the information from different sources (for example your ESXi host needs more RAM to Iwan Rahabok or VMworld 2012: Session VSP1729 - virtualized memory understanding performance management - Eric Sloof - NTPRO.NL Kit Colbert) pointing all assets (vROPS request), I expect that when we have high memory consumption / use in vCenter there will be no balloon / compression / permutation.

    Also the metric active / request should not be used for all workloads (e.g. Java / DB), why is - this? I have not found the reason of this anywhere, only the fact.

    Other sources such as Mark Achtemichuk suggests using consumed/use, which is the opposite (Understanding Active Memory - VMware vSphere Blog - Articles VMware vSphere).

    So I thought I'll with active / demand as metric and ignoring the warnings inside of vCenter.

    But the last time we have fixed half of our group, we had consumed/high memory usage and the vCenter began to inflate, compress, and finally to Exchange. Not a lot but I had not expected that, because memory active was only a small percentage of consumed.

    Can someone explain to me why this happened and who is right on this issue.

    Kind regards

    jengl

    jengl I don't know if you asked the wrong question, or I give the wrong answer :-)

    It is always good to attach screenshots, background to the issues, and what exactly you are trying to solve.

    You wrote:

    So to summarize:

    -ESXi uses consume to decide when to start the recovery techniques of memory RAM

    -To rightsize VMs for RAM, you must use the counter inside the BONE, not active

    -If you do not want to commit too much RAM and have a lot of the balloon you should right-size your virtual machines or extend the RAM / buy additional servers

    Please correct me if I'm wrong.

    My answer: you are right. If you do not have access to the guest operating system, then Active VM and VM consumed are better guess. Better than nothing :-)

    Sizing sizing of VM and ESXi are 2 different things (2 use cases) different. Please don't mix up the as soon as they are confusing. Do not try to resize the virtual machine when you are sizing the ESXi, unless you have a control total on them.

    You wrote:

    The question for me is: how many cache (standby under Windows) inside the VM is really necessary for the virtual machine to get the best performance without wasting resources. Perhaps this issue can be resolved only by tests or do you know another option?

    My answer: it's a different topic brother :-) It is different, because it is within a guest operating system (Windows in this case) and is no longer at the level of the ESXi. Suggest that post you another, possibly under Windows or vSphere too :-)

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • How to change the report based on users?

    Hi all

    I've created a report based on a table. Based on the users (Administrator, user), I want to change my appearance of report. But users are not available in this table. Users are not available in this area table.Common available.

    Req: If I enter as a user I want to not see that my documents.

    If I enter an admin I want to see all users folders.

    How to solve this problem.

    Please explain in detail.

    Thank you and best regards,

    Rambeau

    Hai raghu, pls mark closed this issue.its as a response!

  • Select a cell of interactive report based on another hidden cell

    Greetings,

    Someone know how to select a cell in an interactive report, based on the value of another cell in the same row and without this cell being shown?

    The integrated highlight feature IR does not seem to allow me to highlight a cell based on the value of another cell (correct me if I'm wrong).

    So I tried to go with a JavaScript solution, that I found in a thread somewhere on the forums of the APEX. I created a dynamic Action with this JavsScript code:
    $('[headers = "INTENSITE"]').each(function() {
      if ($(this).text() == 1) {
        $(this).siblings('[headers = "NOM_COMPLET_USAGER"]').css('background-color','red'); 
      }
    });
    and it works perfectly when the column is displayed, but not when it is hidden (which makes perfect sense).

    So this is where I am stuck. The report has a lot of info, and I don't want to have a useless column projected and using precious space.

    Any help would be appreciated.

    Thank you
    Mathieu

    You can try the following:

    1. Add a column to your sql that contains the background for example color

    SELECT
    EmpNo,
    Ename,
    initialst,
    Decode(INTENSITE,1,'red','white') background_color
    Of
    EMP;

    2. in the new updated interactive report background_color column is hidden.

    3. Select the NOM_COMPLET_USAGER column and set the following parameters

    Link text = > #NOM_COMPLET_USAGER #.
    Link attributes = > style = "background-color: #BACKGROUND_COLOR; #
    Target = > URL
    URL = > #.

    I hope it helps

    Shunt

  • Interactive report based on a Collection

    Hi guys

    Using Apex 3.2

    I have a classic report based on a collection, which works very well.
    I am now trying to create an interactive report based on the same query (collection), but no data is returned.
    I there something special I need to do an interactive report.

    See you soon


    Gus

    Hello Gus,

    First time when you create a report based on the collection ir, it does not include the columns in the display (don't know why)

    pls select the correct answer to help others

    Thank you

  • Generate reports based on two conditions

    Dear all,
    I generate reports based on satisfactory conditions in two columns in a table.

    For example.
    I have a table test1 with columns A, B, C, D, E
    Now, I want to create reports based on the research of two columns A and b. What is the preferred method to do?

    Thanks in advance.

    What is the preferred method to do?

    Write the appropriate query:

    select a,b,c,d,e
    from test1
    where a = 
    and b = 
    

    In reports, the State may be a user input parameter:

    select a,b,c,d,e
    from test1
    where a = :parameter1
    and b = :parameter2
    
  • Refresh the report based on the select list item

    Hello world

    Someone has the answer to refresh a report based on an element that I select in a select list? I currently have the item in the list of selection and a report under him I wrote a sql that fills with data. If I choose an article in my select list, I want to change the data in my report. What I have to write separate sqls for each item to be fired or write some type of process. Can someone help me?

    Thank you
    Ryan

    Write directly in the SQL report. Your select list item will be the variable in the SQL.

  • report based on elements are mutually exclusive:

    Hi guys,.
    I am creating a parameterized report based on elements are mutually exclusive:

    I have a list select 'P1_Property_type' element that has these values (office, apartment)
    If you choose "desktop" then the report should ONLY the value of the selection list element 'P1_beds '.
    If you choose 'apartment' then the report should be considered AS the value of the selection list "P1_size."
    ----------
    I used this query, but it does not seem to contribute:
    Select * from realestate where
    unit_type = decode (: P1_PROPERTY_TYPE, 'null', unit_type,: P1_property_type)
    and
    (br = decode (: P1_beds, "null", br,: P1_beds) or size = decode (: P1_size, 'null', size,: P1_size))
    ----------------
    I hope my question is clear

    Kind regards
    Fateh

    Assuming you are using the literal string "null" instead of NULL.

    "it doesn't seem to work" because of this:

    (br = decode (: P1_beds, "null", br,: P1_beds) or size = decode (: P1_size, 'null', size,: P1_size))

    Assuming you choose 'office' and: has the value p1_beds and: p1_size is "null", you end up with a statement that is the equivalent of:

    select * from realesate
    where unit_type = 'office'
    and (br = :p1_beds
    or size=size)    <--------------problem
    

    and your: p1_beds restriction is so inefficient.

    I'm not a fan of decode for this logic.
    I prefer a clear statement of the exclusive predicates that the optimizer can sometimes deal more effectively.

    for example, assuming that it is irrelevant, if you choose office or apartment because the relevant parameter: p1_beds or: p1_size will have the appropriate value:

    select * from realestate
    where
          (:p1.property_type is null / = 'null'
    or    (:p1.property_type is not null / != 'null'
    and    unit_type          = :p1_property_type))
    and   (:p1_beds          is null / = 'null'
    or    (:p1_beds          is not null / != 'null'
    and    br                 = :p1_beds))
    and   (:p1_size          is null / = 'null'
    or    (:p1_size          is not null / != 'null'
    and    size               = :p1_size))
    

    Note that I have provided alternatives depending on whether you are actually the NULL or a magic string.

  • Conditional display of interactive report based on the different SQL query

    Hello

    I have two drop-down list at the top of my page and below I have an interactive report.
    Based on the selection of the user from the drop-down list values, interactive report should change based on different SQL queries.

    Is it possible to have different SQL queries based on the drop-down list values and generate interactive report based on that?

    Thank you

    Hello

    You can't have IR based on function returning the query as you can have classic report

    But here is a workaround
    http://www.oracleapplicationexpress.com/tutorials/71

    Kind regards
    Jari

  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    

Maybe you are looking for

  • Qosmio G20 156: clean install?

    Hello I am new to the arena for laptop and am the proud owner of the Qosmio G20 156 fantastic. I was wondering what people recommend doing the first thing when you receive... in what respect the sofware & operating system; Is it a good idea to perfor

  • Update for KB2572067 - cannot download

    original title: update to KB2572067 Can not get the KB2572067 update to download.  Microsoft Fix It said it is repaired, but there is also a problem with images in the screen saver.  I tried to install it again, but it will still not updated.

  • Thin client based on Linux T610

    Bulletin Board Hello! Just a few questions here I can't find via Google, manual and read other messages of the forum... We are trying to use a t610 with the Linux-based operating system and are facing obstacles, a little... I saw on the thin clients

  • Error "to start the video preview. Please reconnect your camera"in MSN.

    I have Dell Webcam Center 2.01.26, and I have a form any difficulty. My webcam isbuilt, and if I am on webcam via msn, and I try to view my webcam on the Dell Webcam application, it comes up with the error messgae:' Failed To Start video Preview. " P

  • What is the difference between the stop and restart?

    What is the difference between the stop and restart?  I feel that stopping closed all processes, completely erases RAM memory and clears the cache of the processor.  I need to know if 1) this is a correct assumption and 2) which is better for daily m