size of disk usage report BUT based on the type of storage used

It is an interesting question. I must point out a use of the vms in the UK disc. (that's the easy part) where I would appreciate help is...

lets say I have 50 VMS, but out of these 50 vms, there are two types of storage: drive fast and slow, I can return my virtual machines.

What I currently have is my data stores named in a way where I can ask out of them as a way to do... I hope. I will name my stores of data such as:

ds7k-01 (slow disk)

or dsSSD-01(fast disk)

and lets say

VMA uses datastore ds7k-01

VMB uses datastore dsSSD-01

I need to know how can I run my report and based on a key word in the name of the data store (key word is 7 k or SSD), and have it fill in the correct field in my report.


is the warning, here's how I created my report... so should incorporate into this stle of script...

the output of my report currently looks like this:

VM, cpu, memory

2 6 VMA

I want it to look like this

CPU, memory, slowdisk, VM, fastdisk

VMA 2 6 100 0 (better yet, if it is zero, do not put a 0 in the field.)

4 8 0 200 VMB

snipit of the script...

$reportedvm = "" | Select-Object VM, CPU, memory

$reportedvm. VirtualMachineName = $vm.name

$reportedvm. CPU = $VM. ExtensionData.Summary.config.numcpu

$reportedvm. Memory = $vm. Extensiondata.Summary.Config.memorySizeMB

...

...

...

sneddo
Right answer

Yep, I missed a pretty crucial part, sorry!

Must be:

$fastdiskGB = ($VM |) Get-hard drive | Where {$_.} {Filename-match "^ \[dsSSD"} | Measure - Object - sum - CapacityGB property). Sum

$slowdiskGB = ($VM |) Get-hard drive | Where {$_.} {Filename-match "^ \[ds7k"} | Measure - Object - sum - CapacityGB property). Sum

Tags: VMware

