473,503 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get instance's server port?

I want to get my db2 instance's listen port,
is there any command to retrieve this information?

--
Regards.
Mockey Chen
Email: mo*********@gmail.com
Mar 10 '06 #1
2 24513
"Mockey Chen" <mo*********@google.com> wrote in message
news:du**********@news.yaako.com...
I want to get my db2 instance's listen port,
is there any command to retrieve this information?

--
Regards.
Mockey Chen
Email: mo*********@gmail.com


db2 get dbm cfg

Look for SVCENAME. If it is a number, then it is the port number. If it is a
name, look for the name in the /etc/services file (or Windows equivilent if
using Windows). The default is 50000.
Mar 10 '06 #2
Hi,

At the db2cmd prompt/shell enter the following command:

C:\Program Files\IBM\SQLLIB\BIN>db2 list node directory

Node Directory

Number of entries in the directory = 2

Node 1 entry:

Node name = ADMIN
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = adminserver
Service name = 50000

Node 2 entry:

Node name = SERVER
Comment =
Directory entry type = LOCAL
Protocol = TCPIP
Hostname = db2server
Service name = 50000
The above information will be displayed as per your server settings.

Thanks
manoharan

Mockey Chen wrote:
I want to get my db2 instance's listen port,
is there any command to retrieve this information?

--
Regards.
Mockey Chen
Email: mo*********@gmail.com


Mar 10 '06 #3

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

Similar topics

21
15654
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port...
5
4008
by: Jason | last post by:
After a server accepts a client connection on a certain port, a new socket is created on the server on a system managed dynamic port to handle the connection. Please confirm this. If so, how...
5
9921
by: lazydb2dba | last post by:
I would like to know if there is any reason that a connection port is not listening. I've found the following message in my db2diag.log DIA3003E Error encountered in "TCPIP" protocol support....
28
2417
by: (Pete Cresswell) | last post by:
I'd like to dabble in Terminal Server enough to see if I can get some of my MS Access apps to run through it. I've got the MSDN subscription. Is there enough there for a real-world...
2
1779
by: GreyAlien007 | last post by:
I wanted my programs to check to see if SQL server was available...the following is what I cam up with: Public Function SetServerInfo(ByVal serverName As String, ByVal dbName As String, Optional...
10
1409
by: Mike Collins | last post by:
I am trying to connect to a 2003 Server from an ASP.Net page and am getting the following error message. Can someone please help get me started on how to track and fix this error? The code I am...
7
5015
by: jane | last post by:
HI, I have a question... I have a bunch of instances... Is there any way to tell which instance is client instance? Your help is very appreciated. Thanks.
0
832
by: Jacques M | last post by:
Hi I'm using Visual Studio 2005 and I want to deploy a web service on a specific instance of IIS on a server witch have 4 instances of IIS. I found on Microsoft web site a pakage that enables ...
9
2687
by: RvGrah | last post by:
After much hair-pulling, I've finally found the answer to a problem that many are fighting with, difficulty connecting from Sql 2005 Server Management or VS2005 to a remote Sql Server running Sql...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5576
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4670
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1507
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.