< Home

Troubleshooting sFlow

Fault Symptom

A remote sFlow collector fails to receive sFlow packets.

Procedure

  1. Check whether an IP address is configured for the sFlow collector.

    Run the display sflow command to view the configuration.

    If the Collector Information is null, run sflow collector in the system view to configure the IP address and other attributes for the sFlow collector.

    <HUAWEI> display sflow slot 0
    sFlow Version 5 Information:                                                 
    --------------------------------------------------------------------------   
    Agent Information:                                                           
    
         IP Address: 192.168.1.206                                                  
     Address family: IPV4                                                       
       Vpn-instance: NA                                                          
    --------------------------------------------------------------------------   
    Collector Information:                                                       
    
       Collector ID: 1                                                            
         IP Address: 192.168.1.194                                                  
     Address family: IPV4                                                       
       Vpn-instance: NA                                                          
               Port: 6343                                                                 
      Datagram size: 1500                                                        
           Time out: NA                                                              
        Description: zjm-pc                                                        
    --------------------------------------------------------------------------   
    Port on slot 0 Information:                                                  
    
    Interface: GE0/0/1                       
      Flow-sample collector: 1            Counter-sample collector  : 1          
      Flow-sample rate(1/x): 2048         Counter-sample interval(s): 10         
      Flow-sample maxheader: 128                                                 
      Flow-sample direction: IN,OUT                                              
    

  2. Check whether the configured IP address of the sFlow collector is the same as the remote sFlow collector's IP address.

    If the IP addresses are different, the remote sFlow collector will not be able to receive sFlow packets.

    Run the display sflow command to view the configuration.

    If the IP address in the Collector Information is different from the IP address of the remote sFlow collector, run sflow collector in the system view to configure a correct IP address for the collector.

    <HUAWEI> display sflow slot 0
    sFlow Version 5 Information:                                                 
    --------------------------------------------------------------------------   
    Agent Information:                                                           
    
         IP Address: 192.168.1.206                                                
     Address family: IPV4                                                       
       Vpn-instance: NA                                                          
    --------------------------------------------------------------------------   
    Collector Information:                                                       
    
       Collector ID: 1                                                            
         IP Address: 192.168.1.194                                                  
     Address family: IPV4                                                       
       Vpn-instance: NA                                                          
               Port: 6343                                                                 
      Datagram size: 1500                                                        
           Time out: NA                                                              
        Description: zjm-pc                                                        
    --------------------------------------------------------------------------   
    Port on slot 0 Information:                                                  
    
    Interface: GE0/0/1                       
      Flow-sample collector: 1            Counter-sample collector  : 1          
      Flow-sample rate(1/x): 2048         Counter-sample interval(s): 10         
      Flow-sample maxheader: 128                                                 
      Flow-sample direction: IN,OUT                                              
    

  3. Check whether sFlow sampling is configured on the interface.

    An interface provides sampling data only after sFlow sampling is configured.

    Run the display sflow command to view the configuration.

    If the Port on slot 0 Information is null, select flow sampling or counter sampling according to Configuring an sFlow Sampling Mode. You are advised to configure both of them.

    <HUAWEI> display sflow slot 0
    sFlow Version 5 Information:                                                 
    --------------------------------------------------------------------------   
    Agent Information:                                                           
         IP Address: 192.168.1.206                                                  
     Address family: IPV4                                                       
       Vpn-instance: NA                                                          
    --------------------------------------------------------------------------   
    Collector Information:                                                       
       Collector ID: 1                                                            
         IP Address: 192.168.1.194                                                  
     Address family: IPV4                                                       
       Vpn-instance: NA                                                          
               Port: 6343                                                                 
      Datagram size: 1500                                                        
           Time out: NA                                                              
        Description: zjm-pc                                                        
    --------------------------------------------------------------------------   
    Port on slot 0 Information:                                                  
    
    Interface: GE0/0/1                       
      Flow-sample collector: 1            Counter-sample collector  : 1          
      Flow-sample rate(1/x): 2048         Counter-sample interval(s): 10         
      Flow-sample maxheader: 128                                                 
      Flow-sample direction: IN,OUT                                              
    

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic