While muli DS template magic was being discussed I was trying this non-indexed area:
Code: Select all
$ vi resource/snmp_queries/tcp.xml
<interface>
<name>Get tcp Statistics</name>
<oid_index>.1.3.6.1.2.1.6.1</oid_index>
<index_order>tcpRtoAlgorithm</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<tcpRtoAlgorithm>
<name>Index</name>
<method>walk</method>
<direction>input</direction>
<oid>.1.3.6.1.2.1.6.1</oid>
<source>value</source>
</tcpRtoAlgorithm>
<tcpInSegs>
<name>tcpInSegs</name>
<method>walk</method>
<direction>output</direction>
<oid>.1.3.6.1.2.1.6.10</oid>
<source>value</source>
</tcpInSegs>
<tcpOutSegs>
<name>tcpOutSegs</name>
<method>walk</method>
<direction>output</direction>
<oid>.1.3.6.1.2.1.6.11</oid>
<source>value</source>
</tcpOutSegs>
</fields>
</interface>