Monitoring the progress of the task in the pipeline

Hello

I was wondering if there is a way to track progress (% completed) of each task in the pipeline for a bunch of objects and run the simultaneous command in the pipeline. Don't think not write-progress can be used for this purpose.


I have a script that migrate in series to a virtual machines list nightly in a data store different (storage vMotion). Each virtual machine is pretty huge (size provisioned about 1 TB) and takes about 3 hours to migrate each. What I want for each virtual machine in the pipeline that is being migrated, is to follow how migration is complete (for each virtual machine, not for virtual machines in the table in sound together) if I can send it to a notification by email of the progress for each computer virtual every hours that elapsed.


1. place each vm in the table to foreach and run move-vm in agreement with a bunch of other commands (in pseudo-code below)

2. when the instance of stopwatch hits 1 hour (which means that storage vmotion for VM in the pipeline happened for one hour), call a function of e-mail notification passing the percent complete of VM current migrating

$vmarray | foreach {#need all orders here to execute simultaneously}

Move-vm $_ - datastore (get-targetdatastore)

$ElapsedTime = [stopwatch]: StartNew()

$percentcompleted = get-courses (imaginary function) #this's what I what I need help

$triggerdue = $elapsedtime.minutes - eq 60

While ($true) {}

If ($triggerdue) {$elapsedtime.reset; send-notifmail}

$percentcompleted}

}

}


In looking at [runspacefactory]: CreateRunspacePool to run these commands in the competition, but is a ' native PS / more powershell-ish ' to do this?

Thank you very much.

There are a couple of other possibilities.

You can use Start-Job and parallel tasks in the workflow.

You could launch the Move-VM with the RunAsync switch, which will not wait the way script wait for the svMotion.

But you will probably hit some limitations of vSphere on the maximum number of authorized svMotions.

Simply by looking at the status of the powershell jobs (regardless of the method chosen to use), is not very conclusive (because of the maximum vSphere).

You can query tasks in vSphere, and question the percentage of completion from there (if available).

This object even the task should also tell you the status (running, ro pending)

Tags: VMware

