We are observing our device sending template multiple times to the collector. The ask here is to check if there is any knob to tweak the behavior so that template is sent just once.
In the Packet capture taken on the collector side, the 'options template' and 'options data' are not being sent frequently and hence collector is not able to decode the 'options data'. The options Template is used to convey options configured on the Exporter to collector as sampling rate, to the flow collector
With default configuration (no explicit definition of option-refresh timer). The template and data will be sent ~600 seconds.
In order to configure customized time interval to send out the 'options template' and 'options data' to the collector, below configuration option can be used:
option-refresh-rate packets packets seconds seconds;
https://www.juniper.net/documentation/us/en/software/junos/flow-monitoring/topics/ref/statement/option-refresh-rate-edit-services.html
So for example, if the user configures interval of 20 seconds using config 'option-refresh-rate seconds 20', then the options template and options data is streamed every 20 seconds.
2023-1030-000532