IPI-SFLOW
Configure enabled
Use this attribute to enable or disable Sampled Flow (sFlow) feature globally.
Attribute Name: enabled
Attribute Type: empty
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<config>
</enabled>
</config>
</sflow>
</sampling>
Command Syntax
feature sflow
Configure source address
The IP address associated with this agent. In the case of a multi-homed agent, this should be the loopback address of the agent. The sFlowAgent address must provide SNMP connectivity to the agent. The address should be an invariant that does not change as interfaces are reconfigured, enabled, disabled,added or removed. A manager should be able to use the sFlowAgentAddress as a unique key that will identify this agent over extended periods of time so that a history can be maintained.
Attribute Name: source-address
Attribute Type: inet:ipv4-address
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<config>
<source-address>A.B.C.D</source-address> <!-- operation="delete"-->
</config>
</sflow>
</sampling>
Command Syntax
sflow agent-ip A.B.C.D
Configure cpu rate limit
CPU rate in packets per second
Attribute Name: cpu-rate-limit
Attribute Type: uint32
Attribute Range: 2000-100000
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<config>
<cpu-rate-limit>2000</cpu-rate-limit> <!-- operation="delete"-->
</config>
</sflow>
</sampling>
Command Syntax
sflow rate-limit <2000-100000>
Configure max datagram size
The maximum number of data bytes that can be sent in a single sample datagram. The manager should set this value to avoid fragmentation of the sFlow datagrams.
Attribute Name: max-datagram-size
Attribute Type: uint16
Attribute Range: 200-9000
Attribute Name: receiver-timeout
Attribute Type: uint32
Attribute Range: 0-2147483647
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<collectors>
<collector>
<port>1024</port>
<config>
<port>1024</port>
<address>A.B.C.D</address>
<receiver-timeout>0</receiver-timeout> <!-- operation="delete"-->
</config>
<address>A.B.C.D</address>
<max-datagram-size>200</max-datagram-size> <!-- operation="delete"-->
</collector>
</collectors>
</sflow>
</sampling>
Command Syntax
sflow collector A.B.C.D port <1024-65535> receiver-time-out <0-2147483647> max-datagram-size <200-9000>
Configure max entries
Specifies the maximum number of log entries that are cached, default is 1000 entries
This command is supported when following feature are enabled custom1 access-list options
Attribute Name: max-entries
Attribute Type: uint16
Default Value: 1000
Attribute Range: 1000-10000
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<logging>
<config>
<max-entries>1000</max-entries> <!-- operation="delete"-->
</config>
</logging>
</sflow>
</sampling>
Command Syntax
access-list logging cache-size <1000-10000>
Configure rate limit
Configures rate limits in packets per second, Default is 200 packets/sec
This command is supported when following feature are enabled custom1 access-list options
Attribute Name: rate-limit
Attribute Type: uint16
Default Value: 200
Attribute Range: 0-1000
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<logging>
<config>
<rate-limit>0</rate-limit> <!-- operation="delete"-->
</config>
</logging>
</sflow>
</sampling>
Command Syntax
access-list logging rate-limit <0-1000>
Configure options
Set sFlow debug in config mode
Attribute Name: options
Attribute Type: bits (agent|sampling|polling|all)
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<debug>
<config>
<options>agent</options> <!-- operation="delete"-->
</config>
</debug>
</sflow>
</sampling>
Command Syntax
debug sflow (agent|sampling|polling|all)
clear access-list log-cache
Netconf RPC payload
<sflow-clear-access-list-log-cache xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow"/>
Command Syntax
clear access-list log-cache
debug sflow (agent|sampling|polling|all)
Attribute Name: terminal-debug-options
Attribute Type: bits (agent|sampling|polling|all)
Netconf RPC payload
<sflow-terminal-debug-on xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<terminal-debug-options>agent</terminal-debug-options>
</sflow-terminal-debug-on>
Command Syntax
debug sflow (agent|sampling|polling|all)
no debug sflow (agent|sampling|polling|all)
Attribute Name: terminal-debug-options
Attribute Type: bits (agent|sampling|polling|all)
Netconf RPC payload
<sflow-terminal-debug-off xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<terminal-debug-options>agent</terminal-debug-options>
</sflow-terminal-debug-off>
Command Syntax
no debug sflow (agent|sampling|polling|all)
Last modified date: 07-14-2023