While trying to run the VMM inventory task, the task keeps failing, timing out. In repeated "Rerun Failed" attempts, about 15% of systems are successful each run. Each subsequent attempt seems to acquire 15% more, and so on.
Return Code: -1
The Task was killed because it to longer than the allowed time. To change the time go to the task’s advanced properties.
Source Code Change.
The time for inventory has been reduced substantially in version 7.5 Sp1 of VMM, this will effectively reduce the amount of time for inventory to complete. As an example, testing showed that, before the fixes were added in 7.5 Sp1, a scheduled inventory task previously would take around 2 hours 6 minutes, to collect inventory against approximately 183 ESX hosts (1 vCenter and roughly 2500 VMs). In 7.5 SP1, the was time reduced to around 43 minutes.
Alternately, you can increase the VMM Task Timeout value. The steps to increase VMM task timeout value:
Go to respective task folder in Jobs and Tasks, like Inventory, DeployVM etc
Right click on that folder and select Export option.
Save the task xml file.
Change ‘maxMinutes’ value from 60 to sufficient time like 120 in two places in that xml file. In one case, the customer put in the value of 600, essentially telling it to wait 10 hours.
Import the same xml file to back to the same task folder by right clicking.
Re-run the respective VMM task
Imported Document ID: TECH225321
Subscribing will provide email updates when this Article is updated. Login is required.