HP MC/ServiceGuard安装维护手册(六)

1. MC/ServiceGuard命令参考

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

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

Commands Examples

Here are a example cluster information :

Cluster Name: HP-Cluster Node name: HP1, HP2

Package name : hp-pkg1,hp-pkg2 Database : Oracle

Description

Commands Examples

Remark

To create Cluster configuration ascii file in configuring

Cmquerycl -C cmclconfig.ascii –n HP1 –n HP2

Configuration Commands

To check the syntax or error of cmclconfig.ascii without packages

Cmcheckconf -C cmclconfig.ascii

Configuration Commands

To compile cmclconfig.ascii without packages

Cmapplyconf -C cmclconfig.ascii

Configuration Commands

To make package’s configuration file (hp-pkg1.conf)

Cmmakepkg -p /etc/cmcluster/hp-pkg1/hp-pkg1.conf

Configuration Commands

To make package’s control file (hp-pkg1.sh

Cmmakepkg -s /etc/cmcluster/hp-pkg1/hp-pkg1.sh

Configuration Commands

To check the syntax or error of cmclconfig.ascii with packages

Cmcheckconf -C cmclconfig -P /etc/cmcluster/hp-pkg1/hp-pkg1.conf -P /etc/cmcluster/hp-pkg2/hp-pkg2.conf

Configuration Commands

To compile cmclconfig.ascii with packages

Cmapplyconf -C cmclconfig -P /etc/cmcluster/hp-pkg1/hp-pkg1.conf -P /etc/cmcluster/hp-pkg2/hp-pkg2.conf

Configuration Commands

To delete cluster configuration

Cmdeleteconf -C HP-Cluster –n HP1 –n HP2

Configuration

To Gather system configuration information from nodes

Cmscancl -v

Configuration

Commands

To view MC/ServiceGuard cluster configuration information

Cmviewconf -v

Configuration

Commands

To startup cluster

Cmruncl –v

Cluster Commands

To halt cluster

Cmhaltcl –v -f

Cluster Commands

To halt a specific node(HP1)

Cmhaltnode –f –v HP1

Node Commands

To startup a specific cluster node (HP1)

Cmrunnode –v HP1

Node Commands

To run a package (hp-pkg1) on the node(HP1)

Cmrunpkg –n HP1 –v hp-pkg1

Package Commands

To halt a package (hp-pkg1) on the node(HP1)

Cmhaltpkg –v –n HP1 hp-pkg1

Package Commands

To Enable (-e) or disable (-d) switching attributes for Both node and an Application Package.

Cmmodpkg -e(enable) -n HP1 –v hp-pkg1

Cmmodpkg -d(disable) -n HP1 –v hp-pkg1

Package Commands

To Enable (-e) or disable (-d) switching attributes for an Application Package

Cmmodpkg –e(enable) –v hp-pkg1

Cmmodpkg –d(disable)-v hp-pkg1

Package

Commands

To display current Cluster and Application Package information.

Cmviewcl -v

Monitor Commands

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9721529/viewspace-914023/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/9721529/viewspace-914023/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值