If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Script to Verify All Services are UP and Running

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-11, 16:08
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Script to Verify All Services are UP and Running

Hello everyone,

My manager has told me to write a shell script to (Aix 5.3 Db2 9.1.0) :

Verify All Services are UP and Running.

I want to double check if I am missing something.

Services that I will check will be :

db2sysc
db2fenc
db2wdog
db2tcpcm
. . . .

Can someone help me complete the list ; I am feeling short of items.

Actually my manager is not from DB2, so he cannot suggest list of processes to be watched.
Reply With Quote
  #2 (permalink)  
Old 09-26-11, 17:30
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Here's for the long list: The DB2 Process Model

What's the purpose of this "monitoring"?
Reply With Quote
  #3 (permalink)  
Old 09-26-11, 19:03
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Hi,

I have seen that long list, but I think that I need to write for minimum # of processes that will be active in each and every instance.

Purpose of monitoring is to ensure that database is running smooth, and to be alerted as soon as any service goes down.


As far as I know there is a monitoring tool and the team ( dba team ) is checking connectivity only. No other parameters are monitored.

Manager is thinking of enhancing database part of monitoring. So he wants me to come up with a list of processes that should be checked before we can say DB2 is running fine.


This is only for confirming availability.

Regards
Reply With Quote
  #4 (permalink)  
Old 09-26-11, 20:40
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Aside from db2sysc, I don't think it is useful to check all those processes. If you want to verify that the database is functioning OK, then write a script on another server that accesses the database remotely and runs a simple SQL statement that you can verify the output of. This is much more comprehensive than just verifying all the processes are running. You should also verify that the status for all tablespaces and tables are OK.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 09-26-11, 20:56
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
I agree.

But that is already in place.


Does this mean that connect and run a simple query, is enough ?

Regards
Reply With Quote
  #6 (permalink)  
Old 09-26-11, 21:46
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You can also use db2pd to check if the instance is up (and how long it's been up). For example:
db2pd -age | grep -i partition
Reply With Quote
  #7 (permalink)  
Old 09-27-11, 11:02
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On