Similar Questions

  • Can you have several lead scoring the workflow based on the type of contact Eloqua?

    Hello!  We are preparing to implement Eloqua 10 and I'm working on lead scoring workbook.  I wonder if you can have different lead scoring evoluted based on the type of contact Eloqua?  My company serves four distinct markets and was hoping that lead workflow notation might be different based on what kind of contact I connect to the.

    Thank you!

    Hi Lucie,.

    Yes you can, I would say at the outset you do not add too many criteria, but rather seek to constantly refine and edit your program (s) that you were going to.

  • EAM work order numbering based on the type of work order

    EAM work order numbering based on the type of work order

    Hello

    value is automatically entered into the text of the order of entry jobs Message.

    U explain how to derive the sequence and stand attribute VO

    Kind regards

    Kalai

  • I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    I just started my creative cloud subscription and in artificial intelligence, I try to convert the text to outlines text, but only in the type of command is not active! can someone tell me why? and what should I do to activate it? I use in windows 8

    Abdel,

    What font you vectorize?

    Or is happening with all your fonts?

  • Web link to a report and based on the opportunity name field

    Hello

    I have the opportunity. On its page layout, I defined a field of Internet link. I copied the URL of a report that I created. My report is a table view with all opportunities with other criteria.
    I would like to define an oopportunity filter as "is invited". So when I click on the Web link in my opportunity, only the lines linked to this opportunity are displayed.
    Unfortunately, this configuration does not work.

    I know I can get a report link to my opportunity information using an HTML report. But with a standard table, is this possible too?

    How can I manage my report URL to add the name of ID or opportunity invited?

    Kind regards

    Tim70, smjohn is right, the opportunity didn't need quotes. So, your code should look like this:
    https://secure-ausomxdca.crmondemand.com/OnDemand/user/analytics/saw.dll?Go&Path=%2fshared%2fCompany_31844_Shared_Folder%2fASW+REPORTS+DRAFT%2fOpportunity+Data&Options=rfd&Action=Navigate&P0=1&P1=eq&P2=Opportunity.%22Opportunity+ID%22&P3=%%%Id%%%

    Thom

  • "Impossible recovery disk for this computer. Confirm the type of model.

    Dear everybody

    I have a prolem on my computer, and my computer is a Sony Vaio VGN-CS230J. My computer operating system is Windows Vista Home Premium 64-bit. Now I use Windows 7 and I want to back to the original operating system recovery, but it does not work. When I want to recover, it displays a message 'can't the recovery for this computer disk. Confirm the type of model. I wish that everyone could help me.

    To return to Vista, you must do a clean install, which probably a format the hard disk during the process (at least I'd do a format just to be sure to do it again and not accidentally install two OS on the same system that would create a more serious problem).  Make sure that you backup that data that the process will erase your drive first clean everything.  If you use a recovery disk or a recovery partition provided by the manufacturer, you must contact the manufacturer for advice on how to complete the process, because the recovery process is their to and not Microsoft.  This is the computer we're talking about:http://esupport.sony.com/US/perl/model-home.pl?mdl=VGN-CS230J®ion_id=1?  We can not help you with the process of recovery beyond what I've included below (which is basicially links to the Sony site and ways to contact them or obtain additional information).

    If you use the recovery Partition and it does not work, then you might need instead of disk recovery (that you can get from the manufacturer, for a small fee or maybe even do partition recovery - well than if the partition does not work I would ask on the disks, it - see the following) (: http://www.kb.sony.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=C427414&sliceId=1&docTypeID=DT_KNOWLEDGEARTICLES_1_1&dialogID=143790279&stateId=0).  Here are the steps to perform the recovery discs recovery according to Sony: http://www.kb.sony.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=C1003796&sliceId=1&docTypeID=DT_KNOWLEDGEARTICLES_1_1&dialogID=143790279&stateId=0 , but even once, we cannot help you with this.  The error you get suggests the recovery information does not match the model of the computer - which may mean there was an error during production (with the computer or with the recovery software) - but I don't know who to hit and you really do need to talk to Sony about this.  http://esupport.sony.com/US/perl/support-contacts.pl?mdltype_id=24.  If we consider the costs if this system is no longer under warranty, I think I'll try the chat option - although not as effective or as fast as the phone, he can usually answer most questions and help with most of the problems (and tell you how to do the things you need to do and how to get the things you need to get - if anything).  You know the problem and you know the situation and you know what you need to understand, therefore, to ask the right questions and get the answers you need.  If the chat also costs, you could try e-mail even if it will take more time and you'll have to write one that asks everything you want to know the first time or you will go back for days.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • SQL script to insert values into a table based on the type of user

    Hello

    I have a requirement where I need to insert (username, groupname) in a table based on the user name.

    We have two types of user accounts:

    (1) user name, which starts with "DV" example: "DVPATM."

    regular user 2) example: 'PATM '.

    If the user name begins with "DV" under instruction insert should kick in

    insert into < tablename > (username, groupname) VALUES (< username > ' < groupname1 >).

    otherwise below insert statement should kick in

    insert into < tablename > (username, groupname) VALUES (< username > ' < groupname2 >).

    I need to use SQL or stored only procedure.

    Please suggest

    Thanks in advance

    All things being constant, you could use decode/case just for groupname by examining the first character t the user name, for example

    insert into (username, groupname) VALUES (, (substr ( , 1, 2) the case when "DV" then else end));

    Fixed edit: value for OTHERS, as noted by Frank

  • Scroll to report but I want the column headings to stay where they are

    Hi guys

    I've created a few reports in my page and I want the scrolling

    I managed to scroll by adding the following code in the header and footer of each region

    Header of the region
    <!-< div style = "overflow: auto;" height: 300px; Width: 950px ">-->"

    Footer area
    <!-< / div >-->

    This code is great for the report to scroll up and down but moving the column headers.

    Does anyone know of a simple code that I might add so that the column headers do not move

    I saw a couple of discussions earlier in this topic, but I think I need a more simple option!

    I have 5 regions report on this page

    Thanks in advance

    Published by: user8637829 on 29-Sep-2009 01:16

    Have not tried it myself, but a quick glance on the JavaScript told me it should work with one or several regions report on a page.

    "Attributes" are simply a translation problem, that should read "Page attributes". Just forget about the German text, hold on to the pictures, they are based on an English Installation of APEX.

    You can put the Javascript code wherever you want, you can put it on the server or load it into the APEX static files or copy content in your page template or even your html page header...
    (WARNING: depending on your application, you must choose carefully, given that performance influence attachet to each solution. but it doesn't matter for experimentation).

    If it's even more confusing than I recommend a step back and work through at least some of the APEX tutorials: [http://www.oracle.com/technology/products/database/application_express/html/doc.html]
    It's really pays off in the long run!

    Have fun

    Peter

  • How to manage entire operates Q1MINUSQ2 but based on the setting of output Q2 onl

    Hi gurus,
    I have a requirement. In the present report already having 2 query Q1MINUSQ2.

    When to switch setting: Yes Q1MINUSQ2 results

    If pass parameter: no, I want results only Q2 QUERY.

    Any body explain how to handle this requirement.

    Thank you
    RAMU

    Something along these lines...

    select *
    from (q1
          minus
          q2
         )
    where param='Yes'
    union all
    q2
    where param='No'
    

    where q1 q2 qnd are your two queries.

    so, something like that, if you stick to the subqueries...

    with q1 as (select ... your first query)
        ,q2 as (select ... your second query)
    select *
    from (select * from q1
          minus
          select * from q2
         )
    where param='Yes'
    union all
    select *
    from q2
    where param='No'
    
  • OAS to redirect browsers based on the type

    Hello world

    I'm fairly new, when it comes to managing the OAS. I have worked with OBIEE for several years, but all work on the side SV (or OC4J) things made by a much more experienced DBA. So I apologize in advance if I ask you something that seems "silly".

    OBIEE is hosted as an application of the OAS. What I would do, is to have the OAS to host two different versions of OBIEE: 1 version for mobile devices and 1 for traditional computers. It turns out that not all graphs and charts make it good for mobile devices, in order to have a second environment for this purpose help much.

    I figured out how to set up the second instance of obiee to OAS. Now, I want to give users a unique URL. When a user connects to this URL, I want to OAS (or OHS) to determine if the user is on a mobile device or a traditional PC. I want mobile devices to be routed to URL_MOBILE, and I want standard devices to get routed to URL_WEB.

    Is this possible to do? If so, can someone point me in the right direction on how to implement?

    Any help or advice would be appreciated!

    Thank you!

    -Joe

    Have you tried to use javascript based browser sensitive redirection?
    JavaScript can detect or sniff the browser type, as well as the resolution of the screen, function to which you can redirect to the URL of your choice.
    You can use this little code in an index.html page and place it in your ESO htdocs directory.

    hope that helps!
    AMN

  • Use based on the type of DDL in question Replicat

    Hello

    Our destination DB has 2 additional columns by table REPL_CREATE_DATE & REPL_UPDATE_DATE of type DATE. We want to fill REPL_CREATE_DATE when the DDL is an INSERTION and we want to fill REPL_UPDATE_DATE when the DDL is an UPDATE.

    In other words:

    IF the DDL is then INSERT REPL_CREATE_DATE = @DATENOW ELSE REPL_CREATE_DATE = @COLSTAT (NULL))

    IF the DDL is DAY then REPL_UPDATE_DATE = @DATENOW ELSE REPL_UPDATE_DATE = @COLSTAT (NULL) )

    Is something like this in Goldengate?

    Hi, I found the answer in MOS!

    How to maintain created date and update date for a record using Oracle GoldenGate (Doc ID 1450299.1)

    of note:

    ogg_create_date = @IF (@STREQ (@GETENV ('GGHEADER', "OPTYPE"), "INSERT"), @DATENOW (), @COLSTAT (MISSING)).

    ogg_update_date = @IF (@VALONEOF (@GETENV ('GGHEADER', "OPTYPE"), "UPDATE", "SQL COMPUPDATE", "PK UPDATE"), @DATENOW (), @COLSTAT (MISSING)));

    So I have to use the GGHEADER option of @GETENV to return information from the header of a file of trail Oracle GoldenGate portion. The header describes the registration transaction environment. OPTYPE returns the type of operation.

    Create Date would be OPTYPE = INSERT

    and

    Date of update would be OPTYPE = UPDATE, SQL COMPUPDATE or PK.

    Possible results for OPTYPE are INSERT UPDATE DELETE ENSCRIBE COMPUPDATE SQL COMPUPDATE UPDATE & TRUNCATE

  • Transient attribute based on the selected query by using a function call

    Hello

    Post version is 11.1.1.7.0 JDeveloper.

    I'm not able to get the following work properly;

    1. I have a scenario header / detail.
    2. Calculate a value for each row returned detail that I find. This calculation is done using an existing database to function.
    3. The function requires 3 input parameters.
    4. Two of these parameters can be retrieved in the detail row and one is a value which is on the header.
    5. I created a transient attribute on the object of the detail view and selected the following properties of the 2 attribute;
      1. Mapped to the column or SQL
      2. Selected in SQL
    6. I entered the following SQL Expression;
      1. function_name (DetailTableAlias.value1, DetailTableAlias.value2, ViewLinkName.value3)
    7. Running AOS that contains the objects of view header / detail, I encounter a SQL error which indicates that ViewLinkName.value3 is an invalid identifier.
      1. I can understand why this error occurs.
    8. If I change the ViewLinkName.value3 to a literal value, the error will not occur.

    So, my question is how can I pass the third parameter to the transitional attribute database function call as the value literal and not as a reference to one, missing attachments header table, column?

    Concerning

    Leon.

    Hi Leon

    Have you explored solve this by an inline SQL query to derive the 3rd parameter of the function? In other words, the problem in SQL instead of ADF.

    DMI

  • Adobe Captivate 7 - is the review of the results of the quiz based on the types of questions?

    Adobe Captivate 7 provides the function that you can review the questions, and you can see which of them have answered correctly and that one of them has responded incorrectly. In my e-learning project, there is an exercise that consists of multiple choice questions and drag and drop tasks. This question / task landslides are among the content slides, this means for example after 5 content slides are a 2 slides, it issues then 3 content slides and slide 1 question and so on. The results of all the types of questions - multiple choice questions, drag and drop - are included in the results of the quiz. At the end of the e-learning the 'quiz' results slide comes with the button "check Quiz." I tested this function after exporting the e-learning of Adobe Captivate7. I noticed the following: If you click on the button "check Quiz" the learner back to all the question slides he or she responded. For that on question slides were automatically placed the buttons 'next' and 'back' and the 'inspection' on the ground it is written what the learner has responded to the two first questions are multiple choice questions. There, it works fine the two buttons will appear. After clicking on the button 'next' on the first question slide that contains a multiple choice question, the learner is the second slide of the question, which also contains a multiple choice question. The third issue is a task of drag / move. He do not appear the buttons so the quiz review stops and there is no field 'inspection '.

    How do I review the quiz works correctly despite types of questions?

    You will need to create the buttons that you want the slide D & D and format them to look like buttons on the other Quiz slides. Then hide them by deselecting "Visible output" in the properties panel.

    For these D & D slides, you will need a conditional action advanced or shared to be triggered on enter. The action will check the value of the system variable cpInReviewMode, which is a Boolean with the value of 1 by Captivate when you're in playback mode. If its value is in fact = 1 show you the hidden buttons. If you group these buttons, you will need only a single command:

    IF cpInReviewMode is equal to 1

    See the Gr_Buttons

    Continue

    ON THE OTHER

    Continue

  • Apply the style of Pará to the xml element based on the type of master page?

    IM using a flow xml, im importing the xml to be used across different master page templates and I want to apply paragraph styles different items depending on what master page xml, they are on...

    So I have 3 put templates in place

    Type of page 1

    Type of page 2

    Type of page 3

    and 3 paragraph styles

    style 1

    style 2

    style 3

    I have the same xml structure deposited on each page...

    < Entry >

    < name > Page < / name >

    < / name >

    So, can I use javascript to apply the paragraph (style 1) style to the xml element (name) on any page that uses the master page (type of Page 1)

    Is this possible? whether and how this could be done?

    Thanks in advance

    Hello

    Try:

    #include '... / XML rules/glue code.jsx ";

    myDoc var = app.documents.item (0);

    var myRuleSet = new Array (new applyParaStyle());

    {with (MyDoc)}

    var elements = xmlElements;

    __processRuleSet (Elements.Item (0), myRuleSet);

    }

    function applyParaStyle() {}

    myIdName = "Xp".

    This.XPath = "//restaurant_name";

    This.Apply = function (myElement, myRuleProcessor) {}

    {with (MyElement)}

    {Switch(insertionPoints[0].parentTextFrames[0].) ParentPage.appliedMaster.Name)}

    case "X-Master:

    App.Select (texts);

    App.Selection [0]. FillColor = myDoc.colors.item ("xxxx");

    break;

    case 'guide-Scotland:

    App.Select (texts);

    App.Selection [0]. FillColor = myDoc.colors.item ("scotland");

    by default:

    break;

    }

    }

    Returns true;

    }

    }

  • 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

Maybe you are looking for

  • canadiantire.ca site does not...

    recently a website called canadiantire.ca does not work. I went into Control Panel and see if I can find a problem, but he told me he found a device or a Web site do not answer. any ideas?

  • search result opens by double clicking on a folder

    Don't remember not when this started, I missed something

  • Unable to hear the sond. HP envy, windows beta 8

    Dear, HP support In recent weeks, I am facing a problem, I am unable to hear the sound, once I open the laptop, I can hear the sound for a few minutes after there is no sound, I use window (beta hp envy) 8. Please suggest, I would be grateful to you,

  • Photosmart 4785 printer: printer Photosmart 4700 series began a loud grinding noise yesterday

    I cleaned paper feed, reset the cartridges, unplugged and ran without paper in it.    All with no difference in the sound. It's that sound terrible when ready to print, and then it prints very well.    No problem with printing, just this awful noise

  • Lack of Information

    Office bought at Costco, which had been a demonstration unit.  I got was the computer, keyboard, mouse and monitor - no manual the user or other written documents.  Finally managed to remove their locally installed stuff but when I tried to use MS Wo