Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 10th, 2006, 04:05 AM
Mockey Chen
Guest
 
Posts: n/a
Default 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: mockey.chen@gmail.com
  #2  
Old March 10th, 2006, 04:25 AM
Mark A
Guest
 
Posts: n/a
Default Re: How to get instance's server port?

"Mockey Chen" <mockey.chen@google.com> wrote in message
news:dump1e$tqq$1@news.yaako.com...[color=blue]
>I want to get my db2 instance's listen port,
> is there any command to retrieve this information?
>
> --
> Regards.
> Mockey Chen
> Email: mockey.chen@gmail.com
>[/color]

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.


  #3  
Old March 10th, 2006, 11:15 AM
Manoharan
Guest
 
Posts: n/a
Default Re: How to get instance's server port?

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:[color=blue]
> I want to get my db2 instance's listen port,
> is there any command to retrieve this information?
>
> --
> Regards.
> Mockey Chen
> Email: mockey.chen@gmail.com[/color]

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles