MC/service guard command
1.察看cluster的配置信息:
NAME
cmquerycl - query cluster or node configuration information
SYNOPSIS
cmquerycl [-k] [-w full|local|none] [-c cluster_name] [-q
quorum_server|-L lock_lun_device] [-n node_name [-L lock_lun_device]]... [-l {net|lvm}] [-v] [-C cluster_ASCII_file]
2.檢查cluster的配置文件:
NAME
cmcheckconf - check high availability cluster configuration and/or
package configuration files
SYNOPSIS
cmcheckconf [-v] [[-k|-K] -C cluster_ascii_file]
[[-p pkg_reference_file] | [-P pkg_ascii_file]...]
eg:#cmcheckconf -v -P scppkg.asc
3.刪除配置文件:
NAME
cmdeleteconf - Delete either the cluster or the package configuration
SYNOPSIS
cmdeleteconf [-f] [-v] [-c cluster_name] [[-p package_name]...]
eg:
#cmdeleteconf -v -c scp1
#cmdeleteconf -v -c scp2
4.應用配置文件:
NAME
cmapplyconf - verify and apply Serviceguard cluster configuration and
package configuration files
SYNOPSIS
cmapplyconf [-f] [-v] [[-k|-K] -C cluster_ascii_file]
[[-p pkg_reference_file] | [-P pkg_ascii_file]...]
eg:cmapplyconf -f -v -C scppkg.asc
5.cluster的狀態信息:
cmviewcl - view information about a high availability cluster
SYNOPSIS
cmviewcl [-v] [-c cluster_name] [-r release]
[[-n node_name]... OR [-p package_name]...]
[-l {package|cluster|node|group}]
6.cluster node running管理命令:
NAME
cmrunnode - run a node in a high availability cluster
SYNOPSIS
cmrunnode [-v] [node_name...] [-w none]
7.停cluster管理命令:
NAME
cmhaltcl - halt a high availability cluster
SYNOPSIS
cmhaltcl [-f] [-v]
8.啓動package:
(1)、NAME
cmrunpkg - run a high availability package
SYNOPSIS
cmrunpkg [-n node_name] [-v] package_name...
eg:#cmrunpkg -n cluster pdb_tes
(2)、NAME
cmmodpkg - enable or disable switching attributes for a high
availability package
SYNOPSIS
cmmodpkg {-e|-d} [-n node_name]... [-v] package_name...
cmmodpkg [-v] -R -s service_name package_name
eg:#cmmodpkg -e pdb_tes
#cmmodpkg -e -n node_name pkg_name
9.halt package
NAME
cmhaltpkg - halt a high availability package
SYNOPSIS
cmhaltpkg [-n node_name] [-v] package_name...
eg:#cmhaltpkg pdb_tes
10.halt node
NAME
cmhaltnode - halt a node in a high availability cluster
SYNOPSIS
cmhaltnode [-f] [-v] [node_name...]
11.創建包的模板文件:
NAME
cmmakepkg - create a high availability package template file
SYNOPSIS
cmmakepkg [-v] {-s|-p} [output_file_name]
12.現實service guard版本信息:
#cmversion
13.從cluster增加或刪除ip地址:
NAME
cmmodnet - add or remove an address from a high availability cluster
SYNOPSIS
cmmodnet [-v] {-a|-r} -i { IPv4_address IPv4_subnet | IPv6_address
IPv6_subnet}
-v Verbose output will be displayed.
-a Add the IPv4_address to the IPv4_subnet or add the
IPv6_address to the IPv6_subnet
-r Remove the IPv4_address from the IPv4_subnet or remove the
IPv6_address from the IPv6_subnet
-i IPv4_Address or IPv6_address