261
Examples
# Specify sFlow collector 2 on FortyGigE 1/0/1 for counter sampling.
<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/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
Parameters
collector-id
: Specifies an sFlow collector by its ID in the range of 1 to 10.
Examples
# Specify sFlow collector 2 on FortyGigE 1/0/1 for flow sampling.
<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/0/1] sflow flow collector 2
sflow flow max-header
Use
sflow flow max-header
to set the maximum number of bytes of a packet (starting from the
packet header) that flow sampling can copy.
Use
undo sflow flow max-header
to restore the default.
Syntax
sflow flow max-header length
undo sflow flow max-header
Default
Flow sampling can copy up to 128 bytes of a packet.
Views
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
network-admin