EasyManua.ls Logo

HP 5820X Switch - Configuring Sampler Examples

HP 5820X Switch
294 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
164
Configuring sampler examples
Network requirements
As shown in Figure 63, configure IPv4 NetStream on Switch A to collect statistics on coming traffic on
GigabitEthernet 1/0/1 and send the result to port 5000 on NSC 12.110.2.2/16.
Configure fixed sampling in the inbound direction to select the first packet out of 256 packets.
Figure 63 Network diagram for using sampler with NetStream
Network
NSC
Switch A
GE1/0/1
Vlan-int1
12.110.2.1/16
12.110.2.2/16
Configuration procedure
# Create sampler 256 in fixed sampling mode, and set the sampling rate to 8. The first packet out of 256
(two to the power of eight) packets is selected.
<SwitchA> system-view
[SwitchA] sampler 256 mode fixed packet-interval 8
# Configure interface GigabitEthernet 1/0/1, enable IPv4 NetStream to collect statistics on the incoming
traffic, and configure the interface to use sampler 256.
[SwitchA] interface GigabitEthernet1/0/1
[SwitchA-GigabitEthernet1/0/1] ip netstream inbound
[SwitchA-GigabitEthernet1/0/1] ip netstream sampler 256 inbound
[SwitchA-GigabitEthernet1/0/1] quit
# Configure the IP address and port number of the NSC as the destination address and port number for
NetStream data export, leaving the default for source interface.
[SwitchA] ip netstream export host 12.110.2.2 5000

Table of Contents

Related product manuals