Thursday, February 27, 2014

[OpsMgr 2012] Trigger On Demand Discovery task ( #OpsMgr2012 #SystemCenter)

Hello all,

I'm today working on some issues with SQL discoveries and we Have Microsoft guy on site to bring some help. For debugging he wanted to trigger discoveries on demand and I realized that I already wrote a post on that topic !



 
To be able to execute this task you need to know the DiscoveryId by using the Get-ScomDiscovery cmdlet with the -Displayname parameter, or if you know it the -Name parameter - It will look something along the lines of: 94d82cfb-2644-97ab-b42c-f0438d77b90a and the TargetInstanceId
by using the Get-ScomClass and Get-ScomClassInstance cmdlets.
Not so easy !
 
Michel Kamp has published a post HERE with a powershell script that will call the SCOM task. Instead of using Ids, the script allow you to use the Discovery Display Name and the Discovery Target Display Name that you can both retrieve in the SCOM console. Well it's more user friendly !
 
Testing is in progress - seems to work ! Good !



This posting is provided "AS IS" with no warranties.

No comments:

Post a Comment