Start and stop servers and applications using CLI

Purpose

This topic describes the steps to start or stop a Lucent CM server or Lucent CM application using the High Availability (HA) Command Line Interface (CLI) or Command Line Interface (CLI).

Available HA CLI commands

To view all available HA CLI commands, type the following command at the HA CLI and press ENTER:

help

Start and stop commands on HA CLI

The start and stop commands have the following syntax:

start < node <node-name>| proc <all|<proc-name> | system | enterprise <all|<enterprise-name> | type<server-type>

stop < node <node-name>| proc <all|<proc-name> | system | enterprise <all|<enterprise-name> | type<server-type>

The following table describe the options that are available:

Option

 

Description

 

Example

 

node <node-name>

 

Starts or stops the specified node.

 

start node

 

proc <all|<proc-name>

 

Starts or stops all processes or the specified process on the node.

 

start proc all

stop proc JBOSS-node1

 

system

 

Starts or stops all non-partition related processes

 

stop system

 

enterprise <all|<enterprise-name>

 

Starts or stops all partition-related processes or the specified process on the node.

 

stop enterprise all

start enterprise enterprise-1

 

type<server-type>

 

Starts or stops all applications of this server type on the system (on all nodes).

 

stop type JBOSSServer

start type MySQL

 

Start and stop commands on CLI

Command

 

Description

 

stop_node

 

Stops all applications on the node.

 

start_node

 

Starts all applications on the node.

 

Start and stop servers or applications from the HA CLI

Task StepsPerform the following steps:

1

Log in to a node.


2

Change directory and start the high availability command line interface. Type the following commands and press ENTER:

  1. cd /opt/lps/current/ha

  2. ./ha_cli

Result:  The HA login: prompt displays.


3

Enter a CLI login.

A CLI login can consist of any three characters.

Result:  The [enter_cmd]: prompt displays.


4

Display and verify the running applications.

Type the following command and press ENTER:

show.

Result: 

Output similar to the following example displays:

***  PROB Server        Host             Type         Status  Admin
                                                              Status
[ 1] JBOSS-node1        lpsdev1-n1-int   JBOSSServer  UP      UP
[ 2] JBOSS-node2        lpsdev5-n2-int   JBOSSServer  UP      UP
[ 3] LCMSock-node1      lpsdev1-n1-int   LCMSock      UP      UP
[ 4] LCMSock-node2      lpsdev5-n2-int   LCMSock      UP      UP
[ 5] LVS_LoadBal-node1  lpsdev1-n1-int   LVS_LoadBal  UP      UP
[ 6] LVS_LoadBal-node2  lpsdev5-n2-int   LVS_LoadBal  UP      UP
[ 7] MySQL-node1        lpsdev1-n1-int   MySQL        UP      UP
[ 8] MySQL-node2        lpsdev5-n2-int   MySQL        UP      UP

5

Enter the appropriate command to start or stop the system, a server, enterprise or proccesses.


6

Exit the HA CLI. Type the following command and press ENTER:

quit

End of steps


Start and stop servers or applications from the CLI

Task StepsPerform the following steps:

1

Log in to a node.


2

Enter cd /opt/lps/current/ha


3

Enter the appropriate command. Enter: ./<command_name>

Example:  To stop all processes on a node, enter ./stop_node

End of steps



© Lucent Technologies