monitor interface-vlan-statistics interface vlan

Function

The monitor interface-vlan-statistics interface vlan command monitors statistics about sent and received VLAN packets on a specified interface.

Format

monitor interface-vlan-statistics interface { interface-type interface-number | interface-name } vlan vlan-id [ [ interval interval-value ] [ times { times-value | infinity } ] | [ times { times-value | infinity } ] [ interval interval-value ] ]

Parameters

Parameter Description Value
interface-type

Specifies the type of an interface.

-

interface-number

Specifies the type of an interface.

-

interface-name

Specifies the name of an interface.

-

vlan vlan-id

Specifies a VLAN to which the statistics collection-enabled interface belongs.

The value is an integer ranging from 1 to 4094.

interval interval-value

Specifies the interval at which traffic statistics are collected.

The value is an integer ranging from 2 to 600, in seconds. The default value is 10.

times times-value

Specifies the number of times.

The value is an integer ranging from 1 to 999.

infinity

Indicates that traffic statistics are collected for the infinity number of times. To stop the statistics display, press Ctrl+C.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
vlan read

Usage Guidelines

Usage Scenario

After the monitor interface-vlan-statistics command is run, packet statistics are displayed on a specified interface of a VLAN for the specified number of times at the specified interval.

By default, once the monitor interface-vlan-statistics command is run on an interface, the system displays traffic statistics five times at an interval of 10s. To stop the statistics display, press Ctrl+C.

Example

# Display traffic statistics on Eth-Trunk 1 of VLAN 100 three times at an interval of 2s.
<HUAWEI> monitor interface-vlan-statistics interface Eth-Trunk 1 vlan 100 interval 2 times 3
Display VLAN statistics of the interface at the interval of 2 seconds for up to 3 times. Press Ctrl + C to stop.
  0 seconds left
Times 1
Interface: Eth-Trunk1              VLAN: 100 
-------------------------------------------------------------------------
    Last 5 minutes input rate 0 packets/sec, 0 bytes/sec
    Last 5 minutes output rate 0 packets/sec, 0 bytes/sec
    0 packets input, 0 bytes
    0 packets output, 0 bytes
    Input:0 packets of unicast input
          0 packets of multicast input
          0 packets of broadcast input
          0 packets of unknown-unicast input
   Output:0 packets of unicast output
          0 packets of multicast output
          0 packets of broadcast output
          0 packets of unknown-unicast output

  0 seconds left
Times 2
Interface: Eth-Trunk1              VLAN: 100 
-------------------------------------------------------------------------
    Last 5 minutes input rate 0 packets/sec, 0 bytes/sec
    Last 5 minutes output rate 0 packets/sec, 0 bytes/sec
    0 packets input, 0 bytes
    0 packets output, 0 bytes
    Input:0 packets of unicast input
          0 packets of multicast input
          0 packets of broadcast input
          0 packets of unknown-unicast input
   Output:0 packets of unicast output
          0 packets of multicast output
          0 packets of broadcast output
          0 packets of unknown-unicast output

  0 seconds left
Times 3
Interface: Eth-Trunk1              VLAN: 100 
-------------------------------------------------------------------------
    Last 5 minutes input rate 0 packets/sec, 0 bytes/sec
    Last 5 minutes output rate 0 packets/sec, 0 bytes/sec
    0 packets input, 0 bytes
    0 packets output, 0 bytes
    Input:0 packets of unicast input
          0 packets of multicast input
          0 packets of broadcast input
          0 packets of unknown-unicast input
   Output:0 packets of unicast output
          0 packets of multicast output
          0 packets of broadcast output
          0 packets of unknown-unicast output
Table 1 Description of the monitor interface-vlan-statistics interface vlan command output
Item Description
seconds left

Time remaining before the interval for displaying statistics about traffic on the interface expires , in seconds.

0 packets input

Statistics about packets received on the specified VLAN.

0 packets output

Statistics about packets sent on the specified VLAN.

Times

Number of times when traffic statistics are displayed, which are displayed each time traffic collection starts.

Last 5 minutes input rate

Rate at which the interface received packets in the past 5 minutes.

Last 5 minutes output rate

Rate at which the interface sent packets in the past 5 minutes.

bytes

Number of bytes.

Interface

Interface type and interface number. Statistics about traffic on this interface are displayed.

Input/Output: Unicast Multicast Broadcast unknown-unicast

Number of input/output packets:

Unicast packets.

Multicast packets.

Broadcast packets.

Unknown unicast packets.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >