Question & Answer
Question
Attempts to start the Tivoli Storage Manager server fail because the process cannot bind to the appropriate TCP/IP port. How can I identify which process is using this port?
Answer
The 'netstat -Aan' command can be used to display the address of the process control block associated with the port, as seen in the following example:
- # netstat -Aan |grep 51500
Active Internet connections (including servers)
PCB/ADDR Proto Recv-Q Send-Q Local Address Foreign Address (state)
f1000e0001425bb8 tcp4 0 0 *.51500 *.* LISTEN
The 'rmsock' command can then be issued against the process control block address to determine the process id associated with the socket:
- # rmsock f1000e0001425bb8 tcpcb
The socket 0xf1000e0001425808 is being held by process 9896028 (db2sysc).
The output from the 'ps -ef' command confirms that process id 9896028 is associated with the db2sysc process:
- # ps -ef |grep 9896028
tsminst1 9896028 8716348 2 Apr 30 - 424:26 db2sysc 0
If necessary, the process bound to the port can be stopped/killed which should result in the port being released.
[{"Product":{"code":"SSGSG7","label":"Tivoli Storage Manager"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Server","Platform":[{"code":"PF002","label":"AIX"}],"Version":"All Supported Versions","Edition":"","Line of Business":{"code":"LOB26","label":"Storage"}}]
Product Synonym
tsm
Was this topic helpful?
Document Information
More support for:
Tivoli Storage Manager
Software version:
All Supported Versions
Operating system(s):
AIX
Document number:
509063
Modified date:
17 June 2018
UID
swg21672222