CRSCTL Basic Commands

 Check Cluster Status

[oracle@oratest2 ~]$ crsctl check cluster -all

**************************************************************

oratest1:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

**************************************************************

oratest2:

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

List Specific Resource State

[oracle@oratest2 ~]$ crsctl stat res ora.ora_prim.db -t

--------------------------------------------------------------------------------

Name           Target  State        Server                   State details      

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

ora.ora_prim.db

      1        ONLINE  ONLINE       oratest2                 Open,HOME=/u01/app/o

                                                             racle/product/19c/db

                                                             _1,STABLE

      2        ONLINE  ONLINE       oratest1                 Open,HOME=/u01/app/o

                                                             racle/product/19c/db

                                                             _1,STABLE

List Resource Values

[oracle@oratest2 ~]$ crsctl stat res ora.ora_prim.db -p

Check OHAS,CSS,CTSS,EVM Status

[oracle@oratest2 ~]$ crsctl check crs

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

Check CRSS Status

[oracle@oratest2 ~]$ crsctl check ctss

CRS-4700: The Cluster Time Synchronization Service is in Observer mode.

Check CSS Status

[oracle@oratest2 ~]$ crsctl check css

CRS-4529: Cluster Synchronization Services is online

Check EVM Status

[oracle@oratest2 ~]$ crsctl check evm

CRS-4533: Event Manager is online

Check DiskTimeout Value

[oracle@oratest2 ~]$ crsctl get css disktimeout

CRS-4678: Successful get disktimeout 200 for Cluster Synchronization Services.

Check NetworkTimeout Value

[oracle@oratest2 ~]$ crsctl get css misscount

CRS-4678: Successful get misscount 30 for Cluster Synchronization Services.

Check Cluster Reboot Time

[oracle@oratest2 ~]$ crsctl get css reboottime

CRS-4678: Successful get reboottime 3 for Cluster Synchronization Services.

Check Resource Permission

[oracle@oratest2 ~]$ crsctl getperm resource ora.ora_prim.db

Name: ora.ora_prim.db

owner:oracle:rwx,pgrp:oracle:r--,other::r--,group:oinstall:r-x,group:asmdba:r-x,user:oracle:r-x

Check Instances Status

[oracle@oratest2 ~]$ olsnodes -s

oratest2      Active

oratest1       Active

Check DNS server information

[oracle@oratest2 ~]$ crsctl query dns -name oratest1

CRS-10024: DNS server returned 192.168.1.6  for name oratest1

Check VoteDisk Information

oracle@oratest2 ~]$ crsctl query css votedisk

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

 1. ONLINE   e991f1aa016f4fb7bf5dba810330c3dc (/dev/oracleasm/disks/ASMDISK01) [DATA]

 2. ONLINE   132427f49bc64f63bffcb6bc089813ac (/dev/oracleasm/disks/ASMDISK02) [DATA]

 3. ONLINE   0ac91e3859064f04bfe11ea1b8c78e60 (/dev/oracleasm/disks/ASMDISK03) [DATA]

Check IPMI Iformation If Exist

[oracle@oratest2 ~]$ crsctl query css ipmidevice

CRS-4218: Unable to access an IPMI device on this system

List The Patchset Level In A Specific Host

[oracle@oratest2 ~]$ crsctl query crs softwarepatch  oratest2

Oracle Clusterware patch level on node oratest2 is [724960844].

List The Clusteware Software Version Installed

[oracle@oratest2 ~]$ crsctl query crs softwareversion  -all

Oracle Clusterware version on node [oratest2] is [19.0.0.0.0]

Oracle Clusterware version on node [oratest1] is [19.0.0.0.0]

List Active Patch Set Level

[oracle@oratest2 ~]$ crsctl query crs activeversion -f

Oracle Clusterware active version on the cluster is [19.0.0.0.0]. The cluster upgrade state is [NORMAL]. The cluster active patch level is [724960844



Post a Comment

Previous Post Next Post