Configure sFlow Maximum Header Size

Configure the maximum header size on a single port or multiple ports.

Before you begin

  • You must globally enable sFlow.

Procedure

  1. Enter GigabitEthernet Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]}

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Configure the maximum-header size:

    sflow max-header-size <64–256>

  3. Verify the configuration:

    show sflow interface {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Example

For ports 1/1 to 1/10, configure the maximum header size, and then verify the configuration.

Switch:1(config-if)#interface gigabitethernet 1/1-1/10
Switch:1(config-if)#sflow max-header-size 255
Switch:1(config-if)#show sflow interface 1/1-1/10

==============================================================================
                         sFlow Port Configuration Info

==============================================================================
Port   Packet-Sample-Rate  Max-Header-Size Counter-interval  Collector-list
                                           (in secs)
------------------------------------------------------------------------------
1/1    0                   255             525               1,2
1/2    0                   255             525               1,2
1/3    0                   255             525               1,2
1/4    0                   255             525               1,2
1/5    0                   255             525               1,2
1/6    0                   255             525               1,2
1/7    0                   255             525               1,2
1/8    0                   255             525               1,2
1/9    0                   255             525               1,2
1/10   0                   255             525               1,2

Variable Definitions

Use the data in the following table to use the max-header-size command.

Variable

Value

<64–256>

Identifies the maximum number of bytes to be copied from the sampled packet.

Default 128 bytes.