API Guide

查看接口详情。
show running-configuration sflow
show sflow
配置 sFlow 源接口
OS10(config)# sflow source-interface ethernet 1/1/1
OS10(config)# sflow source-interface port-channel 1
OS10(config)# sflow source-interface loopback 1
OS10(config)# sflow source-interface vlan 10
查看 sFlow 运行的配置
OS10# show running-configuration sflow
sflow enable all-interfaces
sflow source-interface vlan10
sflow collector 5.1.1.1 agent-addr 4.1.1.1 6343
sflow collector 6.1.1.1 agent-addr 4.1.1.1 6343
OS10(config)#show running-configuration interface vlan
!
interface vlan1
no shutdown
!
interface vlan10
no shutdown
ip address 10.1.1.1/24
查看 sFlow 详情
OS10# show sflow
sFlow services are enabled
Management Interface sFlow services are disabled
Global default sampling rate: 32768
Global default counter polling interval: 30
Global default extended maximum header size: 128 bytes
Global extended information enabled: none
2 collector(s) configured
Collector IP addr:5.1.1.1 Agent IP addr:10.1.1.1 UDP port:6343 VRF:Default → It shows active
agent-ip
Collector IP addr:6.1.1.1 Agent IP addr:10.1.1.1 UDP port:6343 VRF:Default → It shows active
agent-ip
2 UDP packets exported
0 UDP packets dropped
2 sFlow samples collected
Identifier
GUID-B0E2398A-F54F-4213-A9C0-421A126C9D1E
Version 4
Status Translation approved
查看 sFlow 信息
OS10 不支持丢弃的 UDP 数据包和从硬件收到的样本的统计信息。
EXEC 模式查看 sFlow 配置详细信息和统计信息。
OS10# show sflow
sFlow services are enabled
Management Interface sFlow services are disabled
Global default sampling rate: 32768
Global default counter polling interval: 30
Global default extended maximum header size: 128 bytes
1300 sFlow