547
edits
No edit summary |
No edit summary |
||
Line 29: | Line 29: | ||
=== Example uses === | |||
The capturing tool can be downloaded from the '''Remote packets''' page in the '''Generic''' section. The tool allows to capture packets from any or an specific network device, and also to stream a file to the Allegro Network Manager: | The capturing tool can be downloaded from the '''Remote packets''' page in the '''Generic''' section. The tool allows to capture packets from any or an specific network device, and also to stream a file to the Allegro Network Manager: | ||
<ol> | |||
<li>Processing a local pcap file: | |||
{| class="wikitable" | {| class="wikitable" | ||
| ./ap_capture_to_remote -f trace.pcap allegro-mm-abcd 8001 | |||
|} | |} | ||
</li> | |||
<li>Live-capture from eth0: | |||
{| class="wikitable" | |||
{| class="wikitable | | sudo ./ap_capture_to_remote -i eth0 allegro-mm-abcd 8001 | ||
|} | |} | ||
or permit access to network interfaces only instead of full root permissions: | or permit access to network interfaces only instead of full root permissions: | ||
{| class="wikitable" | {| class="wikitable" | ||
| sudo setcap cap_net_raw=ep ap_capture_to_remote | |||
./ap_capture_to_remote -i eth0 allegro-mm-abcd 8001 | ./ap_capture_to_remote -i eth0 allegro-mm-abcd 8001 | ||
|} | |} | ||
</li> | |||
<li>Live-capture from all network devices: | |||
{| class="wikitable" | {| class="wikitable" | ||
| sudo ./ap_capture_to_remote allegro-mm-abcd 1234 | |||
|} | |} | ||
</li> | |||
</ol> | |||
In all examples, host and port number must be set according to the actual Allegro Network Multimeter device and the configured port number. | In all examples, host and port number must be set according to the actual Allegro Network Multimeter device and the configured port number. | ||
Line 64: | Line 60: | ||
=== Alternative tools === | |||
The Allegro Network Multimeter also accepts plain pcap files on the configured port. | The Allegro Network Multimeter also accepts plain pcap files on the configured port. | ||
Line 71: | Line 67: | ||
Example uses are: | Example uses are: | ||
# Processing a local pcap file: | |||
::{| class="wikitable" | |||
{| class="wikitable" | |||
|cat trace.pcap ‖ netcat allegro-mm-abcd 1234 | |cat trace.pcap ‖ netcat allegro-mm-abcd 1234 | ||
|} | |} | ||
<ol start="2"> | |||
<li>Live-capture via tcpdump: | |||
{| class="wikitable" | {| class="wikitable" | ||
| sudo tcpdump -i eth0 -s 0 -U -w /dev/stdout ‖ netcat allegro-mm-abcd 1234 | | sudo tcpdump -i eth0 -s 0 -U -w /dev/stdout ‖ netcat allegro-mm-abcd 1234 | ||
|} | |} | ||
</li> | |||
</ol> | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| [[File:Process traffic capture from remote device1.png|1000px|none]] | | [[File:Process traffic capture from remote device1.png|1000px|none]] | ||
|} | |} |
edits