max-header-size
Use this command to set sFlow max header size captured from sampled packet. It is applicable for both sFlow Global and Interface mode. sFlow interface config take precedence over global sFlow configuration.
Use show sflow global to verify this configuration.
Command Syntax
Copy
max-header-size <16-256>
Parameters
<16-256>
Maximum header size in bytes. The default value is 16 bytes.
Default
None.
Command Mode
sFlow interface config mode
and sFlow global config mode
Applicability
This command was introduced before OcNOS version 1.3. Modified to add sFlow interface config mode and sFlow global config mode in OcNOS version 6.6.1
Examples
Copy
Global Config Mode
cNOS#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#
OcNOS(config)#sflow poll-interval 60
OcNOS(config)#sflow direction egress
OcNOS(config-global-sflow)#sampling-rate 3000
OcNOS(config-global-sflow)#max-header-size 40
OcNOS(config-global-sflow)#exit
Copy
Interface Config Mode
cNOS#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#
OcNOS(config)#interface eth2
OcNOS(config-if)#sflow direction egress
OcNOS(config-if-sflow)#sampling-rate 3000
OcNOS(config-if-sflow)#max-header-size 40
OcNOS(config-if-sflow)#exit