IT Operations Blog

Windows Service Automatic Restart Use Case

3 minute read
Sayan Banerjee, Ipsita Priyadarshini

This use case will demonstrate how to restart any Windows service using BMC Helix Intelligent Automation with the TrueSight Orchestration connector to help manage all of your IT assets.

Use Case

When a Windows Service down alert comes into BMC Helix Operations Management, the service is restarted automatically using BMC Helix Intelligent Automation.

  • In this use case, we are using TrueSight Orchestration (TSO) as the automation tool for Out-of-the-box TSO event orchestration runbook adapters and modules.
  • The BMC Helix Intelligent Automation Policy triggers the TSO workflow to remotely restart the Windows service.
  • The Windows service gets restarted successfully and the event is closed in BMC Helix Operations Management.
  • For this use case, we are restarting the Print Spooler service on a Windows server as an example to demonstrate the flow.

The Event Orchestration Runbook Configuration

The adapters needed for this use case are shown below.

grid-manager

Reference: https://docs.bmc.com/docs/TruesightOrchestrationContent/231/installing-the-event-orchestration-runbook-1192637229.html

The modules needed for this use case are shown below.

Event Orchestration Runbook Configuration

Event Orchestration Module Configuration for BMC Helix Monitor

You will need to make changes for the attributes highlighted below.

 Event Orchestration Module Configuration for BMC Helix Monitor

Event Orchestration Credential Store Configuration

Please provide the correct Windows credentials, as shown below.
Event Orchestration Credential Store Configuration

BMC Helix Intelligent Automation

The screens below show the BMC Helix Intelligent Automation Connector, which needs to be configured from the console.

Reference: https://docs.bmc.com/docs/helixintelligentautomation/232/configuring-the-truesight-orchestration-connector-1191808192.html

configured-connectors

ip-connected

Policy Configuration: BMC Helix Intelligent Automation

You will need to configure the BMC Helix Intelligent Automation policy from the Policies tab.

restart-windows-service

action-configuration

Click on “Select Action” to get the page below.

tso-ip

Remember to click on “Sync Actions.”

Next, you can search for “Event_Orchestration Process Event” in the Search Actions field.

process-event

Follow the steps below to complete the policy configuration.

policy-configuration

policy-information

This completes the policy creation.

Please refer to the below link to download the presentation for this Blog Article.

Restart a Windows Service

We have recorded a Video showing the working of this Use Case and required configuration. This can be obtained upon request through email to the Authors.

ipsita_priyadarshini@bmc.com

sayan_banerjee@bmc.com

Conclusion

Enterprise applications require these workflows to identify and remediate critical events happening in their infrastructure. This use case help organizations manage the end-to-end infrastructure in an effective way with the least impact to the business.

Automated Service Restart Using Helix Intelligent Automation

This blog talks about how to automate restart of Windows Service using BMC in-house tools. In the current world of Enterprise automation this enables the IT Operations Team to remediate in a timely manner.


These postings are my own and do not necessarily represent BMC's position, strategies, or opinion.

See an error or have a suggestion? Please let us know by emailing blogs@bmc.com.

Business, Faster than Humanly Possible

BMC empowers 86% of the Forbes Global 50 to accelerate business value faster than humanly possible. Our industry-leading portfolio unlocks human and machine potential to drive business growth, innovation, and sustainable success. BMC does this in a simple and optimized way by connecting people, systems, and data that power the world’s largest organizations so they can seize a competitive advantage.
Learn more about BMC ›

About the author

Sayan Banerjee

Sayan specializes in working with Enterprise customers , debugging complex performance related issues. In addition, he is involved in designing and implementing complex enterprise environments and has more than 18 years’ experience in the BMC DSOM product line.

About the author

Ipsita Priyadarshini

Ipsita specializes in working with enterprise customers and manages end-to-end complex production implementation. She has an experience of more than 13 years’ working across various BMC product lines. In addition she specializes in implementation of multiple BMC Helix products.