Multi-blade Traffic Capture (tcpdump)

Description

Use the "tcpdump" commands in Gaia gClish to capture and show traffic that is sent and received by Security Group Members in the Security Group.

These commands are enhancements to the standard tcpdump utility:

Command

Description

tcpdump -mcap

Saves packets from specified Security Group Members to a capture file.

tcpdump -view

Shows packets from the specified capture file, including the Security Group Member ID.

Note - Use the "g_tcpdump" command in the Expert mode.

Syntax

tcpdump [-b <SGM IDs>] -mcap -w <Output File> [<tcpdump Options>]

tcpdump -view -r <Input File> [<tcpdump Options>]

Note - To stop the capture and save the data to the capture file, press CTRL+C at the prompt.

Parameters

Parameter

Description

-b <SGM IDs>

Applies to Security Group Members as specified by the <SGM IDs>.

<SGM IDs> can be:

  • No <SGM IDs> specified, or all

    Applies to all Security Group Members and all Maestro Sites

  • One Security Group Member (for example, 1_1)

-w <Output File>

Saves the captured packets at the specified path in a file with the specified the name.

This output file contains captured packets from all specified Security Group Members.

In the same directory, the command saves additional output files for each Security Group Member.

The names of these additional files are: <SGM ID>_<Specified Name of Output File>

Example:

  • The specified full path is:

    /tmp/capture.cap

  • The additional capture files are:

    /tmp/1_1_capture.cap

    /tmp/1_2_capture.cap

    /tmp/1_3_capture.cap

    and so on

-r <Input File>

Reads the captured packets (in the tcpdump format) from the specified path from a file with the specified the name.

<tcpdump Options>

Standard tcpdump parameters.

See the tcpdump manual page - https://linux.die.net/man/8/tcpdump.

Examples