How do I generate a report to check the current state of a service running on a machine?

Document ID : KB000026643
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: 

How do I generate a report on the Services running on a machine?

Is CA Client Automation capable of inventorying the system services listed under services.msc on Windows platforms?

 

Environment:  

CA Client Automation - All versions

 

Answer: 

Services inventory from machines running Windows platform can be collected using the 'Service Inventory for Windows NT' module.

     1.)    In the DSM Explorer drill down to Control Panel->Configuration->Collect Tasks->Hardware Inventory.

     2.)    Right click Inventory Configuration and select Properties.

             Figure 1


     3.)  Go to the 'Detection Modules' tab and enable 'Service Inventory for Windows NT' module.

                       Figure 2


    4.)  Wait for the agents to start finding the data (data will usually be there the next morning, since AM Scan is scheduled to run overnight)

         You can force a scan by right-clicking on a machine and doing a Asset Jobs > Activate Job Check... Check all boxes and select OK

         or run  caf start amagent -args /rescan_inventory /rescan_software /collect         at the Agent.

 

    5.)  Check to see if you can find the Services data in DSM Explorer under  Agent >Inventory > Additional > Services > Services

                       Services.jpg

 

     6. )  In the DSM Reporter create a 'New Report Template' based on 'Asset or User Report'.

     7.)   Select the 'Fields' tab and click on 'Add'.     

                             Figure 3


       8.)   Go to Inventory->Inventory Modules, select the desired service under services and click 'Add'. Proceed further as prompted.

               Figure 4

Note: The above example reports the 'Current State' of Alert Notification Server service.

 

    9.)   Here is an example of what your Report should look like depending on what fields you select:

          Service_report.jpg 

 ***Note:  Information in Report is not "real time " information, but the State of the Service when the Asset Management Task was run ***