A liner for RDM

Hello guys,.

How do you improve below a liner, I write for RDM? I would like to see different approaches.

Get - vm | Get-hard drive - DiskType "rawphysical, rawvirtual" |
Select-Object @{"Name" = "VMName"; "Expression" = {$_.} Parent}},
@{"Name" = '$vmhost'; "Expression" = {$_.} Parent.Host}},
@{"Name" = 'VMFolder'; "Expression" = {$_.} Parent.Folder}},
@{"Name" = "Datastore"; "Expression" = {(Get-VIObjectByVIView-MORef_$_.extensiondata.backing.datastore).name}}

Best regards

Hello, vlife201110141-

Not too bad of a script - a little slower than it could be, however.  If stick with cmdlets traditional PowerCLI Get - VM and Get-hard drive, I would probably change only the last property calculated in the Select-Object statement to make a Get - view instead of Get-VIObjectByVIView, in order to speed it up:

...  @{"Name" = "Datastore"; "Expression" = {(Get-View -Id $_.extensiondata.backing.datastore -Property Name).name}}

Or, to get more speed, I would write it as follows, using more full potential speed of Get-View:

&{Get-View -ViewType VirtualMachine -Property Name, Runtime.Host, Parent, Config.Hardware.Device} | %{    $viewThisVM = $_    $viewThisVM.Config.Hardware.Device | ?{$_ -is [VMware.Vim.VirtualDisk]} | ?{"physicalMode","virtualMode" -contains $_.Backing.CompatibilityMode} | %{        New-Object -Type PSObject -Property @{            Name = $viewThisVM.Name            VMHost = (Get-View -Id $viewThisVM.Runtime.Host -Property Name).Name            VMFolder = (Get-View -Id $viewThisVM.Parent -Property Name).Name            Datastore = (Get-View -Id $_.Backing.Datastore -Property Name).Name        } ## end new-object    } ## end foreach-object} ## end foreach-object} | Select Name,VMHost,VMFolder,Datastore

I tried getting the RDM News 5 special SMV with 41 total RDMs.  The original way too 173 seconds, making the first change above cut on 92 seconds and with just Get-View dropped at the time of 28 seconds.  What differences do you see in your environment by using the different versions?

Tags: VMware

Similar Questions

  • Portege Z10T - documentation of command line for tinstallwb.exe (PVAT)

    Does anyone have any documentation on the command line for tinstallwb.exe, or know the switch to enter these?

    I have to do some recording during the installation.

    We are the Z10t assessment and want to install the package Toshiba value added via SCCM during our deployment task sequence. I did the same thing for the Z930 successfully.

    I use the latest version (1.6.0035.6406) of the PVAT.

    After having extracted the contents of tc30573300f.exe, the command I use is 'tinstallwb.exe s - sms. While this works in my wrapper for vbscript, it fails during the actual deployment. If I could start recording, I could see what goes wrong.

    I tried to install just \TVAP\TOSHIBA package.msi before value added, but even if that moved successfully, these sheets never appear when you press the Fn keys.

    Any ideas?

    Unfortunately, this isn t available documentation.
    I also found advice to install the PPV from the command line

    But the package contains other files such as setup.exe or install.exe exe
    Have you tested the installation, the use of these files?

  • Can I put some PFI ports on the same line for use with counters and leave the rest as static DIO? (USB-6218-USB)

    I only need a port of each line for the use of the PFI and want to use the rest for the digital I/o. Before you complete the design of the circuit and test it myself, I would like to check it out. I can't find the answer in the textbooks, either.

    Thank you

    Ben

    Hello Ben,

    If you use all the PFI lines you can use the rest as DI/O. PFI0, 1, 2, 3, 8, 9, 10, 11 are entered digital and PFI 4,5,6,7,12,13,14,15 outputs digital. Another technique you can use is to create a spot on the measurement and Automation Explorer, if it allows you to create it, then it is possible.

    Best regards

  • are there options of command line for wuapp.exe (windows update)?

    I have some Vista virtual machines set up to perform specific tasks, then stop - these VMs run at specific times, as if a physical computer running, ran a task, then stop.  I want to be able to automate the Vista updates without having to manually open each VM on a weekly basis.  Are there options for command line for wuapp.exe so that I can program the virtual machine to turn on, install updates, and then click Stop again?  Or y at - it another way to accomplish what I'm doing?

    Thank you

    Hi Prisoft,

    Welcome to the responses of Microsoft Vista Forums!

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.
    http://social.technet.Microsoft.com/forums/en-us/category/windowsvistaitpro/

    With regard to:

    Divya R -Microsoft Support

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

    Visit our Microsoft answers feedback Forum and let us know what you think

  • When computer boots up I get TWO lines for "Microsoft Windows XP Home Edition.

    I reinstalled Windows XP and somehow it reinstalled on my D: recovery partition! Craps! In any case, now, when I turn on the computer, it is written "Please select the operating system to start:" and then has two lines for Microsoft XP Home. The 1st line log on the D: partition. So I am forced to choose the 2nd line to work on my c: to ole. How can I remove the 1st line? 2nd, is my tour recovery partition? and what does one do?

    Please help!

    Thank you!

    How to change the boot.ini file: http://support.microsoft.com/kb/289022

    Currently, your .ini file may contain:

    [boot loader]
    timeout = 30
    default = multi (0) disk (0) rdisk (0) partition (2) \WINDOWS
    [operating systems]
    "multi (0) disk (0) rdisk (0) partition (2) \WINDOWS="Windows XP "/ fastdetect
    "multi (0) disk (0) rdisk (0) partition (1) \WINDOWS="Windows XP "/ fastdetect

    Your .ini file must contain the following:

    [boot loader]
    timeout = 30
    default = multi (0) disk (0) rdisk (0)partition (1)\WINDOWS
    [operating systems]
    "multi (0) disk (0) rdisk (0) partition (1) \WINDOWS="Windows XP "/ fastdetect

    Note: The value of 30 seconds timeout can be set to 0 and you will start automatically on windows (do this after checking the cahnges you make are what you want).

    J W Stuart: http://www.pagestart.com

  • Is there a setting from command line for Windows Media Player?

    Could someone tell me please in the right direction for a set of command line for wmplayer settings?
    I use... .Wmplayer /play /playlist pA.wpl as an automatic start and play line RUN.
    Player starts and displays a list of PA on the screen but does not play.
    If I use... .Wmplayer /play /C:\name.mp3 then, it works very well.
    Thank you
    Brian Taylor

    First of all, /play is not a supported parameter, and you should not put a slash in front of the file names.

    To launch WMP and let him play a playlist, simply specify the name of the file to the playlist on the command line, for example:

    Wmplayer PA.wpl

    The /playlist parameter is only for play playlists that are in the library and does not have a file name of playlist, but the * name * of the playlist in the library, without extension or directories.

  • The tools of command line for applications Android download problem

    Hello

    I can't download 'Tools of command line for Android applications' Web of BlackBerry site. When I click on the blue download button with label 'Tools command line for Android applications' in the Tools section, browser updates the website tools and nothing more.

    ARO

    Maciek

    Hi again,

    Problem solved. A few hours later, I downloaded tools successfully.

    ARO

    Maciek

  • How to choose different lines for a single sale order and ship individually

    I have a customer order of lets say 10 broadside of this same article for quantities of 10 each which means 100 quantities.

    When I use the release sales order form it will take the entire order and forward it.

    But I need to take the line and then generate a delivery against it and then to ship and invoice it.

    Need to know how to do this

    You can take different lines for a single sales order and ship individually using FORM of TRANSACTION of DELIVERIES.

    Navigation: OM RESP > order management > shipping > Transactions

  • Wehre can I get Adobe line for my iPad?

    Wehre can I get Adobe line for my iPad?

    Thank you.

    There is no Adobe online application, perhaps looking Draw Adobe (Illustrator) or Adobe (Photoshop) sketch? Both can be found in the Apple store (apps).

  • Align 45 does not... Some opinions, I cannot draw a line at 45 and 90 degree angle with a line (for example to draw a straight line with SHIFT tool, select and line maintenance, form does not hang at increments of 45 as it was by default) it Note still wo

    Align 45 does not... Just noticed I can't align a line at 45 and 90 degree angle with a line (for example to draw a straight line with SHIFT tool, select and maintaining line, shape is not hang at increments of 45 as it was by default) it notes still works with forms & text etc, but not with a straight line. Having downloaded the latest January 14, 2016

    Last update fixed this Glitch, Illustrator please :-)

  • How to create a menu button of 3 lines for navigation on a mobile site?

    How to create a menu button of 3 lines for navigation on a mobile site and do trigger the Accordion Panel? I created my first sites on Muse and can't seem to understand.

    Download icons FontAwesome and install it manually.
    https://fortawesome.github.IO/font-awesome/

    Add web fonts self-hosted | Adobe Muse CC tutorials

  • How to make the lines for writing?

    How to create lines for writing?

    Tablet notebook =

    Make the paragraph style, as mentioned above. Adjust the space after you, the thickness of line for the rule below. Press enter for each paragraph.

    Mike

  • Paths multiple parameters for RDM attached to ESXi 5 guests

    We are implementing a new SAN, an EMC VNX and have been advised by soing installation provider to set multiple paths for all devices to roundrobin.  Also advised it us to change the OPS are / s by default of 1000 to 1.  So I wrote a PowerCLI script to do this and everything works great.  I run the script every day to ensure that all new devices are replaced with the recommended settings.

    Yesterday when I ran the script, our attached SQL of VM with RDM server has started having huge disk latency issues.  As soon as we have changed the OPS are / default 1000 s, disk latency issues went away.  We could not find EMC information saying that RDM devices should have their IOPS / s set at 1000 or what their Multipathing parameters should (currently runnin on turnstile without no significant problem), but we found information from other storage vendors saying that we should go with the settings best practices of Microsoft at least the multi-pathing is set to MRU.

    Anyone out there has any information or advice on what we should do.  We will of course ensure that the OPS are / s for the RDM are set to 1000, but what are the recommendations for multiple paths of the RDM.

    See you soon

    Ant

    As a general rule, Multipathing for RDM must be the same as that of storage of data VMFS, with the exception of MSCS RDMs, which are required to be set multiple access paths, by VMware

    I'm going to guess in your case that you had a few LUNS of the questions that you should study the trespass (or get Powerpath/VE for your env and never worry about it again).

  • different text color in the same line for staticText ScriptUI?

    is it possible to have different text color in the same line for staticText ScriptUI?

    for example, I don't want red color for the word 'RED' text below in the SAME line.

    var l is new window ('dialog', 'Sélection');.

    var s = w.add ('statictext', undefined, "It's a RED pen");
    w.Show ();

    Thank you!!

    Simple,

    var w = new Window ("dialog","Selection"),
         g = w.add('group'),
         s1 = g.add('statictext', undefined,"This is a"),
         s2 = g.add('statictext', undefined,"RED"),
         s3 = g.add('statictext', undefined,"pen");
    g.spacing = 4;
    s2.graphics.foregroundColor = w.graphics.newPen(w.graphics.PenType.SOLID_COLOR,[1,0,0],  1);
    w.show();
    

    I'm sure that's the answer makes sense "only".

    Trevor

  • ENQ: TX - conflict in line for the foreign key lock

    Hi all

    My DB is 11.2 exadata machine.

    I've got to get a case and don't know how to explain it.

    session 1:

    create the parent table)
    ID number primary key);
    create the child table)
    parent references ID number,
    name varchar2 (20));
    insert into values parent (3);

    session 2:
    Insert children values (3, 'aa');

    Session 2 crashes.

    I'm curious to know how oracle knows that 3 in the parent table can be inserted? Otherwise, why not oracle comes throwing ORA - 02291:parent key is not immediately that I have ' insert into child values (3, 'aa');

    Best regards
    Leon

    user6806750 wrote:
    >
    So I agree with the OP: the second operation should immediately receive the error 'parent does not exist', instead of block.
    >

    How about this scenario
    Session 1:

    1. insert into parent(id) values (3);
    2. commit;
    3. delete from parent where id = 3
    

    Session 2:

    1. insert into child values (3,'aa');
    

    What a result for the session 2 you expect in this case?

    Let me repeat a sentence of my previous post:
    Theoretically, the general rule is that account required to a SQL statement (whose key foreign is just one particular case) two different operations should only be serialized when both transactions run a kind of DML statement that could be contrary to the assertion.

    Now give me a scenario where two operations in effect running a kind of DML which could be contrary to the assertion of FK:
    -session 1 deletes a parent, which could be contrary to the assertion of FK because there may be child-lines 'under' parent.
    -session 2 inserts a child, which could be contrary to the assertion of FK because there could be a mother line for that child.

    ERGO: sessions 1 and 2 in your scenario above must be serialized.

    Still once, this was not the case in the scenario of the OP: FK assertiveness could never be breached by what session 1 (insert a new parent).

    >
    I don't see what that has to do with "modes of locking for insert, update, delete statements" (what do you mean by there btw?)
    >
    Thus,.
    Oracle of the second session always will go, lock in exclusive mode the entry created in the child table and then try to check for the presence of record in the parent table by reading it in shared mode (why reading is in shared mode must be clear from the scenario described above). Because the parent record is locked in exclusive mode, it cannot hold a shared lock, so he waits. So, if we need a different result if the first session of the insertions and deletions a record, Oracle, stumbled on the lock, you need to know what type of operation has led to the blocking.
    Something like that...

    The problem with the implementation of the Oracle of the assertion of FK is it locks data to serialize an assertion of the FK validation.
    Theoretically, this is the wrong approach. When dealing with simultaneous transactions and validation of constraints in several rows, it should return a predicate to first lock and then read the other rows (without lock somehow) to validate the assertion. Scientific research for this return began in the 1970s: http://dl.acm.org/citation.cfm?id=360369

