Symptom
"show sdwan tunnel statistics bfd" updates information every 10 minutes (RX and TX packet count) instead of a "real time" count.
"clear sdwan tunnel statistics" sets the statistcs for bfd to 0. On update it displays the sum of the previous stats plus the new packets.
Conditions
Running IOSXE SDWAN 17.3.3
Further Problem Description
"show sdwan tunnel statistics bfd" updates information every 10 minutes (RX and TX packet count) instead of a "real time" count.
"clear sdwan tunnel statistics" sets the statistcs for bfd to 0, but it updates until 10 minutes elapse. Also it displays the sum of the previous stats plus the new packets.
For example if I had "bfd-echo-tx-pkts 8764" and cleared it, after the information update I will get "bfd-echo-tx-pkts 10015"
Solution explained:
By design the clear command ?"clear sdwan tunnel statistics? will not clear the BFD stats internally even though the stats displays the value as 0 after clear.
The stats showing 0 as value is a bug and have been addressed in the fix. There is also no explicit command for clearing bfd tx/rx stats and these stats should not be cleared.
That is why the command ?clear sdwan tunnel statistics? doesn’t have the sub option bfd whereas the show command has it..
Ideally the bfd stats value should be never cleared and with the fix even after clear command is issued, the stats will not be reset to 0