Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

Service restart SCOM 2012

$
0
0

Hello,

I've one alert for specific event id, if that event triggers particular custom service needs to be restarted. Actually the service will be is running state only during the event triggered need to create recovery task to restart the service.

I created two recovery task:

1. STOP service: in path: c:\windows\system32\net.exe

parameters: STOP <ServiceName>

2. START service: in path: c:\Windows\System32\net.exe

Parameters: START <ServiceName>

But the above tasks seems to be not working perfectly. sometime START task is starting first and it threw output service is already running. Then STOP task starts and it stops the service.

How can i achieve restart the service using the Recovery tab?

Regards,

Vijay


Viewing all articles
Browse latest Browse all 11941

Trending Articles