List Process tied to Port: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
### <tt>'''The socket 0xf1000e0000527808 is being held by proccess 5505230 (rmcd).'''</tt> | ### <tt>'''The socket 0xf1000e0000527808 is being held by proccess 5505230 (rmcd).'''</tt> | ||
## Example. | ## Example. | ||
## | ##: <tt>'''# rmsock f1000e0000527bb8 tcpcb'''</tt> | ||
== Further Reading == | == Further Reading == |
Revision as of 16:32, 28 November 2017
List a Processes tied to a Port
- Determine the tcpcb (TCP Control Block) tied to the port.
- # netstat -Aan -f inet
- The output should be similar to the following.
- Active Internet connections (including servers)
- PCB/ADDR Proto Recv-Q Send-Q Local Address Foreign Address (state)
- f1000e0000527bb8 tcp 0 0 *.* *.* CLOSED
- f1000e00005233b8 tcp4 0 0 *.* *.* CLOSED
- f1000e001380dbb8 tcp4 0 0 *.13 *.* LISTEN
- f1000e0007a133b8 tcp 0 0 *.21 *.* LISTEN
- f1000e0000f28bb8 tcp6 0 0 *.22 *.* LISTEN
- f1000e0000f283b8 tcp4 0 0 *.22 *.* LISTEN
- The first column PCB/ADDR will be used.
- The rmsock command will be used to identify the process associated with the TCPCB.
- # rmsock <PCB/ADDR> tcpcb
- The output will be similar to the following.
- The socket 0xf1000e0000527808 is being held by proccess 5505230 (rmcd).
- Example.
- # rmsock f1000e0000527bb8 tcpcb