Would like to confirm ...

Renuka Manavalan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAFvv4bOz0t1Mft10v5C+zPcaYDq8Hc8jjpbgox9++-F8x3qSig@mail.gmail.com>
Hi all,

I was debating, if my handler should handle all varbindings in a request or
just the first. Realized, I just need to handle only one, even if it has a
non null "next".

What the frame work does, when we use "snmpget ... OID1 OID2", it sends to
the handler two requests.

request1 points to varbindings1 { oid1 } --> varbindings2 {oid2 }

request2 points to varbindings2 { oid2 }

Please confirm, if this is the standard behavior to rely on.

// Spew from my program
Calling RcvrTableHandler handler(sFlowRcvrTable) mode (160)

----------------------------------------------
RcvrTableHandler:: handle request: 0x866e210
handle_a_rcvr_table_request:
netsnmp_variable_list:
var=0x866d210 { (.1.3.6.1.4.1.14706.1.1.4.1.1.1) len(13) }    <--- bindings1
var=0x866d460 { (.1.3.6.1.4.1.14706.1.1.4.1.1.2) len(13) }    <--- bindings2

handle_a_rcvr_table_request row=(1) col=(1)    <-- from bindings 1
handle_a_rcvr_table_request row=(2) col=(1)    <-- from bindings 2

----------------------------------------------
RcvrTableHandler:: handle request: 0x866e250             <-- Second request
handle_a_rcvr_table_request:
netsnmp_variable_list:
var=0x866d460 { (.1.3.6.1.4.1.14706.1.1.4.1.1.2) len(13) }   <-- bindings2:
*NOTE* netsnmp_variable_list pointer is same as second pointer in previous
request.

handle_a_rcvr_table_request row=(2) col=(1)  <-- from bingdings2

Thank you,
Renuka

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.