473,378 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

multiple instance monitoring

How are multiple instances monitored? For example, there are 30
instances running on a AIX BOX running DB2 V8, is ps -ef |grep
"inst[0-2][0-9]" the best way to see if the instance is running, where
instanes are named inst01 thru inst29.
Or is this set up in tools like Health Monitor?

Nov 12 '05 #1
5 2346
You can attach to any instance as long as you have it cataloged, and use
monitor or the control centre...

hi****@gmail.com wrote:
How are multiple instances monitored? For example, there are 30
instances running on a AIX BOX running DB2 V8, is ps -ef |grep
"inst[0-2][0-9]" the best way to see if the instance is running, where
instanes are named inst01 thru inst29.
Or is this set up in tools like Health Monitor?

Nov 12 '05 #2
Let me rephrase:
I want to be able to tell if an instance is down when there are
multiple instances running in the machine. Is there a tool in DB2 UDB
that sends alerts when an instance is down? Or is there a way to easily
tell that an instance is down by looking at something in this case?

hi****@gmail.com wrote:
How are multiple instances monitored? For example, there are 30
instances running on a AIX BOX running DB2 V8, is ps -ef |grep
"inst[0-2][0-9]" the best way to see if the instance is running, where instanes are named inst01 thru inst29.
Or is this set up in tools like Health Monitor?


Nov 12 '05 #3
One way to know the instance is down would be to try to attach to it (or
to take dbm snapshots over an attachment)...

hi****@gmail.com wrote:
Let me rephrase:
I want to be able to tell if an instance is down when there are
multiple instances running in the machine. Is there a tool in DB2 UDB
that sends alerts when an instance is down? Or is there a way to easily
tell that an instance is down by looking at something in this case?

hi****@gmail.com wrote:
How are multiple instances monitored? For example, there are 30
instances running on a AIX BOX running DB2 V8, is ps -ef |grep
"inst[0-2][0-9]" the best way to see if the instance is running,


where
instanes are named inst01 thru inst29.
Or is this set up in tools like Health Monitor?


Nov 12 '05 #4
this is how we used to do this:

1) create a single "manager" instance on one of the less productivity
oriented machine.
2) Catalog a database from each of the instances in question at the
"manager" instance.
3) Create a shell/SQL script, the objective of which was to go and
connect to each database individually using the relevant credentials.
4)Apart from connecting to the individual databases, it was also
required to run a very small predefined ad-hoc query on all the
databases.
5) All the above task was logged in a log file, and the logfile was
monitored on a regular basis. We used crontab to schedule this
shell/SQL script.
6) Apart from the above mentioned script, we also used customized shell
scripts to notify us immediately, if and when a database went down
(deactivated). The script would then execute some steps to re-activate
that database.

I believe, most of this functionality can be achieved through IBM's GUI
utilities or maybe through some other 3rd party tools like DBArtisan or
so. I don't know much about them. However, above scheme worked for us,
and I should say worked well. :-)

regards,
dotyet

Nov 12 '05 #5
Looks to me like the Health Monitor has an indicator for instance
operational state:

db2.db2_op_status - Instance Operational State health indicator

The state can be one of the following: Active, Quiesce pending,
Quiesced, or Down.

See the System Monitor Guide and Reference.

Also, you can use Tivoli to monitor instances.

Larry Edelstein

dotyet wrote:
this is how we used to do this:

1) create a single "manager" instance on one of the less productivity
oriented machine.
2) Catalog a database from each of the instances in question at the
"manager" instance.
3) Create a shell/SQL script, the objective of which was to go and
connect to each database individually using the relevant credentials.
4)Apart from connecting to the individual databases, it was also
required to run a very small predefined ad-hoc query on all the
databases.
5) All the above task was logged in a log file, and the logfile was
monitored on a regular basis. We used crontab to schedule this
shell/SQL script.
6) Apart from the above mentioned script, we also used customized shell
scripts to notify us immediately, if and when a database went down
(deactivated). The script would then execute some steps to re-activate
that database.

I believe, most of this functionality can be achieved through IBM's GUI
utilities or maybe through some other 3rd party tools like DBArtisan or
so. I don't know much about them. However, above scheme worked for us,
and I should say worked well. :-)

regards,
dotyet


Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: omlet | last post by:
omlet v4) wrote in message Dear DBA, You are cordially invited to test and review our windows native and 100% pure Java Oracle 9i/8i Monitoring Application (OMLET). OMLET is the Ultimate Visual...
11
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings...
3
by: mairhtin o'feannag | last post by:
Hello, Since DB2 Cluster Certification Guide is out of print and I cannot seem to get my hands on a copy, is there a publication that would give me a "cookbook" approach to setting up a cluster...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
0
by: Merrion | last post by:
I have a service that runs on each print server in a network and it registers a well known service type which is in charge of monitoring various aspects of that server. These are wrapped up in a...
4
by: Jerry Spence1 | last post by:
I am starting a number of threads as follows: For n = 1 To 10 Dim t As New Thread(New ThreadStart(MyProcedure)) t.Name = "Thread " & Trim(Str(n)) t.Start() Next n I have a timer that,...
3
by: Michel | last post by:
Hi, I wrote an app in .Net and I whant only 1 instance of this app open for the user; the user open my app, do some works and try to open another instance of my app, I whant to show a message to...
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
1
by: Ritusriv | last post by:
Hi, I am trying to write a small script to spwan a perl script with some specific args to perl script. #! /usr/bin/expect -f set args " -abstract=\"AutoEM : FIX MONITORING TAR TO OHSOAP\" ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.