< Home

display sflow

Function

The display sflow command displays the sFlow configuration on a specified device.

Format

display sflow [ slot slot-id ]

Parameters

Parameter

Description

Value

slot slot-id

Displays the sFlow information on a device, where slot-id specifies the slot ID of the device.

If this parameter is not configured, the global sFlow configuration is displayed.

The value is an integer and must be set according to the device configuration.

Views

All views

Default Level

3: Management level

Usage Guidelines

After configuring the sFlow function, you can use the display sflow command to verify the configuration.

The display sflow command shows the sFlow configuration, which helps you locate faults.

Example

# Display the sFlow configuration on a specified device.

<HUAWEI> display sflow slot 0
sFlow Version 5 Information:                                                 
--------------------------------------------------------------------------   
Agent Information:                                                           

     IP Address: 192.168.1.206(CLI)                                                  
 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: 64                                                 
  Flow-sample direction: IN,OUT                                              
Table 1 Description of the display sflow command output

Item

Description

sFlow Version 5 Information

-

Agent Information

Configuration of the sFlow Agent.

IP Address

IP address of the sFlow Agent. To configure this parameter, run the sflow agent command.

The string in the parentheses next to the IP address can be:
  • CLI: Indicate that this IP address is specified using the sflow agent command.
  • Auto: Indicate that the sFlow agent uses the IP address of the outbound interface in the route to the sFlow collector as the sFlow agent IP address.

Address family

Address family of the sFlow Agent:
  • IPV4: IPv4 address family
  • IPV6: IPv6 address family
To configure this parameter, run the sflow agent command.

Vpn-instance

VPN instance of the sFlow Agent. To configure this parameter, run the sflow agent command. The value will be NA if this parameter is not configured in the sflow agent command.

Collector Information

Configuration of the sFlow Collector.

Collector ID

ID of the sFlow Collector. To configure this parameter, run the sflow collector command.

IP Address

IP address of the sFlow Collector. To configure this parameter, run the sflow collector command.

Address family

Address family of the sFlow collector:
  • IPV4: IPv4 address family
  • IPV6: IPv6 address family
To configure this parameter, run the sflow collector command.

Vpn-instance

VPN instance of the sFlow Collector. To configure this parameter, run the sflow collector command. The value will be NA if this parameter is not configured in the sflow collector command.

Port

Port number of the sFlow Collector. To configure this parameter, run the sflow collector command.

Datagram size

Maximum length of sFlow packets sent to the sFlow Collector. To configure this parameter, run the sflow collector command.

Time out

Aging time of the sFlow Collector. To configure this parameter, run the sflow collector command. The value will be NA if this parameter is not configured or is set to 0 in the sflow collector command.

Description

Description of the sFlow Collector. To configure this parameter, run the sflow collector command. The value will be NA if this parameter is not configured in the sflow collector command.

Port on slot 0 Information

-

Interface

sFlow-enabled interface. To configure this parameter, run the sflow flow-sampling collector command.

Flow-sample collector

sFlow Collector that receives flow sampling data. To configure this parameter, run the sflow flow-sampling collector command.

Counter-sample collector

sFlow Collector that receives counter sampling data. To configure this parameter, run the sflow counter-sampling collector command.

Flow-sample rate(1/x)

Flow sampling rate. To configure this parameter, run the sflow flow-sampling rate command.

Counter-sample interval(s)

Counter sampling interval. To configure this parameter, run the sflow counter-sampling interval command.

Flow-sample maxheader

The maximum bytes of data that can be copied from a sampled packet in flow sampling. To configure this parameter, run the sflow flow-sampling max-header command.

Flow-sample direction

Flow sampling direction:
  • IN: Enable flow sampling in the inbound direction.
  • OUT: Enable flow sampling in the outbound direction.
  • IN,OUT: Enable flow sampling in both inbound direction and outbound direction.
To configure this parameter, run the sflow flow-sampling command.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >