By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,287 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,287 IT Pros & Developers. It's quick & easy.

How to get instance's server port?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
"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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.