xStack® DES-3528/DES-3552 Series Layer 2 Managed Stackable Fast Ethernet Switch CLI Reference Guide
567
VLAN Counter Commands
The VLAN Counter commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters)
in the following table.
Command Parameters
create vlan_counter [vlan <vlan_name> | vlanid < vidlist >] {ports [<portlist>|all] } [all_frame | broadcast |
multicast | unicast] [packet | byte]
delete vlan_counter [ all | [vlan <vlan_name> | vlanid < vidlist > ] [all | ports <portlist> [all | [all_frame |
broadcast | multicast | unicast][packet | byte]]]]
clear vlan_counter
statistics
[all | [vlan <vlan_name> | vlanid < vidlist >] [all | ports <portlist>]]
show vlan_counter {[vlan <vlan_name> | vlanid < vidlist >]}
show vlan_counter
statistics
{[vlan <vlan_name> | vlanid < vidlist > ] {ports <portlist>}}
Each command is listed, in detail, in the following sections.
create vlan_counter
Purpose
This command creates the control entry for VLAN traffic flow statistics.
Syntax create vlan_counter [vlan <vlan_name> | vlanid < vidlist >] {ports [<portlist>|all] }
[all_frame | broadcast | multicast | unicast] [packet | byte]
Description
This command is used to create control entries to count statistics for specific VLANs, or to
count statistics for specific ports on specific VLANs. The statistics can be either byte count or
packet count. The statistics can be counted for different frame types.
Parameters vlan_name – Specifies the VLAN name.
vidlist – Specifies a list of VLANs by VLAN ID.
ports <portlist> – To enable to count statistics by specific port on specific VLAN.
all_frame – The statistics will be counted for all packets.
broadcast – Specifies to count broadcast packets
multicast – Specifies to count multicast packets
unicast – Specifies to count unicast packets
packet – Specifies to count at packet level.
byte – Specifies to count at byte level.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To begin counting packet levels for broadcast packets on VLAN 1: