R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference
246
Parameters
rate: Specifies the number of packets out of which flow sampling will sample a packet on the interface.
The value range is 1000 to 500000.
Usage guidelines
This command is supported on Ethernet interfaces only, instead of logical interfaces (such as Ethernet
subinterfaces and VLAN interfaces) and network management interfaces.
The bigger the value of the interval argument, the lower the sampling rate. On the other hand, the smaller
the value, the higher the sampling rate.
Examples
# Set GigabitEthernet 4/0/1 to sample a packet out of 4000 packets.
<Sysname> system-view
[Sysname] interface gigabitethernet 4/0/1
[Sysname-GigabitEthernet4/0/1] sflow sampling-rate 4000
Related commands
sflow sampling-mode
sflow source
Use sflow source to specify the source IP address of sFlow packets.
Use undo sflow source to remove the specified source IP address.
Syntax
sflow source { ip ip-address | ipv6 ipv6-address } *
undo sflow source { ip | ipv6 } *
Default
No source IP address is specified for sFlow packets.
Views
System view
Default command level
2: System level
Parameters
ip ip-address: Specifies the source IPv4 address of sFlow packets.
ipv6 ipv6-address: Specifies the source IPv6 address of sFlow packets.
Examples
# Specify the source IPv4 address of sFlow packets as 10.0.0.1.
<Sysname> system-view
[Sysname] sflow source ip 10.0.0.1