#crsctl start crs
#crs_stat -t
[root@rac1 network-scripts]# cd /home/grid/u02/product/grid/bin
[root@rac1 bin]# ./gpnptool get
Warning: some command line parameters were defaulted. Resulting command line:
./gpnptool.bin get -o-
<?xml version="1.0" encoding="UTF-8"?><gpnp:GPnP-Profile Version="1.0"
xmlns="http://www.grid-pnp.org/2005/11/gpnp-profile"
xmlns:gpnp="http://www.grid-pnp.org/2005/11/gpnp-profile"
xmlns:orcl="http://www.oracle.com/gpnp/2005/11/gpnp-profile"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-
profile.xsd" ProfileSequence="7" ClusterUId="66c54dd88ba67f71ffd041253c783295"
ClusterName="rac-cluster" PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork
id="gen" HostName="*"><gpnp:Network id="net1" IP="11.1.1.0" Adapter="eth0"
Use="public"/><gpnp:Network id="net2" IP="192.168.168.0" Adapter="eth1"
Use="cluster_interconnect"/></gpnp:HostNetwork></gpnp:Network-Profile><orcl:CSS-
Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/><orcl:ASM-Profile
id="asm" DiscoveryString="/dev/mapper/asm*" SPFile="+VOTE/rac-
cluster/asmparameterfile/registry.253.1095104065"/><ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:Canonicalizatio
nMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference
URI=""><ds:Transforms><ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <InclusiveNamespaces
xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="gpnp orcl
xsi"/></ds:Transform></ds:Transforms><ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>Ch5coA943thB
4Pq0CJ1omvbGFC8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureVal
ue>DymkPK3zzwdI2pFa1uFIMrmcA6WgLu/s1212nL/fipYJ0ThU+xAXhk0Ee3DcKxcLt3oYMeazMBGy+
EtgKS7CtoqkGgV8knuPbWIJIqcy7l2EoKvG5/gSVEsF/PPRO/UgX+ZQ/cv5j+Y/zeishMzk0WA+Jbk6e
XLssmFqjqkrPJY=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile>
Success.
[root@rac1 bin]# mkdir /home/oracle/gpnp
[root@rac1 bin]# export GPNPDIR=/home/oracle/gpnp
[root@rac1 bin]# gpnptool get -o=$GPNPDIR/profile.xml
-bash: gpnptool: command not found
[root@rac1 bin]# ./gpnptool get -o=$GPNPDIR/profile.xml
Resulting profile written to "/home/oracle/gpnp/profile.xml".
Success.
[root@rac1 bin]# cp $GPNPDIR/profile.xml $GPNPDIR/p.xml
[root@rac1 bin]# gpnptool getpval -p=$GPNPDIR/p.xml -prf_sq -o-
-bash: gpnptool: command not found
[root@rac1 bin]# ./gpnptool getpval -p=$GPNPDIR/p.xml -prf_sq -o-
7
--查看 crs 配置信息
cd /home/grid/u02/product/grid/bin
[root@rac1 ~]# gpnptool get
--修改备份的 CRS 配置信息
--备份配置文件
[root@rac1 ~]# cp $GPNPDIR/profile.xml $GPNPDIR/p.xml
评论