show sflow

Use this command to display sFlow agent configuration along with statistics for all interfaces.

Command Syntax

Copy
show sflow (brief | detail)

Parameters

brief

Display configuration parameters on interfaces along with sampling rate and poll interval.

detail

Same as brief along with configured and default attributes and values of sFlow agent, sFlow collector, and sampling information.

Default

None

Command Mode

Execution mode

Applicability

This command was introduced before OcNOS version 1.3.

Example

Copy
OcNOS#show sflow detail 
sFlow Feature: Enabled
sFlow Version: 5
Agent IP     : 192.168.122.76 

sFlow Port Detailed Information:
Interface  Collector  Packet-Sampling           Packet-Sampling            Counter-Polling         Maximum Header         Sampling
           ID                Rate                    Count               Interval       Count        Size(bytes)          Direction
                      Ingress      Egress       Ingress      Egress       (sec)                    Ingress     Egress
---------  ---------  -----------------------   -----------------------  -----------------------   --------------------  ------------
eth2               1        1025            0            0            0           0            0      17            0        disabled
eth3               1           0         1024            0            0           0            0       0           16     egress-only
eth4               1           0            0            0            0           0            0       0            0        disabled
eth5               1           0            0            0            0           0            0       0            0        disabled
eth6               1        1024            0            0            0           0            0      16            0    ingress-only
eth7               1           0         1024            0            0           0            0       0           16     egress-only
eth8               1        1025         1024            0            0           0            0      17           16        disabled
 
#
#show sflow brief 
sFlow Feature: Enabled
Collector IP: 2.2.2.2      Port:  6343
Maximum Datagram Size(bytes): 200 
Receiver timeout(sec)        : 0         
 
sFlow Port Configuration:
Interface   Status               Sample Rate                Counter-Polling 
            Ingress    Egress    Ingress      Egress        Interval(sec) 
---------   ------------------   ------------------------   ---------------
xe1       Enabled    Disabled         1024            0      6
Table 60.

Show sflow output

Entry

Description

sFlow feature

Shows whether sFlow is enabled or disabled.

sFlow Version

Displays the sFlow version. Version 5 is the current global standard.

sFlow Global Information

Global Information consists of the Agent IP address, Collector IP, Port number, Maximum Datagram Size, and the Receiver timeout.

Agent IP

IPv4 address of this switch/router.

Collector IP

IPv4 address of the sFlow collector server.

Port

Port number on the sFlow collector server. Standard is port 6343.

Maximum Datagram Size

The maximum size of the datagrams sent by the agent

Receiver timeout

The number of seconds between each sampling – zero means sample continuously.

sFlow Port Interface

The interface of this switch/router on which sFlow is running (e.g. xe1/1).

Packet-Sampling Rate

the number of packets received or transmitted before a sample is taken.

Packet-Sampling Count

The number of sample packets that have been sampled on both the ingress and egress of the interface.

Counter-Polling

Shows the amount of time between polling samples and the count of the total number of polling samples taken.

Maximum Header Size

The maximum header size for both the ingress and egress of the interface.

Sampling Direction Indicates the current sFlow sampling direction that is available on the interface. If the interface has no sflow enable, or all the sampling direction are set to disable, the interface state is disabled.