Technote (FAQ)
This document applies only to the following language version(s):
English
Question
Why the restart of clusters (HACMP) hangs during starting
the Oracle agent. The other agents are started by the server boot, but
Oracle is started as part of the cluster start (-script). The cluster
hangs, and to prevent this you need to change the OR agent start to use
following line:
( /opt/IBM/ITM/bin/itmcmd agent -o $DB start or 2>&1 | tee -a
$LOGDIR/$LOGFILE 2>&1 ) &
("DB" is the instance)
This way the agents starts up and the cluster continues the startup.
It looks like the agent does not release the control and continues in
the script.
If started from the commandline it releases and returns the prompt, but
not when running in the script.
Cause
When user run command of 'itmcmd agent ...', this command will launch
script install_dir/bin/CandleDBAgent when
it's used to launch Oracle Agent. And at the end of script
CandleDBAgent, CandleDBAgent will launch another script
kddexec.sh like below:
kddexec.sh $DEBUG $Action $servers # not exec so EXIT trap fires
In the script CandleDBAgent and kddexec.sh, following output will
be send to standard console
-bash-3.00$ bin/itmcmd agent -o orcl start or
itmcmd agent : considering servers: orcl.
kddexec: /opt/IBM/ITM already local disk
Collector and Agent started for oracle.
-bash-3.00$ bin/itmcmd agent -o orcl start or
itmcmd agent : considering servers: orcl.
kddexec: /opt/IBM/ITM already local disk
Collector and Agent started for orcl
Answer
Since pipe operator | may cause the hang of agent start and
cluster script can not be changed, then
applying following steps in the agent start up script to avoid the hang.
1) add comment char '#' at the head of line below in file
install_dir/bin/CandleDBAgent
# Err_report info "`nls_replace 'KCI0367I'` $(print $servers)"
2) edit file install_dir/bin/CandleDBAgent to update the line as below:
#kddexec.sh $DEBUG $Action $servers # not exec so EXIT trap fires
kddexec.sh $DEBUG $Action $servers >/dev/null 2>&1
Problem had been resolved in 6.3.1 extended oracle agent code.
Test ITCAM Extended Oracle Agent with following command in AIX.
PIPE will not hang up the execution.
-----------------------------------------------------------
-bash-3.2# ./itmcmd agent -o test start rz | sort
IBM Tivoli Composite Application Manager Extended Agent for Oracle
Database started
Starting IBM Tivoli Composite Application Manager Extended Agent for
Oracle Data
base ...
-bash-3.2# ps -ef|grep krz
root 663626 1 0 Mar 17 - 22:02
/opt/IBM/ITM/aix526/rz/bin/krzagent tivp6blp4_test
root 807066 663626 0 Mar 17 - 3:01 krzstart
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.