Script to check OBI 10g & 11g services


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Script to check OBI 10g & 11g services
# 8  
Old 07-16-2012
Any update,please??
# 9  
Old 07-16-2012
What do you mean by "distinguishing" ??

All I thought is to count the number of instances either of the 10g or the 11g.
# 10  
Old 07-16-2012
10g has 4 instances,11g also has four..Could you please tell what the logic would be?
# 11  
Old 07-16-2012
Question

Quote:
Originally Posted by Digjoy83
Hello Unix experts,

I am very new to shell scripting.However,I have been asigned a task in Unix-that I need to prepare a script which will check if OBI 10g and OBI 11g services are running or not and to send email if the services are down.In addition to it,I also need to check whether Weblogic 11g is running in it as well.We have four production servers in which these services run.How do I capture these services and how do I run the script from all these four boxes?Any help will be appreciated.


Cheers
DG
@DG: From this question, all I could understand is that you want to check the "OBI 10g and OBI 11g" together. Thus I suggested egrep. And now I am going unclear with what your requirements are!

Smilie Smilie
# 12  
Old 07-16-2012
Hi,

Requirement is -- 1)How to use the egrep fuction you suggested?
2)How to check for failures of both 10g and 11g services..
# 13  
Old 07-16-2012
@DG: See, instead of finding 10g and 11g alone, egrep searches for lines with these contents. For example,

Code:
This is 10g
This is 11g
This is 12g
this is 11g again

is your input, then
Code:
 egrep "10g|11g" input

will give you the below O/P
Code:
This is 10g
This is 11g
this is 11g again

Does this help??
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. IP Networking

What's the difference between Cisco SFP-10G-SR and XFP-10G-MM-SR ?

We're connecting a ASA 10G port with Cisco SFP-10G-SR transceiver to SCE 10G port with XFP-10G-MM-SR, can they connect each other? We also want to know what's the difference between them? (1 Reply)
Discussion started by: Ayaerlee
1 Replies

2. Shell Programming and Scripting

Script to Start services based on dependent services on other AIX machine

Hi, I just started working on a script. After my research, i found a command which can help me: AIM: To build a script which starts the services (Services 1) on server 1 automatically whenever its down. And it has a dependency on other service (Service 2) on Server 2. So my script has to... (4 Replies)
Discussion started by: draghun9
4 Replies

3. Solaris

need help in oracle upgrade from 10g to 11g

Hi , situation has come where in i want to upgrade my database from 10g to 11g ,my code heavily depends on Pro*C , i just want to know if i upgrade my DB from 10g to 11g , will there be any changes in my pro*c compiler ..? if so then wat are the prerequisites i need to check ..? thanks ... (2 Replies)
Discussion started by: senkerth
2 Replies

4. Shell Programming and Scripting

Script to Check & Edit Content of a file (Addition of comma in each lines of code)

Hi all, I need to write an automated bash shell script which performs such operations: 1. Grep the header of everyline with the initial of "T" in "FILE_A" 2. Perform a for loop, Count the numbers of comma in the line of code, if (no. of comma < 17) ADD the comma until 17; ... (2 Replies)
Discussion started by: big_nutz
2 Replies

5. AIX

how to check status of various services and port?

How can i check which service is activated on my AIX Box? how one can check particular port is open or not (like ftp/telnet port)? I dont have admin rights (1 Reply)
Discussion started by: ashish4422
1 Replies

6. UNIX for Dummies Questions & Answers

Looking for administration tool to check if services are running

Hi! We are having problems with our unix servers (SunOS 5.9) that services for some of our applications are continuously going down. (this is more due to the applications installed than the UNIX OS). What I am looking for is some kind of administrative tool where I can set what service to scan... (1 Reply)
Discussion started by: erinor
1 Replies
Login or Register to Ask a Question