Sflow Sampling-Mode - HPE FlexFabric 5930 Series Network Management And Monitoring Command Reference

Hide thumbs Also See for FlexFabric 5930 Series:
Table of Contents

Advertisement

Parameters
length: Specifies the maximum number of bytes that can be copied, in the range of 18 to 512. As a
best practice, use the default.
Examples
# Set the maximum number of bytes that can be copied to 60 on FortyGigE 1/0/1.
<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/0/1] sflow flow max-header 60

sflow sampling-mode

Use sflow sampling-mode to specify a flow sampling mode.
Use undo sflow sampling-mode to restore the default.
Syntax
sflow sampling-mode { determine | random }
undo sflow sampling-mode
Default
The flow sampling mode is random.
Views
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view
Predefined user roles
network-admin
Parameters
determine: Specifies the fixed sampling mode. This mode is not supported in the current software
version. It is reserved for future support. For example, if the flow sampling interval is set to 4000 (by
using the sflow sampling-rate command), the device samples packets as follows:
The device randomly samples a packet, like the tenth packet, from the first 4000 packets.
The next time the device samples the 4010th packet, and so on.
random: Specifies the random sampling mode. For example, if the packet sampling interval is set to
4000, the device samples packets randomly as follows:
The device might sample one packet from the first 4000 packets.
The device might sample multiple packets from the next 4000 packets.
The device might sample no packets from the third 4000 packets.
However, the device samples one packet from 4000 packets on average.
Examples
# Specify the random sampling mode on FortyGigE 1/0/1.
<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/0/1] sflow sampling-mode random
Related commands
sflow sampling-rate
262

Advertisement

Table of Contents
loading

Table of Contents