Hi all, i am trying to use CLUSTERWARE with ACTION SCRIPTS for managing a third-party application.
Unfortunately, i get errors, and from the log i see some strange message about malfunction of ACTION SCRIPTS (reported below).
The ACTION SCRIPT is a shell, operating in AIX 6.1 environment, copied from the ORACLE CLUSTERWARE manual, and going ok when i launch it directly.
Moreover, i don't understand the manual "Oracle® Clusterware Administration and Deployment Guide 11g Release 2 (11.2)" in "Building an Agent" section, in which it describes the steps required: while the steps 1 and 2 have been executed, i have no idea of the meaning of step3:
"3. Collect all the parameters needed by the entry points and define a new resource
type. Set the AGENT_FILENAME attribute to the absolute path of the newly built
executable"
Please, any idea or definition example?
Thanks
Marco
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2010-06-09 11:53:57.944: [CLSFRAME][1] New Framework state: 2
2010-06-09 11:53:57.944: [CLSFRAME][1] M2M is starting...
2010-06-09 11:53:57.955: [ CRSCOMM][1] Ipc: Starting send thread
2010-06-09 11:53:57.956: [ CRSCOMM][515] Ipc: sendWork thread started.
2010-06-09 11:53:57.957: [ CRSCOMM][772] IpcC: IPC Client thread started listening
2010-06-09 11:53:57.958: [ CRSCOMM][772] IpcC: Received member number of 57
2010-06-09 11:53:57.958: [CLSFRAME][1] New IPC Member:
Relative:CRSD:cdemdb01
2010-06-09 11:53:57.959: [CLSFRAME][1] New process connected to us ID:
Relative Info:CRSD:cdemdb01
2010-06-09 11:53:57.959: [CLSFRAME][1] Starting thread model named: MultiThread
2010-06-09 11:53:57.960: [CLSFRAME][1] Starting thread model named: SingleThread
2010-06-09 11:53:57.960: [CLSFRAME][1] New Framework state: 3
2010-06-09 11:53:57.960: [ AGFW][1] Agent Framework started successfully
2010-06-09 11:53:57.961: [ AGFW][2057] Agfw engine module has enabled...
2010-06-09 11:53:57.961: [CLSFRAME][2057] Module Enabling is complete
2010-06-09 11:53:57.961: [CLSFRAME][2057] New Framework state: 6
2010-06-09 11:53:57.963: [ AGFW][2057] Agent is started with userid: oragrp , expected user: oragrp
2010-06-09 11:53:57.963: [ AGFW][2057] Agent sending message to PE: AGENT_HANDSHAKE[Proxy] ID 20484:14
2010-06-09 11:53:57.977: [ AGFW][2057] Agent received the message: RESTYPE_ADD[cluster_resource] ID 8196:817954
2010-06-09 11:53:57.977: [ AGFW][2057] AGFW assuming START entry point defined in script.
2010-06-09 11:53:57.978: [ AGFW][2057] AGFW assuming STOP entry point defined in script.
2010-06-09 11:53:57.978: [ AGFW][2057] AGFW assuming CHECK entry point defined in script.
2010-06-09 11:53:57.978: [ AGFW][2057] AGFW assuming CLEAN entry point defined in script.
2010-06-09 11:53:57.978: [ AGFW][2057] Added new restype: cluster_resource
2010-06-09 11:53:57.979: [ AGFW][2057] Agent sending last reply for: RESTYPE_ADD[cluster_resource] ID 8196:817954
2010-06-09 11:53:58.008: [ AGFW][2057] Agent received the message: RESTYPE_ADD[local_resource] ID 8196:817956
2010-06-09 11:53:58.009: [ AGFW][2057] Agent does not have the type: local_resource
2010-06-09 11:53:58.009: [ AGFW][2057] Agent do not have any action entries defined for type: local_resource
2010-06-09 11:53:58.009: [ AGFW][2057] Could not find the action entry: START
2010-06-09 11:53:58.010: [ AGFW][2057] AGFW assuming START entry point defined in script.
2010-06-09 11:53:58.010: [ AGFW][2057] Could not find the action entry: STOP
2010-06-09 11:53:58.010: [ AGFW][2057] AGFW assuming STOP entry point defined in script.
2010-06-09 11:53:58.010: [ AGFW][2057] Could not find the action entry: CHECK
2010-06-09 11:53:58.010: [ AGFW][2057] AGFW assuming CHECK entry point defined in script.
2010-06-09 11:53:58.010: [ AGFW][2057] Could not find the action entry: CLEAN
2010-06-09 11:53:58.010: [ AGFW][2057] AGFW assuming CLEAN entry point defined in script.
2010-06-09 11:53:58.010: [ AGFW][2057] Added new restype: local_resource
2010-06-09 11:53:58.011: [ AGFW][2057] Agent sending last reply for: RESTYPE_ADD[local_resource] ID 8196:817956
2010-06-09 11:53:58.018: [ AGFW][2057] Agent received the message: RESTYPE_ADD[ora.cluster_resource.type] ID 8196:817958
2010-06-09 11:53:58.018: [ AGFW][2057] Agent does not have the type: ora.cluster_resource.type
2010-06-09 11:53:58.018: [ AGFW][2057] Agent do not have any action entries defined for type: ora.cluster_resource.type
2010-06-09 11:53:58.019: [ AGFW][2057] Could not find the action entry: START
2010-06-09 11:53:58.019: [ AGFW][2057] AGFW assuming START entry point defined in script.
2010-06-09 11:53:58.019: [ AGFW][2057] Could not find the action entry: STOP
2010-06-09 11:53:58.019: [ AGFW][2057] AGFW assuming STOP entry point defined in script.
2010-06-09 11:53:58.019: [ AGFW][2057] Could not find the action entry: CHECK
2010-06-09 11:53:58.019: [ AGFW][2057] AGFW assuming CHECK entry point defined in script.
2010-06-09 11:53:58.019: [ AGFW][2057] Could not find the action entry: CLEAN
2010-06-09 11:53:58.019: [ AGFW][2057] AGFW assuming CLEAN entry point defined in script.
2010-06-09 11:53:58.019: [ AGFW][2057] Added new restype: ora.cluster_resource.type
2010-06-09 11:53:58.020: [ AGFW][2057] Agent sending last reply for: RESTYPE_ADD[ora.cluster_resource.type] ID 8196:817958
2010-06-09 11:53:58.028: [ AGFW][2057] Agent received the message: RESTYPE_ADD[ora.local_resource.type] ID 8196:817960
2010-06-09 11:53:58.028: [ AGFW][2057] Agent does not have the type: ora.local_resource.type
2010-06-09 11:53:58.029: [ AGFW][2057] Agent do not have any action entries defined for type: ora.local_resource.type
2010-06-09 11:53:58.029: [ AGFW][2057] Could not find the action entry: START
2010-06-09 11:53:58.029: [ AGFW][2057] AGFW assuming START entry point defined in script.
2010-06-09 11:53:58.029: [ AGFW][2057] Could not find the action entry: STOP
2010-06-09 11:53:58.029: [ AGFW][2057] AGFW assuming STOP entry point defined in script.
2010-06-09 11:53:58.029: [ AGFW][2057] Could not find the action entry: CHECK
2010-06-09 11:53:58.029: [ AGFW][2057] AGFW assuming CHECK entry point defined in script.
2010-06-09 11:53:58.029: [ AGFW][2057] Could not find the action entry: CLEAN
2010-06-09 11:53:58.030: [ AGFW][2057] AGFW assuming CLEAN entry point defined in script.
2010-06-09 11:53:58.030: [ AGFW][2057] Added new restype: ora.local_resource.type
2010-06-09 11:53:58.030: [ AGFW][2057] Agent sending last reply for: RESTYPE_ADD[ora.local_resource.type] ID 8196:817960
2010-06-09 11:53:58.038: [ AGFW][2057] Agent received the message: RESTYPE_ADD[ora.oc4j.type] ID 8196:817962
2010-06-09 11:53:58.039: [ AGFW][2057] Agent does not have the type: ora.oc4j.type
2010-06-09 11:53:58.039: [ AGFW][2057] Agent do not have any action entries defined for type: ora.oc4j.type
2010-06-09 11:53:58.039: [ AGFW][2057] Could not find the action entry: START
2010-06-09 11:53:58.039: [ AGFW][2057] AGFW assuming START entry point defined in script.
2010-06-09 11:53:58.039: [ AGFW][2057] Could not find the action entry: STOP
2010-06-09 11:53:58.039: [ AGFW][2057] AGFW assuming STOP entry point defined in script.
2010-06-09 11:53:58.040: [ AGFW][2057] Could not find the action entry: CHECK
2010-06-09 11:53:58.040: [ AGFW][2057] AGFW assuming CHECK entry point defined in script.
2010-06-09 11:53:58.040: [ AGFW][2057] Could not find the action entry: CLEAN
2010-06-09 11:53:58.040: [ AGFW][2057] AGFW assuming CLEAN entry point defined in script.
2010-06-09 11:53:58.040: [ AGFW][2057] Added new restype: ora.oc4j.type
2010-06-09 11:53:58.041: [ AGFW][2057] Agent sending last reply for: RESTYPE_ADD[ora.oc4j.type] ID 8196:817962
2010-06-09 11:53:58.047: [ AGFW][2057] Agent received the message: RESOURCE_ADD[appBeta48 1 1] ID 4356:817964
2010-06-09 11:53:58.048: [ AGFW][2057] Added new resource: appBeta48 1 1 to the agfw
2010-06-09 11:53:58.050: [ AGFW][2057] Agent sending last reply for: RESOURCE_ADD[appBeta48 1 1] ID 4356:817964
2010-06-09 11:53:58.052: [ AGFW][2057] Agent received the message: RESOURCE_CLEAN[appBeta48 1 1] ID 4100:817965
2010-06-09 11:53:58.052: [ AGFW][2057] Preparing CLEAN command for: appBeta48 1 1
2010-06-09 11:53:58.052: [ AGFW][2057] appBeta48 1 1 state changed from: UNKNOWN to: CLEANING
2010-06-09 11:53:58.054: [CRSTIMER][2314] Timer Thread Starting.
2010-06-09 11:53:58.054: [ AGFW][1543] Executing command: clean for resource: appBeta48 1 1
2010-06-09 11:53:58.055: [ AGFW][1543] Entering script entry point...
2010-06-09 11:53:58.055: [appBeta48][1543] [clean] Executing action script: /dataALL/beta48/Agent/bin/ASBeta48.scr[clean]
2010-06-09 11:53:58.118: [ *AGFW][1543] Command: clean for resource: appBeta48 1 1 completed with invalid status: 209*2010-06-09 11:53:58.119: [ AGFW][1543] Executing command: check for resource: appBeta48 1 1
2010-06-09 11:53:58.120: [ AGFW][2057] Agent sending reply for: RESOURCE_CLEAN[appBeta48 1 1] ID 4100:817965
2010-06-09 11:53:58.120: [ AGFW][1543] Entering script entry point...
2010-06-09 11:53:58.120: [appBeta48][1543] [check] Executing action script: /dataALL/beta48/Agent/bin/ASBeta48.scr[check]
2010-06-09 11:53:58.177: [ *AGFW][1543] Received unknown resource status code: 209*
2010-06-09 11:53:58.178: [ AGFW][1543] check for resource: appBeta48 1 1 completed with status: UNKNOWN
2010-06-09 11:53:58.327: [ AGFW][2057] appBeta48 1 1 state changed from: CLEANING to: UNKNOWN
2010-06-09 11:53:58.327: [ AGFW][2057] Agent sending last reply for: RESOURCE_CLEAN[appBeta48 1 1] ID 4100:817965
2010-06-09 11:53:58.327: [ AGFW][2057] Agent has no resources to be monitored.Sending suicide request.
2010-06-09 11:53:58.327: [ AGFW][2057] Agent sending message to PE: AGENT_SUICIDE[Proxy] ID 20486:42
2010-06-09 11:53:59.332: [ AGFW][2057] Agent is commiting suicide.
2010-06-09 11:53:59.332: [ USRTHRD][2057] Script agent is exiting..
2010-06-09 11:53:59.332: [ AGFW][2057] Agent is exiting with exit code: 1
2010-06-09 11:49:49.292: [ AGFW][1543] check for resource: appBeta48 1 1 completed with status: UNKNOWN
2010-06-09 11:49:49.293: [ AGFW][2057] appBeta48 1 1 state changed from: CLEANING to: UNKNOWN
2010-06-09 11:49:49.293: [ AGFW][2057] Agent sending last reply for: RESOURCE_CLEAN[appBeta48 1 1] ID 4100:817282
2010-06-09 11:49:49.294: [ AGFW][2057] Agent has no resources to be monitored.Sending suicide request.
2010-06-09 11:49:49.294: [ AGFW][2057] Agent sending message to PE: AGENT_SUICIDE[Proxy] ID 20486:42
2010-06-09 11:49:50.447: [ AGFW][2057] Agent is commiting suicide.
2010-06-09 11:49:50.448: [ USRTHRD][2057] Script agent is exiting..