Tracing status change of database, services and listener resoruces
$GRID_HOME/bin/oraagent.bin is the AGENT running the action script
Tracefile location for databases, services: crsd/oraagent_oracle/oraagent_oracle.log
Tracefile location for listners, ONS : crsd/oraagent_oracle/oraagent_oracle.log
Tracing an planned status change for datebase resource: ora.grac4.db
[root@grac41 oraagent_oracle]# crsctl status resource ora.grac4.db -f
NAME=ora.grac4.db
TYPE=ora.database.type
AGENT_FILENAME=%CRS_HOME%/bin/oraagent%CRS_EXE_SUFFIX%
--> The agent binary is : $GRID_HOME/bin/oraagent.bin and the status is checked every second
[grid@grac41 ~]$ crsctl stop resource ora.grac4.db -n grac41 -f
CRS-2673: Attempting to stop 'ora.grac4.grac41.svc' on 'grac41'
CRS-2677: Stop of 'ora.grac4.grac41.svc' on 'grac41' succeeded
CRS-2673: Attempting to stop 'ora.grac4.db' on 'grac41'
CRS-2677: Stop of 'ora.grac4.db' on 'grac41' succeeded
Review Tracefile: crsd/oraagent_oracle/oraagent_oracle.log
[grid@grac41 ~]$ crsctl stop resource ora.grac4.db -n grac41 -f
2014-04-25 13:24:13.950: [ AGFW][872412928]{1:51811:6772} Agent received the message: AGENT_HB[Engine] ID 12293:36571
2014-04-25 13:24:14.290: [ AGFW][872412928]{1:51811:6817} Agent received the message: RESOURCE_STOP[ora.grac4.grac41.svc 1 1] ID 4099:36579
2014-04-25 13:24:14.290: [ AGFW][872412928]{1:51811:6817} Preparing STOP command for: ora.grac4.grac41.svc 1 1
2014-04-25 13:24:14.290: [ AGFW][872412928]{1:51811:6817} ora.grac4.grac41.svc 1 1 state changed from: ONLINE to: STOPPING
..
2014-04-25 13:24:14.446: [ AGFW][857704192]{1:51811:6817} Command: stop for resource: ora.grac4.grac41.svc 1 1 completed with status: SUCCESS
2014-04-25 13:24:14.448: [ AGFW][872412928]{1:51811:6817} Agent sending reply for: RESOURCE_STOP[ora.grac4.grac41.svc 1 1] ID 4099:36579
..
2014-04-25 13:24:14.452: [ AGFW][872412928]{1:51811:6817} ora.grac4.grac41.svc 1 1 state changed from: STOPPING to: OFFLINE
2014-04-25 13:24:14.452: [ AGFW][872412928]{1:51811:6817} Agent sending last reply for: RESOURCE_STOP[ora.grac4.grac41.svc 1 1] ID 4099:36579
2014-04-25 13:24:14.484: [ AGFW][872412928]{1:51811:6817} Agent received the message: RESOURCE_STOP[ora.grac4.db 1 1] ID 4099:36585
2014-04-25 13:24:14.484: [ AGFW][872412928]{1:51811:6817} Preparing STOP command for: ora.grac4.db 1 1
2014-04-25 13:24:14.484: [ AGFW][872412928]{1:51811:6817} ora.grac4.db 1 1 state changed from: ONLINE to: STOPPING
..
2014-04-25 13:24:40.531: [ AGFW][857704192]{1:51811:6817} Command: stop for resource: ora.grac4.db 1 1 completed with status: SUCCESS
2014-04-25 13:24:40.531: [CLSFRAME][962721568] TM [MultiThread] is changing desired thread # to 4. Current # is 3
2014-04-25 13:24:40.532: [ AGFW][872412928]{1:51811:6817} Agent sending reply for: RESOURCE_STOP[ora.grac4.db 1 1] ID 4099:36585
..
2014-04-25 13:24:40.570: [ AGFW][872412928]{1:51811:6817} ora.grac4.db 1 1 state changed from: STOPPING to: PLANNED_OFFLINE
2014-04-25 13:24:40.570: [ AGFW][872412928]{1:51811:6817} ora.grac4.db 1 1 state details has changed from: Open to: Instance Shutdown
2014-04-25 13:24:40.570: [ AGFW][872412928]{1:51811:6817} Agent sending last reply for: RESOURCE_STOP[ora.grac4.db 1 1] ID 4099:36585
2014-04-25 13:24:40.572: [ AGFW][853501696]{1:51811:6817} Agent has no resources to be monitored, Shutting down ..
2014-04-25 13:24:40.572: [ AGFW][853501696]{1:51811:6817} Agent sending message to PE: AGENT_SHUTDOWN_REQUEST[Proxy] ID 20486:2796
2014-04-25 13:24:40.577: [ AGFW][872412928]{1:51811:6817} Agent is shutting down.
2014-04-25 13:24:40.577: [ AGFW][872412928]{1:51811:6817} Agent is exiting with exit code: 1