I have been using this snmp query:
Code: Select all
<interface>
<name>Get ONU Statistics</name>
<oid_index>.1.3.6.1.4.1.3902.1012.3.28.1.1.1</oid_index>
<oid_index_parse>OID/REGEXP:.*\.([0-9]{1,9}\.[0-9]{1,3})$</oid_index_parse>
<oid_num_indexes>.1.3.6.1.4.1.3902.1012.3.28.1.1.1</oid_num_indexes>
<index_order>objindex</index_order>
<index_order_type>numeric</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<objindex>
<name>Index</name>
<method>walk</method>
<direction>input</direction>
<source>OID/REGEXP:.*\.([0-9]{1,9}\.[0-9]{1,3})$</source>
<oid>.1.3.6.1.4.1.3902.1012.3.28.1.1.1</oid>
</objindex>
<onuIndex>
<name>ONU ID</name>
<method>walk</method>
<source>OID/REGEXP:.*\.([0-9]{1,3})$</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.3902.1012.3.28.1.1.1</oid>
</onuIndex>
<PortIndex>
<name>Port Index</name>
<method>walk</method>
<source>OID/REGEXP:.*\.([0-9]{1,10})\.[0-9]{1,5}$</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.3902.1012.3.28.1.1.1</oid>
</PortIndex>
<onuModel>
<name>ONU Model</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.3902.1012.3.28.1.1.1</oid>
</onuModel>
<onuSerialNumber>
<name>ONU Serial</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.4.1.3902.1012.3.28.1.1.5</oid>
</onuSerialNumber>
<onuNonIdleGEMUpstream>
<name>Upstream GEM Frames</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.3902.1012.3.28.6.1.1</oid>
</onuNonIdleGEMUpstream>
<onuPerformanceERR>
<name>ERR Counter</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.3902.1012.3.12.13.1.8</oid>
</onuPerformanceERR>
<onuPerformanceREI>
<name>REI Counter</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.3902.1012.3.12.13.1.9</oid>
</onuPerformanceREI>
<onuPerformanceLostBurst>
<name>Lost Upstream Burst</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.3902.1012.3.28.6.1.10</oid>
</onuPerformanceLostBurst>
<onuPerformanceLoFI>
<name>Loss of Frame Indicator</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.3902.1012.3.28.6.1.20</oid>
</onuPerformanceLoFI>
</fields>
</interface>
What happens in the log is that the oid for "onuNonIdleGEMUpstream" is used for everything and postfixed with the proper index .. sooo for example i will see data source of onuPerformanceERR being fed by the oid for "onuNonIdleGEMUpstream" WITH the proper index postfixed.