Netgear M5300-28G-POE+ (GSM7228PSv1h2) - 12-Port Managed Gigabit Switch Ratgeber Für Administratoren

Seite von 721
SNMP 
503
 Managed Switches
CLI: Configure Statistical Packet-Based Sampling of Packet 
Flows with sFlow
1. 
Configure the sFlow receiver (sFlow collector) IP address. In this example, sFlow 
samples will be sent to the destination address 192.168.10.2.
(Netgear Switch) (Config)# sflow receiver 1 ip 192.168.10.2
 
2. 
Configure the sFlow receiver timeout. Here sFlow samples will be sent to this receiver for 
the duration of 31536000 seconds. That is approximately 1 year.
(Netgear Switch) (Config)# sflow receiver 1 owner NetMonitor timeout 31536000
3. 
Here, the default maximum datagram size is 1400. It can be modified to a value between 
200 and 9116 using the command sflow receiver 1 maxdatagram <size>.
(GSM7328S) #show sflow receivers 
Receiver Owner    Time out   Max Datagram Port  IP Address  
Index    String              Size  
-------- -------- ---------- ------------ ----- -------------------------
1
         NetMonit
 
31535988
 
  1400 
 
       6343
 
 192.168.10.2                  
2
                  0
           1400
 
        6343
 
 0.0.0.0                       
3
                  0
           1400
 
        6343
 
 0.0.0.0                       
4
                  0
           1400
 
        6343
 
 0.0.0.0                       
5
                  0
           1400
 
        6343
 
 0.0.0.0                       
6
                  0
           1400
 
        6343
 
 0.0.0.0                       
7
                  0
           1400
 
        6343
 
 0.0.0.0                       
8
                  0
           1400
 
        6343
 
 0.0.0.0                       
(GSM7328S) #
4. 
Configure the sampling port sFlow receiver index, sampling rate, and sampling maximum 
header size. You need to repeat these for all the ports to be sampled. 
(Netgear Switch) (Config)# interface 1/0/1
(Netgear Switch) (Interface 1/0/1)# sflow sampler 1
(Netgear Switch) (Interface 1/0/1)# sflow sampler rate 1024
(Netgear Switch) (Interface 1/0/1)# sflow sampler maxheadersize 64