BCM: How to Start Stop BCM Agent Service

Version 3
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    BMC Client Management


    Client Management


    All client Management for Windows version


    How to start or Stop hung/hanged BCM Service which shows no options to start the service.

    NO Option to start or stop service



    The problem when a service is locked is that it can't be started/stopped/restarted manually. You will either need to kill it manually or using a script.

    1- Unlock the service from the device web interface:
    It is possible to lock the service of your agent as you can read here. To unlock the service, follow this procedure:


    - connect to the device physically or using Windows Remote Desktop
    - in a browser, type <_COMPUTER_:port>/service/ in the address bar and press Enter.
    Replace _COMPUTER_ with either the IP address or computer name of the device for which you want to unlock the service.
    - enter the local administrator or domain administrator credentials for authentication.
    - in the Service Management for <device name> page, enter your service management password in the Password field to unlock the service, and click OK.
    A success message is displayed indicating the agent service is unlocked. The agent service now can be stopped or disabled.


    2- Restart/stop/start the service
    Whether it's a linux,mac or windows device, the easiest way to restart a service is to use an operational rule:
    - Create an operational rule
    - add the step " Restart agent"
    - assign the operational rule to your target


    In case you can't use an operational rule you can use these other methods:

    A- Solutions for Windows:

    1- From the target itself:
    This implies  to be physically connected to the device or to use another tool to take control such as Windows Remote Desktop:
    - If you are unsure of the service name, execute services.msc and look for the service of the agent " BMC Client Management Agent "
    - run cmd as an administrator
    - type the following command line:


    sc queryex "SERVICE_NAME"


    e.g: sc queryex "BMC Client Management Agent"

    The output should look similar to this: 

    Get the PID, in this example it's "1856" 
    - run the following command line to kill the process:  
      taskkill /f /pid    _PID_NUMBER_
    e.g: taskkill /f /pid 1856 

    Command to terminate the service
    - run the following command line to start the service:  
       sc start "BMC Client Management Agent" 

    2- From distance:
    These scripts were shared by customers in communities:

    Script 1:

    $Svc = Get-WmiObject -Computer PCNAME win32_service  -Filter "name='BCM Agent'" $Result = $Svc.StopService() $Result.ReturnValue sleep 10 $Result = $Svc.StartService() $Result.ReturnValue
    Script 2:  
    $PC= read-host 'What PC do you want check?' $service = "BMC Client Management Agent" $running = Get-Service $service -ComputerName $PC if($running.Status -eq "Stopped") {write-host -foregroundcolor yellow 'The service was stopped on PC '$PC '.Is OK now!'} if($running.Status -eq "Stopped") {Get-Service -Name "BMC Client Management Agent" -ComputerName $PC | Set-Service -Status Running} if($running.Status -eq "Running") {write-host -foregroundcolor yellow 'The service is running on PC '$PC}

    B- Solutions for linux
    This is much easier for linux. Connect to a terminal as root or as a sudoer and run the following command lines:

    B1- to restart the agent:


    # /etc/init.d/BMCClientManagementAgent restart

    B2- to stop it only:  
      # /etc/init.d/BMCClientManagementAgent stop 
    B3- to start it only:  
      # /etc/init.d/BMCClientManagementAgent start 
    After having started or restarted the service, make sure two copies of mtxagent are not running at the same time:  
      # ps aux |grep mtxagent 
    Note: it's possible that the service name is "BMCFootPrintsAssetCoreAgent" instead "NumaraAMPAgent" or "NumaraFootPrintsAssetCoreAgent" depending on the version you strated to use the product. 


    Article Number:


    Article Type:


      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles