Dual index snmp query - input working, output not

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
HWCJoe
Posts: 4
Joined: Wed May 11, 2016 2:03 pm

Dual index snmp query - input working, output not

Post by HWCJoe »

Hey guys attempting to get a dual index where as the oid consists of <primary.oid.here>.<interfaceIndex>.<ONUIndex>

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.
HWCJoe
Posts: 4
Joined: Wed May 11, 2016 2:03 pm

Re: Dual index snmp query - input working, output not

Post by HWCJoe »

Issue resolved, a fat finger issue on one of the indexes caused it to be off by 1 digit and all of it failed.
kevinmorales
Posts: 13
Joined: Wed Mar 13, 2013 10:57 am
Location: Nicaragua

Re: Dual index snmp query - input working, output not

Post by kevinmorales »

Hi bro, could you help me please?
Kevin Morales
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests