355
Default
No sFlow collector is specified for counter sampling.
Views
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
network-admin
mdc-admin
Parameters
collector-id
: Specifies an sFlow collector by its ID in the range of 1 to 10.
Examples
# Specify sFlow collector 2 on GigabitEthernet 1/0/1 for counter sampling.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] sflow counter collector 2
sflow flow collector
Use
sflow flow collector
to specify an sFlow collector for flow sampling.
Use
undo sflow flow collector
to restore the default.
Syntax
sflow flow collector
collector-id
undo sflow flow collector
Default
No sFlow collector is specified for flow sampling.
Views
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
network-admin
mdc-admin
Parameters
collector-id
: Specifies an sFlow collector by its ID in the range of 1 to 10.
Examples
# Specify sFlow collector 2 on GigabitEthernet 1/0/1 for flow sampling.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] sflow flow collector 2
sflow flow max-header
Use
sflow flow max-header
to set the maximum number of bytes (starting from the packet header)
that flow sampling can copy per packet.
Use
undo sflow flow max-header
to restore the default.