As sathyram is saying first get the svcename for the db manager
get dbm cfg | find "SVCENAME"
Now go to the services file at:
c:/winnt/system32/drivers/etc/services
Here in this file, against the SVCENAME you will find the existing port number. The default value is 50000.
Thanks,
jayanta datta
Xansa India
Delhi
----------------------
Enclosed few lines may help you to understand it better
To reserve TCP port 50001 for the service named db2icdb2, append the following line to the services file:
db2icdb2 50001/tcp
Update the database manager configuration file so that DB2 will use the port number associated with the service db2icdb2 for the instance you are working on:
db2 update database manager configuration using svcename db2icdb2
If you choose not to use the services file, simply update svcename with the correct port number:
db2 update database manager configuration using svcename 50001