This command is used to create an sFlow agent on the network. You can configure an sFlow agent with a scope of local or fabric.

Syntax   sflow-create scope [local|fabric] name name-string [type ingress|egress] [sample-type raw|cooked] ports port-list [sample-rate sample-rate-number] [sample-interval sample-inverval-number] [trunc-length trunc-length-number] [vlan vlan-id]agent-id ip-address

name name-string

Specify a name for the sFlow collector.

type ingress|egress

Specify the type of packet for the sflow agent. Specify ingress to capture incoming packets and egress for outgoing packets.

sample-type raw|cooked

Specify the sample type for the sFlow agent. Raw indicates that the packet retains the link level header and cooked indicates that link level header is removed.

ports port-list

Specify the list of ports to capture packets.

sample-rate sample-rate-number

Specify the rate of packet sampling by the sflow agent.

sample-interval sample-inverval-

Specify the interval between packet captures.

trunc-length trunc-length-number

Specify the truncated length of the captured packet.

vnet vnet-name

Specify the VNET for sFlow.

vlan vlan-id

Specify the VLAN that applies to the sFlow agent. The value can be from 0 to 4095.

agent-id ip-address

Specify the IP address of the sFlow agent.

Defaults   None.

Access   CLI


Version 1.2

Command introduced.

Version 2.1

The parameter, scope, is deprecated. The parameter, agent-id, added.

Version 2.4.1

The parrameter, vnet, added.

Usage   sFlow agents capture packets on the network and send them to the sFlow collector for analysis. Use this command to configure an sFlow agent.

Examples  To configure an sFlow agent, SF-agent1, with the scope fabric, sample type raw on ports 21-25, use the following command:

CLI network-admin@switch > sflow-create scope fabric name SF-agent1 sample-type raw ports 21-25

See Also