Hello,

After following the examples in pmacct documentation, I was able to
assign different tags to flow and option records (respectively 100 and
200) , but I cannot figure out how to assign different tags to
different "types" of option records in order to store their data in
different SQL tables.

For instance, I receive the option records below. What I would like to
do is to assign tag #200 to "application" records and tag #201 to
"interface" records but I cannot figure out a way to do it.

I cannot use the template/flowset ID because it bound to change
occasionally... I thought about checking the presence of a field
instead (e.g. 10 v.s. 95) but there is nothing in the pretag_map
documentation about this. Any ideas?


DEBUG ( default/core ): NfV10 agent         : 172.16.2.1:6
DEBUG ( default/core ): NfV10 template type : options
DEBUG ( default/core ): NfV10 template ID   : 256
DEBUG ( default/core ): ------------------------------------------------
DEBUG ( default/core ): |         field type         | offset |  size  |
DEBUG ( default/core ): | 10                 [10   ] |      0 |      4
|   Interface input snmp
DEBUG ( default/core ): | 82                 [82   ] |      4 |     32
|   Interface name short
DEBUG ( default/core ): | 83                 [83   ] |     36 |     64
|   Interface name long
DEBUG ( default/core ): ------------------------------------------------
DEBUG ( default/core ): Netflow V9/IPFIX record size : 100


DEBUG ( default/core ): NfV10 agent         : 172.16.2.1:6
DEBUG ( default/core ): NfV10 template type : options
DEBUG ( default/core ): NfV10 template ID   : 257
DEBUG ( default/core ): ------------------------------------------------
DEBUG ( default/core ): |         field type         | offset |  size  |
DEBUG ( default/core ): | app id             [95   ] |      0 |      4
|   Application ID
DEBUG ( default/core ): | app name           [96   ] |      4 |     24
|   Application name
DEBUG ( default/core ): | app desc           [94   ] |     28 |     55
|   Application description
DEBUG ( default/core ): ------------------------------------------------
DEBUG ( default/core ): Netflow V9/IPFIX record size : 83


Thanks in advance,

Yann

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to