How do I configure flow statistics aggregation?
Steps
1 |
Log in to a station that has access to the NSP system. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
2 |
Open a console window. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3 |
Issue the following RESTCONF API call to specify what data/aggregation types are enabled for collection: Note: In order to issue a RESTCONF API call, you require a token; see the My First NSP API Client tutorial on the Network Developer Portal for information. PATCH https://address:443/restconf/data/flowconf:config/policies/aggregation where address is the NSP cluster advertised address The message body is the following: { "aggregation" : [ { "enabled" : "true", } ] } The following table shows the data and aggregation types that can be enabled, as well as their default state and protocol. Table 3-1: Data types and aggregation types
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
4 |
Issue the following RESTCONF API call to specify the length of the aggregation intervals for each data type: Note: In order to issue a RESTCONF API call, you require a token; see the My First NSP API Client tutorial on the Network Developer Portal for information. PATCH https://address:443/restconf/data/flowconf:config/policies/agg-interval where address is the NSP cluster advertised address The message body is the following: { "agg-interval" : [ { "duration" : "3", } ] } Note: The settings in the above example represent the default values. Note: The statistics collection interval affects NSP Flow Collector performance. A larger interval results in proportionally larger files, which take longer to store and transfer. Note: For CGNAT statistics, you must set the collection interval no higher than the following, based on the expected flow rate: The following table shows the aggregation intervals that can be configured, as well as their default state and protocol. Table 3-2: Aggregation intervals
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
5 |
Close the console window. End of steps |