Monitor a specific port
Posted on 2003-11-17
I see that netstat can tell me if an IP port is in use and can give me per-protocol traffic, but I need to know if there is any traffic over a specific port.
Specifically, we have an application that keeps port 15032 open all the time. There will be times when we need to unload that app, do some things, the restart the app, but I don't want to stop that app until the port has been idle for several minutes.
If possible, I'd like to use an extant utility whose stdout I can parse for port-specific traffic counts, otherwise it will take me a week or so to write one.
Anyone know of such a utility? Undocumented options to netstat? Something everyone knows about that my pea brain has overlooked in its dotage?