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 > check if db2 is listening to the connection port

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-19-11, 10:26
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
check if db2 is listening to the connection port

Hi everybody,

Is there any provision to find if db2 is listening to a port for connections on a remote server via client connection.

I know and am used to check this at system level. But for current requirement, I have only client, I know it is connected, but for documentation purpose I want to know if there is any provision to find by querying catalog tables or DB2 registery.

Thanks
DBFinder
Reply With Quote
  #2 (permalink)  
Old 12-19-11, 10:48
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
Something like
select value from sysibmadm.DBMCFG where name='svcename'
?
Reply With Quote
  #3 (permalink)  
Old 12-19-11, 10:58
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
thanks

this is good.
Reply With Quote
  #4 (permalink)  
Old 12-19-11, 11:14
wolaos123 wolaos123 is offline
Registered User
 
Join Date: Nov 2011
Location: Shen Zhen,China
Posts: 37
The remote connection listeners are
enabled when the DB2COMM registry variable and the appropriate Database Manager Configuration
parameters are set
Reply With Quote
  #5 (permalink)  
Old 12-19-11, 11:15
wolaos123 wolaos123 is offline
Registered User
 
Join Date: Nov 2011
Location: Shen Zhen,China
Posts: 37
db2 list node directory also will tell u which port is the remote listening on
Reply With Quote
  #6 (permalink)  
Old 12-19-11, 20:32
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
wolaos123,

In case I do not have permissions to anything except the db2 client, I am looking for a way to tell on which port db2 is listening for incoming connections. DB2 is on production server, but client is on other machine. I am connected to the server already.

nvk@vhv has got my point.

Code:
NAME         VALUE
------------ ------------
svcename     db2fasp
From this I can tell that the server that I am connected to is listening to this service name. Now, I am unable to convert this to numeric port number because /etc/services is on remote server where I do not have access.

Anybody having any Idea ??

Purpose is to tell which port number is on the remote server that DB2 is listening to.

Regards
DBFinder
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