2-73
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
average-packet-size (netflow-lite monitor submode)
average-packet-size (netflow-lite monitor submode)
Note NetFlow-lite is only supported on the Catalyst 4948E and Catalyst 4948E-F Ethernet switches.
To specify the average packet size at the observation point in netflow-lite monitor submode, use the
average-packet-size command. To delete a sampler, use the no form of this command.
average-packet-size average-packet-size
no average-packet-size average-packet-size
Syntax Description
Defaults 0 bytes
Command Modes netflow-lite exporter submode
Command History
Usage Guidelines You can enter this command in physical port interface mode, port channel interface, or config VLAN
mode.
The packet sampling mechanism attempts random 1-in-N sampling. Internally, 2 levels of sampling are
performed. The accuracy of the first sampling level depends on the size of the packets arriving at a given
interface. Use the average-packet-size parameter to tune the accuracy of the algorithm.
The system automatically determines the average packet size at an interface based on observation of
input traffic and uses that value in its first level of sampling.
The algorithm requires a range of packet sizes from 64 to 9216 bytes. A value of 0 means that you want
an automatic determination of average packet size.
Examples The following example shows how to configure a monitor on a port interface Gigabit 1/3:
Switch# config terminal
Switch(config)# int GigabitEthernet1/3
Switch(config-if)# netflow-lite monitor 1
Switch(config-netflow-lite-monitor)# sampler sampler1
Switch(config-netflow-lite-monitor)# exporter exporter1
Switch(config-netflow-lite-monitor)# average-packet-size 128
Switch(config-netflow-lite-monitor)# exit
Switch(config-if)# exit
Switch(config)# exit
Switch(config)#
average-packer-size Specifies the average packet size in bytes expected at the observation point.
Release Modification
15.0(2)SG Support for this command was introduced on the Catalyst 4500 series switch.