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.
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.