
Targa Systems Division
S4 Ethernet NAS DTS Installation Guide
32003272-1 Rev 5
netcapture – control parameters and filter commands
ETHx_NC_BASENAME Change capture file basename (runY.pcapZ is
unchanged)
eg: ETH0_NC_BASENAME="netcap-eth0-"
ETHx_NC_DEST
Specify “destination” directory within DTD where
netcapture was found … can be a different partition or
directory to store the capture files
eg: ETH0_NC_DEST= "part2/capture"
ETHx_NC_FILTER
Filter expression.
eg: ETH0_NC_FILTER="multicast and not broadcast"
eg: ETH1_NC_FILTER="host 192.168.3.231 and port ftp"
See manpage for pcap-filter that is part of the tcpdump
documentation.
ETHx_NC_ARGS
Arguments to tcpdump.
eg: ETH1_NC_ARGS="-n -C 10 -ttttt"
See manpage for tcpdump for all command line options.
ETHx_NC_OVERWRITE Overwrites previous "Runs". Capture always to -run1
An example netcapture.cfg file is also available on the DTU under
/targa/doc/netcapture.cfg
# Example netcapture.cfg file
ETH0_NC_ENABLE=yes
ETH0_NC_BASENAME="netcap-eth0-"
ETH0_NC_DEST="part1/capture"
ETH0_NC_FILTER="multicast and not broadcast"
ETH0_NC_OVERWRITE=yes
ETH1_NC_ENABLE=yes
ETH1_NC_BASENAME="mync-eth1-"
ETH1_NC_ARGS="-n -C 10 -ttttt"
ETH1_NC_FILTER="host 192.168.3.231 and port ftp"
50