Hi,
I am trying to use PowerShell Script in a management pack I am creating to trigger discovery automatically.
Using the UI to trigger on demand discovery : I get the following result
< DataItem type =" System.OnDemandDiscoveryResponse " time =" 2013-08-16T11:49:34.1168669-07:00 " sourceHealthServiceId =" AB60B6DB-0AF2-FF49-060A-13E01AE1D604 " > < Result > DISCOVERY_NOT_FOUND </ Result > < Timestamp /> </ DataItem >
I use powershell script, which I want eventually to trigger automatic discovery I also get same result:
Status : Succeeded
Output : <DataItem type="System.OnDemandDiscoveryResponse" time="2013-08-16T11:36:10.9682547-07:00" sourceHealthServiceId="6904F683-999F-AE14-5BE7-FEF74D1E5596"><Result>DISCOVERY_NOT_FOUND</Result><Timestamp></Timestamp></DataItem>
I have the management pack that has the discovery I am trying to start imported.
Why is it not finding discovery although the powershell script:
$d = Get-SCOMDiscovery -Name "MyDiscoveryClassName
runs fine?
I appreciate your help.
Thanks,