Similar Questions

  • Apple Watch heart rate monitor, the signal can be shared with other devices such as the Garmin Edge 520?

    Apple Watch heart rate monitor, the signal can be shared with other devices such as the Garmin Edge 520?

    Hello

    No, that it is not currently possible.

  • When bi-ecrans is used, and firefox is on the second monitor, the Firefox menu does not appear. Same thing happens to the bar when typing already visited sites of addresses.

    When bi-ecrans is used, and Firefox is on the second monitor, the Firefox menu does not appear. Same thing happens to the bar when typing already visited sites of addresses.

    I have the same problem and I got rid of it by disabling hardware acceleration of rendering in the settings dialogue. Now I see the Firefox menu properly on a secondary monitor.

  • Monitor the problem flashing on the reactivation of the computer.

    Monitor the problem flashing on the reactivation of the computer.

    I have a new HP laptop G60 - 243 CL of Costco and a new HP W2207h monitor. The screen flashes when the laptop wakes fashion "sleep" with the HDMI cable connected. It works very well with the VGA cable. Any assistance in finding the cause would be much appreciated. Here is my hardware spes and a newspaper detailed observations.

    Thanks in advance,

    Paul

    --

    HP W2207h monitor

    680 x 1050 hz @60

    Laptop:

    HP G60 - 243 CL

    AMD Turion X 2 RM - 72 2.1 GHz

    3 GB RAM DDR2

    320 GB SATA, 5400 RPM HARD DRIVE,

    NVIDIA GeForce 8200 M G, with up to 1407 MB total graphics memory (shared).

    16 "16:9 1366 x 768 display

    Drive x drive LightScribe 8 with support double layer
    HDMI

    Here is my log.

    25/01/09

      1 unpack the monitor. With mobile connection cables on: HDMI, USB, power Turn on the monitor. It flashes. Black for about 2 seconds, then the light for a split second, repeat, ongoing. Turn off monitor, the driver of the CD W2207h monitor, restart. Monitor works normally.

    The monitor HP w2207h Readme says driver using driver Nvidia 10.65 or later version.

    The Control Panel on the computer laptop G60, NVIDIA GeForce 8200 M g: Device driver 7.15.11.7614, 11/07/2008 (this is the latest driver from the HP support page. See on 27-01-08 below).

      Install W2207h Monitor driver CD and restart the computer. Control Panel, device, Manager I see two monitors, the two "monitor PNP generic", first Hardware ID "MONITOR\HWP26A8", the second "MONITOR\SEC314C", both with the 6.0.6001.1840 driver (longhortn_rtm.080118 - 1840), I wonder if, maybe, the pilot did not.

      2 put the laptop into sleep mode. Wake the portable computer and monitor flashes market, as described in (1). Image appears normally while the monitor is turned on for fraction of a second intervals. If reboot laptop, follow the work properly.

      Occasionally, flashing monitor heal without rebooting. Out of about 10-15 tent: once the monitor began to function properly while the computer shuts down. Once the monitor was OK on the reactivation of the laptop. Once, while the screen flashes, I removed the USB cable and the monitor started working. None of this is repeatable.

      3 removed the HDMI cable and started using the VGA cable and an audio cable. No more flashing on the reactivation of the computer. Very repeatable. About 7 7 times.

    01/26/09

    Control Panel, two monitors, Device Manager, the two "monitor PNP generic," first of all we have the Hardware ID "MONITOR\HWP26A8", second is "MONITOR\SEC314C", both with the 6.0.6001.1840 driver (longhortn_rtm.080118 - 1840), I wonder if, maybe, the pilot did not.

    27/01/08

    Download NVIDIA drivers

    Downloaded from Nvidia support: Version 179,28, 2008-12-18, 179.28_notebook_winvista_32bit_beta.exe Beta (attention: are not supported by the laptop to the manufacturer.)

    HP support: Version 7.15.11.7614 has, 2008-09-08, sp40385.exe (same version that is installed.

    Version of the driver installed is the same that the one on HP support site, so did not not update driver.

    w2207h monitor download driver

    Download and install A Rev 2.0, 4.0.100.1189, 2008-10-16

    Version of the file now reads 6.0.6001.18000 (longhorn_rtm.080118 - 1840), I think it's the same as the driver already installed.

    Flashing problem is unchanged.

    end

    It was the monitor! I brought my laptop and a HDMI cable at Staples where I bought the monitor and tried on the w2207h on set. It has worked well. Took the phone in and out of fashion 'sleep' several times. I'm in the store week return policy 2 stables will replace it. The seller was very accomodating to let me try different monitors with HDMI and VGA cables and my laptop while I was there. I even brought in a large piece of cardboard to protect the ceiling :).

  • Way to monitor the current state of vi?

    I have the problem that I have a .vi which worked very well... and then I started to play with the code, and now it is blocked and does not end the operation who worked.  I tried, but could not find the problem.  Is there a way to monitor the ongoing operation that Labview is doing at a given time? (other than breakpoints).

    You can use my Abort.vi to see which screw are running.  It will give you the option to close, but you can use it just to see what happens.

  • How to monitor the hard drive in labview 8.2

    Hello

    I want to use labview 8.2 program to monitor the hard drive (a folder in the hard drive) for example an application produces a result file in the folder, and then he will be captured by labview program.

    Thank you

    What exactly are you trying to watch? If the file is created? If the file is modified?

    Without resorting to some specific options of the operating system, the only thing you can do is to query file information periodically to see if it has changed. For example, the file Info feature will give you the date change. This same function can be used to check the existence of the file by looking at the error code. Actually, that's exactly what made the VI "check if the file or folder exists.

    If you want a regime more "event-based" then you can try something that is specific to the operating system. For example, on Windows, you can use .NET using FileSystemWatcher class (http://forums.ni.com/t5/tag/FileSystemWatcher/tg-p/board-id/170)

  • conditionally quickly monitor the key based on LabVIEW being the application of the update in Windows

    Hi all

    I use LV 2009 in Vista.  I use a VI dynamic, in addition to higher level, to monitor the key pad.  It works great except for the fact that when I have another application open during the execution of the LabVIEW application, it still meets the press of button.  that is so that the use of the calculator and pressing the ESC key to clear the display, LabVIEW reacts as well.

    LabVIEW will know if it is the "application of the update" in windows environment?  I know he can tell it is windows that are in front, but what about other applications?  I think to use this to filter keys when LV is not the front application.

    Thank you!

    Charlie

    This is the vi registered under a vi 2009

  • How to monitor the TX and RX on PERFORMANCE for virtual network adapter BASP monitor?

    How to monitor the TX and RX on PERFORMANCE for virtual network adapter BASP monitor?

    I have a virtual network adapter that is created with Broadcom.

    This virtual interface named "BASP eCard" visible on the performance monitor in the category 'Rhythm Pipe' but not in the category "Network Interface".

    This is problematic because the Tx and Rx (bytes received/send in second) is available in "Network Interface" that show physical network cards only.

    Someone has an idea?

    Thank you

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to monitor the use of the PXI UC?

    Does anyone know a way to control CPU utlization on a controller with LabVIEW PXI programmatically? I know that NEITHER had a VI owner to monitor the use of memory called rtgetmemorysummary.vi to monitor the memory usage, and I want to do the same for the CPU usage.

    If you mean a targer RT, then you can use

    RT get CPU loads.vi

    See here

    Marco

  • How to monitor the activities of internet users without using third-party software. We have some 60 windows domain user

    Hi all

    We have 60 knots which is connected with the windows domain. How to monitor the activities of internet users via the windows server

    without third-party software.

    Thanks in advance

    Alam

    Hello

    The business support, you can find forums on TechNet, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • All the tools to monitor the temperature of the HARD drive?

    Someone knows any tools to monitor the temperature of the HARD drive? which can be set all of a specific level.  If the temperature is over 50 degrees, it will give any warning.

    Does anyone have any suggestions.

    Thanks in advance for your suggestions

    I'm not sure about the alerts, but I remember using SpeedFan , a long time ago to monitor temperatures.

  • Y at - it a utility to monitor the speed, temperature and cpu/gpu for desektop m9200T fan?

    My desktop running Win7 Home Premium m9200T computer crashes often.  It seems to be associated with temperature.

    I tried SpeedFan, but my computer crashed whenever I ran it.  The SpeedFan 20 window scroll a few lines of text that the computer crashed.  Y at - it a utility to monitor the speed, temperature and cpu/gpu for desektop m9200T fan?

    PC Wizzard works well on my computer.

    Thanks Big_dave.

  • Easy way to monitor the Backup Exec 12.5 +.

    Someone at - he found a way to do this? We had to work at 11, but when we went, it seems that syamntec has changed the way it reports in its database.

    Can you give us more information about the way you are / have been followed by Backup Exec 11? As what extension of BB are / were you helps monitor the Backup Exec 11? In addition, details of the power failure; execution of the extension will fail at all, at some point, no matter what STDERR? And what version of BB you running now?

  • Foglight can monitor the WebSphere Process Server?

    You have experience in the monitoring of IBM products like WebSphere Process Server WebSphere Application Server-based? What about Portal Server?

    Thank you.

    Technically the Java agent monitors the Websphere server and whatever it is current running on a Websphere server support.

    We have customers using the agent Java for trade and Portal Server, I have not personally tested with the bailiff, but if it's a version supported Websphere server it should work.

    A couple of things I've seen with Logon/trade:

    1. in some cases, there is a need to play with the settings of the instrumentation to exclude classes called many be instrumented.

    2 transformation of URL is necessary because the URLS have parameters embedded in them, which makes the demand model are growing very fast.

    An example of transformation of URLS can be found here

    https://support.software.Dell.com/Foglight/KB/62707

    Hope this helps

    Golan

  • Monitor the physical host computers

    How to control the physical hosts with vFoglight 6.6?

    The cartridge of the infrastructure offers you the ability to monitor the physical host computers

    http://eDOCS.quest.com/vFoglight/66/doc/wwhelp/wwhimpl/common/HTML/frameset.htm?href=cartridge/InfrastructureCartridge/index.php

    The process of creating agents and add hosts can be seen here

    http://eDOCS.quest.com/vFoglight/66/doc/cartridge/InfrastructureCartridge/UsingTheCartridge.02.3.php#416085

    Golan Shem-Tov

Maybe you are looking for