IPI-SFLOW-INTERFACE
Configure enabled
To enable or disable sampling on an interface after giving the sflow sampling-rate command on the same interface
Attribute Name: enabled
Attribute Type: empty
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow-interface">
<interface>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
</enabled><!-- operation="delete"-->
</interface>
</interfaces>
</sflow>
</sampling>
Command Syntax
sflow enable
Configure polling interval
The maximum number of seconds between successive samples of the counters associated with this data source. A sampling interval of 0 disables counter sampling.The agent is permitted to have minimum and maximum allowable values for the counter polling interval. A minimum interval lets the agent designer set an upper bound on the overhead associated with polling, anda maximum interval may be the result of implementation restrictions (such as counter size).In addition notall values between the maximum and minimum may be realizable as the sampling interval (again because of implementation considerations).When the sampling rate is set the agent is free to adjust the value so that it lies between the maximum and minimum values and has the closest achievable value.When read, the agent must return the actual sampling interval it will be using (after the adjustments previously described).The sampling algorithm must converge so that over time the number of packets sampledapproaches 1/Nth of the total number of packets in the monitored flows.
Attribute Name: polling-interval
Attribute Type: uint8
Attribute Range: 5-60
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow-interface">
<interface>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<polling-interval>5</polling-interval> <!-- operation="delete"-->
</interface>
</interfaces>
</sflow>
</sampling>
Command Syntax
sflow poll-interval <5-60>
Configure sample size
The maximum number of bytes that should be copied from a sampled packet. The agent may have an internal maximum and minimum permissible sizes. If an attempt is made to set this value outside the permissible range then the agent should adjust the value to the closest permissible value.
Attribute Name: sample-size
Attribute Type: uint16
Attribute Range: 16-256
Attribute Name: sampling-rate
Attribute Type: uint32
Attribute Range: 1024-16777215
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow-interface">
<interface>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<ingress>
<config>
<sampling-rate>1024</sampling-rate>
<sample-size>16</sample-size>
</config>
</ingress>
</interface>
</interfaces>
</sflow>
</sampling>
Command Syntax
sflow sampling-rate <1024-16777215> direction ingress max-header-size <16-256>
Configure name
The maximum number of bytes that should be copied from a sampled packet. The agent may have an internal maximum and minimum permissible sizes. If an attempt is made to set this value outside the permissible range then the agent should adjust the value to the closest permissible value.
Attribute Name: sample-size
Attribute Type: uint16
Attribute Range: 16-256
Attribute Name: sampling-rate
Attribute Type: uint32
Attribute Range: 1024-16777215
Netconf edit-config payload
<sampling xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow">
<sflow>
<interfaces xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow-interface">
<interface>
<name>WORD</name>
<config>
<name>WORD</name>
</config>
<egress>
<config>
<sampling-rate>1024</sampling-rate>
<sample-size>16</sample-size>
</config>
</egress>
</interface>
</interfaces>
</sflow>
</sampling>
Command Syntax
sflow sampling-rate <1024-16777215> direction egress max-header-size <16-256>
clear sflow statistics (interface IFNAME|)
Attribute Name: interface
Attribute Type: string
Netconf RPC payload
<sflow-clear-statistics xmlns="http://www.ipinfusion.com/yang/ocnos/ipi-sflow-interface">
<interface>IFNAME</interface>
</sflow-clear-statistics>
Command Syntax
clear sflow statistics (interface IFNAME|)
Last modified date: 08/24/2023