Process traffic capture from remote device: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 33: Line 33:
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>
* Processing a local pcap file:
<li>Processing a local pcap file:
 
{| class="wikitable"
./ap_capture_to_remote -f trace.pcap allegro-mm-abcd 8001
| ./ap_capture_to_remote -f trace.pcap allegro-mm-abcd 8001
 
|}
* Live-capture from eth0:
</li>
 
<li>Live-capture from eth0:  
sudo ./ap_capture_to_remote -i eth0 allegro-mm-abcd 8001
{| 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"
   
| sudo setcap cap_net_raw=ep ap_capture_to_remote
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>
* Live-capture from all network devices:
<li>Live-capture from all network devices:
sudo ./ap_capture_to_remote allegro-mm-abcd 1234
{| 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.


=== Alternative tools ===
=== Alternative tools ===
Line 67: Line 58:
Example uses are:
Example uses are:


# Processing a local pcap file:
* Processing a local pcap file:
::{| class="wikitable"
 
  |cat trace.pcap netcat allegro-mm-abcd 1234
cat trace.pcap | netcat allegro-mm-abcd 1234
|}
 
<ol start="2">
* Live-capture via tcpdump:
<li>Live-capture via tcpdump:
{| 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"
340

edits

Navigation menu