- 论坛徽章:
- 0
|
Overview
The following items are intended to assist with System Administration in an MC/ServiceGuard environment. This information is targeted to Operations Troublshooters, System Administrators, and MCSG Administrators. It is not a comprehensive list of Administrative tasks. It is intended to supplement the MC/ServiceGuard documentation, and the troubleshooting information found in the student workbook from the MCSG training. The following references apply to the A.10.10 version of MC/ServiceGuard which works in conjunction with HP-UX version 10.20.
MC/ServiceGuard Commands
The following table contains a brief and simple explanation of the unix commands used to configure and manage MC/ServiceGuard. See the Unix “man” pages for more information and the syntax to execute the commands
Comnmands
Supported Options
Description and Specific Options
cmapplyconf
fpvCP
Recompile and distribute Cluster binary configuration file.
This is the Cluster “executable” file.
-f Force the distribution of the binary file, even if one already exists.
cmcheckconf
pvCP
Syntax check the Cluster and Application Package configuration files.
cmhaltcl
fv
Halt a ServiceGuard Cluster.
-f Halt all Application Packages, then halt the Cluster.
If a Package halt fails, then the cluster halt also fails.
cmhaltnode
fv
Halt a ServiceGuard Node (remove it from the Cluster).
cmhaltpkg
nv
Halt a ServiceGuard Application Package.
cmhaltserv
Halt a ServiceGuard Service contained in an Application Package.
cmmakepkg
p or s
Create a ServiceGuard Application Package template file. Two kinds are available.
-p Create a sample ASCII package configuration file.
-s Create a sample package control script.
cmmodnet
a or r
i
Attach (-a) or remove (-r) a relocatable IP to/from a LAN interface (IP subnet).
-i IP address of relocatable host name.
cmmodpkg
d or e
nv
Enable (-e) or disable (-d) switching attributes for an Application Package.
May be done at the Node level (-n), or globally (no option).
cmquerycl
clnvC
Gather information from cluster Nodes and create the ASCII Cluster configuration file.
-l lvm Display LVM information only.
-l net Display network information only.
cmruncl
fnv
Start up a ServiceGuard Cluster.
-f Force Cluster start up without warning message and prompt.
cmrunnode
v
Start up a Cluster Node (have it join an active Cluster).
cmrunpkg
nv
Start up a ServiceGuard Application Package.
cmrunserv
rR
Start up a Service in a ServiceGuard Application Package.
-r Attempt to restart a failed Service “n” number of times before halting Package.
-R Attempt to restart the Service an unlimited number of times.
cmviewcl
lnpv
Display current Cluster and Application Package information.
-l cluster Limit display to cluster information.
-l node Limit display to node information.
-l package Limit display to package information.
cmscancl
v
Gather system configuration information from nodes with MC/ServiceGuard or MC/Lock Manager installed
This command is a configuration report and diagnostic tool which gather system software and hardware configuration information from a list of nodes, or from all the nodes in a cluster
cmviewconf
v
View MC/ServiceGuard or MC/LockManager cluster configuration information
This command collects and display the cluster configuration information, in ASCII format, from the binary configuration file for an existing cluster
Command Options
The following table contains a list of the command options which are common to (and have the same meaning in) all the commands used with MC/ServiceGuard.
Common Options
Description
-c cluster_name
The name of the applicable MC/ServiceGuard Cluster.
-C cluster_configuration_file
The name of the ASCII file containing the cluster configuration information
-n node_name
The name of the specific node to use when applying the command.
-P package_configuration_file
The name of the ASCII file containing the Application Package configuration information.
-p package_reference_file
The name of a file containing the locations of the Application Package configuration files.
-v
Verbose option
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/16666/showart_99032.html |
|