MC / Service Guard 명령어

Info Commands

Info Command

Options

Comment

cmviewcl

 

View cluster information

 

-n nodename

View cluster information for specific node

 

-p pachage

View package information

 

-l {pachage|cluster|node|group}

View information about cluster restricted to a certain level of information

 

-v

Be more verbose

cmquerycl

 

Get information about e.g. lvm, file systems and lan config. Use this tool to create the cluster_ASCII_file

 

-n {nodename}

Get above infos for specific node

 

-c {clustername}

Get above infos for specific cluster

 

-C cluster_ASCII_file

Write info into ASCII File

cmscancl

 

Gather system configuration info from nodes with Serviceguard.

 

-n {nodename}

Get above infos for specific node

 

-s

Write info to screen

 

-o output_file

Write info to output_file

cmviewconf

-o {filename}

Get information about cluster settings, network and packages using the binary configuration file.

cmgetconf

 

Read the binary cluster configuration file and write it to an ASCII file.

 

-c {clustername}

Name of cluster for which to query

 

-p {packagename}

Name of package for which to query

 

filename

File to where the output will be copied

Config Commands

Config Command

Options

Comment

cmcheckconf

 

Check cluster configuration and/or package configuration files

 

-C cluster_ascii_file

Check cluster_ascii_file

 

-P pkg_ascii_file

Check pkg_ascii_file

 

-p pkg_reference_file

Check multiple packages listed in file

cmapplyconf

 

Apply cluster configuration and package configuration files

 

-C cluster_ascii_file

Apply cluster_ascii_file

 

-P pkg_ascii_file

Apply pkg_ascii_file

 

-p pkg_reference_file

Apply multiple packages listed in file

 

-f

Force the distribution even if a binary configuration file exists on any nodes

cmdeleteconf

 

Delete either the cluster or the package configuration

 

-c cluster_name

Name of the cluster to delete

 

-p package_name

Name of an existing package to delete from the Cluster

cmmakepkg

 

Create package template files

 

-p | -s

Create configuration file {.conf} or create control script {.cntl}

Admin Commands

Admin Command

Options

Comment

cmmodpkg

 

Enable or disable switching attributes for a package and run a package.

 

-e|-d

Enable or disable

 

-n node_name

Run a package on a specific node and overrun the

order of the package .conf file

 

-R –s {SER_NAME

PKG_NAME}

Reset the restart counter for service SER_NAME in package PKG_NAME

cmruncl

 

Run a high availability cluster

 

-n node_name

Start the cluster daemon on the specified subset of node(s)

cmhaltcl

 

Halt a high availability cluster

 

-f

Force halt, even if packages are running. This causes all packages to be halted.

cmrunnode

node_name

Run a node in a high availability cluster. If node_name is not specified, the cluster daemon will be started on the local node and will join the existing cluster.

cmhaltnode

 

Halts cluster daemon and remove itself from the existing cluster.

 

-f

Force halt, even if packages are running. This causes all packages to be switched to another node.

 

node_name

If node_name is not specified, the cluster daemon running on the local node will be halted and removed from the existing cluster.

cmrunpkg

 

Run a high availability package

 

-n node_name

If a node is not specified, the node on which the command is run will be used. If the package was previously halted, the global switching for the package will still be disabled until a cmmodpkg - e is done on the package.

 

package_name

Name of a package

cmhaltpkg

 

Halt a high availability package

 

-n node_name

If the -n option is not specified, the package will be halted regard-less of where it is currently running. When a package is halted,package switching is disabled for that package.

 

package_name

Name of a package

cmrunserv

 

Run a service. Only to be used from the package control script

 

service_name

Name of service as it exists in the package configuration information

 

service_command_string

Process string to be started

 

-r {no. of restarts}

Number of times that the service is restarted until the package is halted

 

-R

The service should be restarted an unlimited number of times if it fails.

cmhaltserv

service_name

Halt a service from the high package run script

cmstartres

-p package_name

resource_name

cmstartres starts resource monitoring for an EMS resource on the local node. This resource must be configured in the specified package_name

 

-u

Wait for the EMS resource to be available before starting resource monitoring

cmstopres

-p package_name

resource_name

cmstopres stops resource monitoring for an EMS resource on the local node. This resource must be configured in the specified package_name

 

'Linux & Unix > MC/ServiceGuard' 카테고리의 다른 글

MC/Serviceguard Cluster on HP-UX 11.31  (1) 2012.05.10
HP MC Service Guard install  (0) 2012.05.10
Module 5 - Configure a Cluster  (0) 2012.05.10