Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script

...

  1. Execute the following command.

    Code Block
    tcpdump -Z root -i any -s65535 -G 3600 -vnn udp port 5050 or port 5060 -w /usr/local/voipnow/admin/htdocs/'output_%Y-%m-%d_%H:%M:%S.pcap'


  2. The output of the above command will be a file named: output_2015-02-25_07:37:18.pcap
  3. The capture is automatically rotated according to the values specified in -G parameter. In this example, a new file is created every 3600 seconds; the only limit is the disk space available.
  4. To limit the number of captures produced, insert the -W parameter where the number of the captures can be specified.

    Code Block
    tcpdump -Z root -i any -s65535 -G 3600 -vnn udp port 5050 or port 5060 -W 10 -w /usr/local/voipnow/admin/htdocs/'output_%Y-%m-%d_%H:%M:%S.pcap'


  5. The command above produces 10 captures, as specified by the -W parameter. A new capture is created every 3600 seconds (the -G parameter). After 10 captures, the command will be automatically stopped.

...

Content by Label
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodifiedshowSpacefalse
reversetrue
typepage
cqllabel in ("capture","tcpdump") and space = currentSpace()
labelstcpdump capture

...

hiddentrue

...

Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.