Monitoring Traffic (asg_ifconfig)

Description

The "asg_ifconfig" command in Gaia gClish or the Expert mode collects traffic statistics from all or a specified range of Security Group Members.

The combined output shows the traffic distribution between Security Group Members and their interfaces (calculated during a certain period).

The "asg_ifconfig" command has these modes:

Mode

Instructions

Native

This is the default setting.

When you do not specify the "analyze" or "banalyze" option in the syntax, the command behaves almost in the same as the native Linux "ifconfig" command.

However, the output shows statistics for all interfaces on all Security Group Members, and for interfaces on the local Security Group Member.

Analyze

Shows accumulated traffic information and traffic distribution between Security Group Members.

Banalyze

Shows accumulated traffic information and traffic distribution between interfaces.

Notes:

  • The parameters "analyze" and "banalyze" are mutually exclusive.

    You cannot specify them in the same command.

  • If you run this command in the context of a Virtual System, you can only see the output that applies to that context.

Syntax

asg_ifconfig -h

asg_ifconfig [-b <SGM IDs>] [<Name of Interface>] [analyze [-d <Delay>] [-a] [-v]]

asg_ifconfig [-b <SGM IDs>] [<Name of Interface>] [banalyze [-d <Delay>] [-a] [-v] [-rb] [-rd] [-rp] [-tb] [-td] [-tp]]

Parameters

Parameter

Description

-h

Shows the built-in help.

-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)

<Name of Interface>

Specifies the name of the interface.

analyze

Shows accumulated traffic information and traffic distribution between the Security Group Members.

Use the "-a", "-v", and "-d <Delay>" parameters to show traffic distribution between interfaces.

banalyze

Shows accumulated traffic information and traffic distribution between the interfaces.

Use the "-a", "-v", and "-d <Delay>" parameters to show traffic distribution between interfaces.

By default, the traffic distribution table is not sorted.

You can use these parameters to sort the traffic distribution table:

  • -rb - Sort the output by the number of received (RX) bytes

  • -rd - Sort the output by the number of received (RX) dropped packets

  • -rp - Sort the output by the number of received (RX) packets

  • -tb - Sort the output by the number of transmitted (TX) bytes

  • -td - Sort the output by the number of transmitted (TX) dropped packets

  • -tp - Sort the output by the number of transmitted (TX) packets

For example, if you sort with the "-rb" option, the higher values appear at the top of the "RX bytes" column:

SGM ID  RX packets   RX bytes   RX dropped
1_03                   70%
1_02                   20%
1_01                   10%

-d <Delay>

Delay, in seconds, between data samples.

Default: 5 seconds.

-a

Shows total traffic volume.

By default (without "-a"), the output shows the average traffic volume per second.

-v

Verbose mode.

Shows detailed information of each interface and the accumulated traffic information

Examples