Now i want write a shell to get the state of weblogic server,and when the Managed Server's state is not ok, after 3 times checking, i will send msg to the system administrator by sms.
BTW, my environment is :
Linux ,Redhat 5.4 64bit
weblogic version: 10.3.3
the count number of Managed server is 4
How can i write the shell ? I am unfamiliar with shell.
Write python code that displays the status. Use the above example. Assume you choose UP and DOWN as your personal interpretation of the weblogic status codes. That means we get either "UP" or "DOWN" from your python code.
Let's call it WLST.py
The shell to do this is simple. First create a file (call it email_addr) that has email/SMS addesses. SMS email address is a phone number with the carrier name:
casll the script WLST.shl
set the script file to execute:
Finally add this to your crontab (use crontab -e )
Save the crontab entry.
This will run the script every minute, every day and with three failures you get email/TEXT.
read the crontab man page because getting a text message every minute may not be very helpful - change the runs to be every 5 minutes if you want.
Hi,
I have a application running on weblogic server. i am getting these errors in logs very frequently. Could you please suggest any solution for this.
-02-09 10:02:32,346 ERROR psn.properties.RemotePropertiesCache - Error occurred while attempting to retrieve property:
... (0 Replies)
I am getting following error during deployment in solaris. when i deploy same war in other machine (non-solaris) it works fine. the stacktrace is
< ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1277738498407> <BEA-149205> <Failed to initialize the... (0 Replies)
Can I get the STATE(instance are RUNNING or not and HEALTH is OK or not) of the weblogic instances(Admin and Managed) running on my unix machine via shell script.
Someone told me that it can be done via "weblogic.Admin GETSTATE"....but it is not working for me(might be I am doing something wrong)... (2 Replies)
Hi All,
I am trying to change the log file to an incremental log file so that I do not needd to restart weblogic everytime the server /tmp directory reach 100% usage. I want to make it an incremental log, just like adm messages.
At the moment, operation process is written to a log file (eg:... (1 Reply)
Hi All,
I am getting confused with the terms below. All I know is an application can be installed on a server. But I see the following terms used in a company. All of them are installed on same Unix box. Could you please help me out in layman terms as to what these exactly means. (PS: I don't... (1 Reply)