Maybe you are looking for

  • Touchpad locked on all new Qosmio X 70 - A

    I bought a brand new Qosmio X-70 which arrived yesterday. Everything was fine until today, I was typing something and just locked touchpad - fire came at the top left, and that's all. I changed the settings and Fn & F9 release did nothing. I turned o

  • Droid Razr M - tone of the missed call reminder/text

    It's my first smart phone. On my last non-smart phone, I had the opportunity to receive a reminder beep when I missed a call or a text. So, if I was out of the office and came back after a missed call the phone would beep periodically to let me know

  • LabVIEW 2011 GPU accelerated?

    Hey all,. I was wondering if LV2011 natively supports the GPU acceleration. I ask because I would like to offload some of the constraints of the CPU when I run a program. If it does not exist, it is just plug ' play? Or do I have to configure things

  • Vectors force to shut down

    Ultiboard V10.0, Power Pro, This question has probably been asked before, but is still annoying me, is it possible to disable the Force vectors at all times (I mean permanently while they appear not at all, once again, as I do not use this feature) t

  • Cannot record audio streaming - only microphone listed as peripheral.

    I can't record audio streaming because there is only listed as device micro. I checked in the recording devices, see the disabled devices Show disconnected, but there is nothing except micro it (Realtek High Definition Audio). I downloaded and instal