Brocade B-Series: CMCNE start, stop services via CLI (Command Line Interface.)

           

   Article Number:     504564                                   Article Version: 3     Article Type:    Break Fix 
   

 


Product:

 

Connectrix Manager Converged Network Edition 14.2.0,Connectrix

 

Issue:

 

 

CMCNE database service.   
    stop service   
    start service   
   
    If the CMCNE Services cannot be stopped via the SMC (Server Management Console.) on a Windows platform, there are Windows ways of starting and stopping the service.   
    But managing CMCNE services from Windows is an ungraceful method and thus it is recommended to use the CLI commands which are basically batch files created by the CMCNE developers to perform the same task gracefully.   
    Below are the CLI methods of managing CMCNE application and database as a service.   
    The commands are also useful in verifying running status of CMCNE and also helps start/stop.   
     
                                                           

 

 

Resolution:

 

 

Command are run from the Command prompt.   
    Change directory to the CMCNE install directory then into directory "bin".   
   
   
    How to check CMCNE Application service status?   
    Run the command: service dcmsvc status   
    Example:   
    C:\Program Files\CMCNE 14.2.0\bin>service dcmsvc status​   
    STATUS | wrapperm | 2017/09/28 10:33:12 | The Connectrix Manager Converged Network Edition Service is installed.       
        STATUS | wrapperm | 2017/09/28 10:33:12 |   Start Type: Automatic       
        STATUS | wrapperm | 2017/09/28 10:33:12 |   Interactive: No       
        STATUS | wrapperm | 2017/09/28 10:33:12 |   Running: No
   
   
   
    Whenever CMCNE application is running, the database runs in the background. How to check if the database is running properly in the background:   
    Run the command: dbsvc status   
    Example:   
    C:\Program Files\CMCNE 14.2.0\bin>dbsvc status       
        pg_ctl: server is running (PID: 1460)       
        C:/Program Files/CMCNE 14.2.0/db/bin/postgres.exe "-D" "C:\Program Files\CMCNE 14.2.0\data\databases"
   
   
    As you would notice, the PID 1460 showed up which is a Windows process.   
   
   
    How to stop CMCNE application service?   
    Stopping a service is also possible through Windows services (services.msc) but it is recommended to use batch files available from CMCNE so that it can handle the events gracefully.   
    Before you go ahead, please ensure CMCNE Client application is closed.   
    Example:   
    C:\Program Files\CMCNE 14.2.0\bin>service dcmsvc stop       
        STATUS | wrapperm | 2017/09/27 15:54:33 | Stopping the Connectrix Manager Converged Network Edition service...       
        INFO   | wrapperm | 2017/09/27 15:54:38 | Waiting to stop...       
        STATUS | wrapperm | 2017/09/27 15:54:41 | Connectrix Manager Converged Network Edition stopped.
   
   
   
    How to start CMCNE service?   
    Example:   
    C:\Program Files\CMCNE 14.2.0\bin>service dcmsvc start       
        other       
        STATUS | wrapperm | 2017/09/27 15:52:35 | Starting the Connectrix Manager Converged Network Edition service...       
        STATUS | wrapperm | 2017/09/27 15:52:39 | Connectrix Manager Converged Network Edition started.