apc sends an "activation packet" from the client host:
apc -dt destination port_to_watch
For example:
apc -dt www.abc.com 80
To stop monitoring (before it times out)
apc -dt destination port_to_watch -da
As long as apc is running, the capture daemon will continue to capture
packet header information of streams specified by apc. If apc is stopped, the capture daemon will stop capturing in 15-20 minutes.
If apc is restarted within 15 minutes with the same option, the monitoring will not be interrupted.
If another apc is started with different destination host or port, a new monitor
will be generated and a new file will be written by monitord.
More options:
-D [#] debug [level]
-da deactivate given path (with -dt option)
-rid # reqest ID. The default RID is 555. For the same path, once RID
changes, the previous result data file will be closed and
a new data file will be open (created if it does not exist to append).
This is useful when monitoring a same path in differnt sessions.
-tc duration [start time]
Duration specifies how long a path should be monitored, and
start time (from current clock) specifies when monitoring
should be started (start immediately if this field is missing).
-tp # traffic type. 0 for all. 6 for TCP [default], 7 for UDP.
-ut # APC up time in second [default 168s]
-iv # APC refresh interval in second [default 168s]
Following options are used only authentication is permitted:
-res host [port] send result to host at port [default 6789]
-st host [port] monitor traffic from host at port [default 0]