473,385 Members | 1,353 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,385 software developers and data experts.

convert application id which starts with "/"

Hi!
Is there a way to convert application id ( db2 list applications
output) to a readable format?.
Auth Id Application Appl. Application Id DB
# of
Name Handle Name
Agents
-------- -------------- ---------- ------------------------------
-------- -----
VBUILD JDBC4DB2 735 /1061212.3238.00010024001E
VBUILDDB 1
how to convert /1061212.3238.00010024001E to ip address?

Jan 4 '06 #1
4 2377
More convenient is to get the information using sql:

select inbound_comm_address from table(snapshot_appl('YOURDB',-1)) as
t

INBOUND_COMM_ADDRESS
--------------------------------
-
-
192.168.1.3 21508

Read:
http://publib.boulder.ibm.com/infoce...n/r0007089.htm

-- Artur Wronski

Jan 4 '06 #2
I wonder about the " / " in the application id.
Normally, this would be an hexadecimal number, let's say: A
So:
/1061212.3238.00010024001E becomes A1061212.3238.00010024001E

What your are concerned with is the part:A1061212
A1 in hex is 161
06 in hex is 6
12 in hex is 18
12 in hex is 18
So, the IP address of the connection is: 161.6.18.18

Convert each pair of the first 8 digits to give you the IP address.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
<mc******@gmail.com> a écrit dans le message de news:
11*********************@o13g2000cwo.googlegroups.c om...
Hi!
Is there a way to convert application id ( db2 list applications
output) to a readable format?.
Auth Id Application Appl. Application Id DB
# of
Name Handle Name
Agents
-------- -------------- ---------- ------------------------------
-------- -----
VBUILD JDBC4DB2 735 /1061212.3238.00010024001E
VBUILDDB 1
how to convert /1061212.3238.00010024001E to ip address?


Jan 5 '06 #3
Pierre Saint-Jacques wrote:
I wonder about the " / " in the application id.
Normally, this would be an hexadecimal number, let's say: A
So:
/1061212.3238.00010024001E becomes A1061212.3238.00010024001E

What your are concerned with is the part:A1061212
A1 in hex is 161
06 in hex is 6
12 in hex is 18
12 in hex is 18
So, the IP address of the connection is: 161.6.18.18

Convert each pair of the first 8 digits to give you the IP address.
HTH, Pierre.


The first character of the application ID is treated a bit differently due
to DRDA requirements. The digits 0 thru 9 are mapped to the letters 'G' ..
'P'. Where the '/' is coming from, I do not know. It seems to be a bit
odd.

Here is also a description on the encoding of the IP address in the
application ID: http://tinyurl.com/9sjqh

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Jan 5 '06 #4
I think there is a problem in showing application id for certain
connections...
I coundn't convert application id /1061044.3529.000A0008000A
properly. But the corresponding ip address from snapshot is
106.104.46.112

Jan 5 '06 #5

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

Similar topics

10
by: Flip | last post by:
I know the int.Parse("123") will result in an int of 123, but what happens with a null? I believe it give a null exception (seems like I get either NullArgumentException or ArgumentNullException...
1
by: Andreas Klemt | last post by:
Hello, I have this session("myNumber") = 888 Dim intNumber As Integer a) intNumber = session("myNumber") b) intNumber = Convert.ToInt32(session("myNumber"))
13
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
4
by: nacho | last post by:
Hello, I'm developing an application using C# as main language, InfoPath as Input for a XML file and a Web Service in c# to deal with the XML file generated by InfoPath and then convert it into...
6
by: Steve4D | last post by:
With an ASP.NET application, I try to run an external program (like EXE, BAT) with a logon of an another user. I use CreateProcessWithLogonW from API "advapi32.dll" . When my ASP.NET application...
27
by: comp.lang.tcl | last post by:
My TCL proc, XML_GET_ALL_ELEMENT_ATTRS, is supposed to convert an XML file into a TCL list as follows: attr1 {val1} attr2 {val2} ... attrN {valN} This is the TCL code that does this: set...
2
by: Ian Boyd | last post by:
We're encountering a situation where we're encountering a deadlock, and someone's been made the deadlock victim. But after that, DB2 refuses to run any SQL, and instead we get the error message: ...
0
by: Velupula | last post by:
To make your ClickOnce application updates mandatory. You can configure your application for updates as outlined in the following steps: 1. Click the Updates button on the Publish pane of the...
0
by: Samuel R. Neff | last post by:
We're migrating our .NET 1.1 web application to .NET 3.5 and during conversion we clicked "Convert to Web Application" on the web project. The results from this conversion were inconsistent. 1. ...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.