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 > Process Tree

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-04, 11:45
db2db2 db2db2 is offline
Registered User
 
Join Date: Oct 2003
Posts: 11
Process Tree

All,

Is there a process tree command (db2ptree) for AIX ?
I came across an article that explained about db2ptree command for Solaris.

Thanks
Chenni
Reply With Quote
  #2 (permalink)  
Old 03-26-04, 12:06
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Process Tree

I'm not sure if you read this or someother article :
Quote:
Since the ps command on Sun's operating system does not provide the real process name of the DB2 processes (instead ps shows only "db2sysc") a new tool db2ptree was developed.
With db2ptree the DBA is able to see all DB2 processes of one instance with their real names (e.g. db2wdog, db2pfchr etc.). The result is in an easy-to-read tree structure. db2ptree is part of the standard DB2 installation image on Sun. It is located in the sqllib/bin subdirectory.
This explains why IBM has provided db2ptree only for Solaris ... I think you should be able to script one for AIX yourself

Cheers
Sathyaram

Quote:
Originally posted by db2db2
All,

Is there a process tree command (db2ptree) for AIX ?
I came across an article that explained about db2ptree command for Solaris.

Thanks
Chenni
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 03-26-04, 12:16
db2db2 db2db2 is offline
Registered User
 
Join Date: Oct 2003
Posts: 11
Sathya, Thanks for the immediate response and your reply explains why Solaris has db2ptree command. Btw, I don't see the command in ../sqllib/bin directory.

I will develop one soon.

Thanks
Chenni
Reply With Quote
  #4 (permalink)  
Old 03-27-04, 18:59
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Are you on Solaris platform ?

I have used this db2ptree on Solaris

Quote:
Btw, I don't see the command in ../sqllib/bin directory.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 03-27-04, 21:41
db2db2 db2db2 is offline
Registered User
 
Join Date: Oct 2003
Posts: 11
Sathya,

I'm on AIX. I downloaded a perl script pstree from WEB and it works like a charm.

-Chenni

Quote:
Originally posted by sathyaram_s
Are you on Solaris platform ?

I have used this db2ptree on Solaris
Reply With Quote
  #6 (permalink)  
Old 03-29-04, 02:40
RKrick RKrick is offline
Registered User
 
Join Date: Feb 2002
Location: Germany
Posts: 141
Don't you have db2_local_ps on AIX? What db2ptree gives you that db2_local_ps doesn't?
__________________
Rodney Krick
Reply With Quote
  #7 (permalink)  
Old 03-29-04, 15:52
db2db2 db2db2 is offline
Registered User
 
Join Date: Oct 2003
Posts: 11
I completely forgot about db2_local_ps and i never thought it can do the same.
pstree is no different than db2_local_ps.

Thanks for your post.

-Chenni

Quote:
Originally posted by RKrick
Don't you have db2_local_ps on AIX? What db2ptree gives you that db2_local_ps doesn't?
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