Bash script for listing running WebLogic Servers and Node Managers

If you have many domains running on the same Linux server it can be difficult to see what is running and what is not. I have created a Bash script that lists all WebLogic Server and Node Manager processes.
I have tested it on Red Hat 5 and 6.
Here is an example output.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
##############################################################################
# WebLogic Servers
# <owner>  <domain>  <server>  <pid>  <ports>
##############################################################################
prism01ora  prism01osb  AdminServer        23738  7011
prism01ora  prism01osb  prism01osbServer1  24018  7890,8011
prism01ora  prism01por  AdminServer        2943   7021
prism01ora  prism01por  prism01porServer1  28665  8021
prism01ora  prism01wls  AdminServer        22510  7001
prism01ora  prism01wls  prism01wlsServer1  22362  8001
prism02ora  prism02osb  AdminServer        14114  null
prism02ora  prism02osb  prism02osbServer1  14029  null
prism02ora  prism02wls  AdminServer        13396  null
prism02ora  prism02wls  prism02wlsServer1  16414  null
 
##############################################################################
# Node Managers
# <owner>  <mw_home>  <pid>  <port>
##############################################################################
prism01ora  /prism01/app/oracle/product/osb111  2473   5557
prism01ora  /prism01/app/oracle/product/por103  2552   5558
prism01ora  /prism01/app/oracle/product/wls103  2519   5556
prism02ora  /prism02/app/oracle/product/osb111  10430  null
prism02ora  /prism02/app/oracle/product/wls103  12603  null
The reason some ports are listed as null is because the script was run by the prism01ora Linux user, and some of the processes is owned by prism02ora. I use netstat to get the used ports, and it does not allow ordinary users to get information about processes of other users.

Referance: http://theheat.dk/blog/?p=1443



Comments

Popular posts from this blog

RMAN backup Status (Remaining Time and Percentage)

EBS R12.2 Autoconfig Failed. Resolved

Cleaning nodes in EBS databae.