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 > How to check the client ip address

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-05, 04:45
wongpcl wongpcl is offline
Registered User
 
Join Date: Sep 2002
Posts: 29
How to check the client ip address

Hi,

We're using DB2 V8 on AIX platform. Some DB2 windows clients connect to this DB2 Server through TCP/IP.

I heard that I can check the ip address of the DB2 client from the LIST APPLICATION output, but not sure how to check it.

Here is an example of the LIST APPLICATION output, then what is the ip address of the client?

DB2ICA java 112 GA1A3F8C.A79D.05D2B4181012 TESTDB 1

Thanks and regards,
Reply With Quote
  #2 (permalink)  
Old 02-25-05, 04:57
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Group two by two and convert from hexa to decimal:
GA1A3F8C
GA=?????? G - is little bit strange. Hexa numbers are from 1 to F. G isn't good?
1A=26
A3=163
8C=140
Reply With Quote
  #3 (permalink)  
Old 02-25-05, 05:05
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
in v8, you can do
db2 "select INBOUND_COMM_ADDRESS from table(SNAPSHOT_APPL('',-1)) as x"
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 02-25-05, 12:28
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Quote:
Originally Posted by grofaty
Group two by two and convert from hexa to decimal:
GA1A3F8C
GA=?????? G - is little bit strange. Hexa numbers are from 1 to F. G isn't good?
1A=26
A3=163
8C=140
With a DRDA connection, you have to translate the first character of the hex IP address. All the other hex numbers are OK.

G = 0
H = 1
I = 2
J = 3
etc
__________________
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 02-28-05, 01:48
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Marus_A,
Thanks for tip about DRDA connections.
Grofaty
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