Script to check if all sub services of CAF are running
search cancel

Script to check if all sub services of CAF are running

book

Article ID: 20557

calendar_today

Updated On:

Products

Advantage Data Transport CA Automation Suite for Data Centers - Configuration Automation CA Client Automation - Asset Management CA Client Automation - IT Client Manager CA Client Automation CA Client Automation - Remote Control CA Client Automation - Asset Intelligence CA Client Automation - Desktop Migration Manager CA Client Automation - Patch Manager CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER CA Server Automation CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager

Issue/Introduction

Description:

Certain custom scripts sometimes need to be executed on the agent machines to do certain ITCM related tasks. The successful execution of these scripts depend on the successful start of the CAF sub services. The below script can be included in these scripts to ensure that the CAF services are started before the custom script is executed successfully.

Solution:

  caf status | find /I "are currently stopped" > nul     
  IF ERRORLEVEL 1 EXIT /B 0 
  EXIT /B 1

Environment

Release: UASIT.99000-12-Asset Intelligence
Component: