• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

checking Weblogic status in Weblogic UNIX/Linux

 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi we have weblogic deployed under Linux Enterprise 5 .

Now i want to write a script that checks if weblogic is running or not

I have found that weblogic uses Java as process .
Can i do this way :my Script File :






Please correct me if i am wrong .I am posting here because there are other process that uses Java as their process status.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why not hit an application URL and check if the server is up ? Netcat can do that for you
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Deepak's suggestion is a good one. We use a commercial product, IP Monitor, to keep tabs on our server's external interfaces. To check the server process, I start the server with a bogus system property (this code is actually in startWebLogic.sh):


This is on a Solaris system, so to get the command line for a process we run:

and then we grep through that output to find "admin_server".
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Deepak Bala wrote:Why not hit an application URL and check if the server is up ? Netcat can do that for you



Hi thanks all for replying ,
First of all sorry as i am not clear in my first post of this Thread.

My requirement is that i am using unix crontab for job scheduling that checks or runs this script for every 30 minutes .
So i need to dynamically check .

Any suggestions .
 
Deepak Bala
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The solutions mentioned here can work with cron tab and make the checks dynamically. What part of the requirement is not met yet ?
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you would start the WLS with a command line like:

java -server -Dweblogic.Name=TheOne -Xms700m -Xmx750......

you can easily grep for "TheOne".

If you have a lot of managed Servers, and you use a naming scheme like: [prefix][number][number] (for example prod10) you could use a script like that (tested on Solaris with WLS 10.3):


 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic