sflow server

Function

The sflow server command configures an sFlow server, including a destination IP address, VPN instance, and port number.

The undo sflow server command deletes the configuration on an sFlow server.

By default, sFlow server is not configured.

Format

sflow server { ip ip-address | ipv6 ipv6-address } [ vpn-instance vpn-name ] [ udp-port port ]

undo sflow server { ip ip-address | ipv6 ipv6-address } [ vpn-instance vpn-name ] [ udp-port port ]

Parameters

Parameter Description Value
ip ip-address

Specifies an IPv4 address.

The value is in dotted decimal notation. The format is X.X.X.X.

ipv6 ipv6-address

Specifies an IPv6 address.

The value is in hexadecimal notation. The format is X:X::X:X.

vpn-instance vpn-name

Specifies a VPN name.

The value is a string of 1 to 31 characters.

udp-port port

Specifies a port number.

The value is an integer ranging from 1 to 65535. The default value is 6343.

Views

sFlow collector view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sflow write

Usage Guidelines

Usage Scenario

After creating an sFlow collector, run the sflow server command to specify a destination address for sFlow packets.

Example

# Set a destination IP address to 3.3.3.3 for sFlow packets.
<HUAWEI> system-view
[~HUAWEI] sflow
[*HUAWEI-sflow] sflow collector 1
[*HUAWEI-sflow-collector-1] sflow server ip 3.3.3.3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic