Saturday, December 12, 2009

Hi Everyone!!
Here is good option of opmnctl utility you can use to find various good information like memory usage, start time, ports being used.
By default, adopmnctl.sh status gives short status message
[applmgrr12@champ scripts]$ ./adopmnctl.sh status
You are running adopmnctl.sh version 120.4
Checking status of OPMN managed processes...
Processes in Instance: r12test_champ.champ.dunno.com
-------------------+--------------------+---------+---------
ias-component process-type pid status
-------------------+--------------------+---------+---------
OC4J oafm 5693 Alive
OC4J forms 5692 Alive
OC4J oacore 5691 Alive
HTTP_Server HTTP_Server 5694 Alive
ASG ASG N/A Down
-----------------------------------------------------------------
adopmnctl.sh: exiting with status 0adopmnctl.sh: check the logfile /app/inst/apps/r12test_champ/logs/appl/admin/log/adopmnctl.txt for more information ...
To get more information from status control code, change the following line inadopmnctl.sh script from "opmnctl $control_code " to "opmnctl $control_code -l "(autoconfig will override this file. If you want to make this permanent you need to look for autoconfig template file.
if [ $control_code = "status" ]; then
printf "Checking status of OPMN managed processes...\n
"if [ -f "$LOGAP" ]; then
printf "\n`date +%D-%T` :: $program: Checking the status of Oracle Process Manager (OPMN)\n\n" >>
$LOGAP
/app/inst/apps/r12test_champ/ora/10.1.3/opmn/bin/opmnctl $control_code -l 2>&1 tee -a $LOGAP
fi
exit_code=$?;
elif
After changing you will see the below long status message
[applmgrr12@myhost scripts]$ ./adopmnctl.sh status
You are running adopmnctl.sh version 120.4Checking status of OPMN managed processes...
Processes in Instance: r12test_myhost.myhost.mydomain.com
-------------------+--------------------+---------+----------+------------+----------+--------
ias-component process-type pid status uid memused uptime ports
-------------------------------------------------------------------------------------------------
OC4J oafm 5693 Alive 1972203545 148544 0:38:59 jms:24525,ajp:25025,rmi:25525OC4J forms 5692 Alive 1972203544 96212 0:00:25 jms:23525,ajp:22025,rmi:20525OC4J oacore 5691 Alive 1972203543 120000 0:38:59 jms:23025,ajp:21525,rmi:20025HTTP_Server HTTP_Server 5694 Alive 1972203554 8386112 0:38:59 http1:7777,http2:7200ASG ASG N/A Down N/A N/A N/A N/A
adopmnctl.sh: exiting with status 0adopmnctl.sh: check the logfile /app/inst/apps/r12test_myhost/logs/appl/admin/log/adopmnctl.txt for more information ...

0 comments: