免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3009 | 回复: 0
打印 上一主题 下一主题

HP MC/ServiceGuard安装维护手册(六) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-03 18:12 |只看该作者 |倒序浏览

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



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19608/showart_122655.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP