Re: indices from responses
Bill Fenner <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAF4SogbVXghWgcx5MCJ1=fU0T5hLPDxT49+w8MZ_6LMdZvHS8w@mail.gmail.com> |
Hi Shane, Let's say you've done netsnmp_query_walk( var, sess ). You then want to look at the var->name array. You know the length of the oid before the variable portion, so just start indexing. I usually look at the snmpnetstat code for examples, since the TCP-MIB and UDP-MIB contain examples of IpAddress and InetAddressType/InetAddress in the INDEX. Bill On Sun, Sep 14, 2014 at 6:58 PM, Shane Dawalt <[email protected]> wrote: > > I'm working with Net-SNMP 5.7.2. > > I've spent hours today looking through code, wikis, and google without a > measure of success. My goal is to walk two OIDs within the BGP4 mib > tree and extract the IP addresses of the remote peers from the response > OIDs. I've got the queries working, but what API function should be > used to extract the index from the returned OIDs? > > Thanks for any tips. > > Shane > > > > ------------------------------------------------------------------------------ > Want excitement? > Manually upgrade your production database. > When you want reliability, choose Perforce > Perforce version control. Predictably reliable. > > http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk > _______________________________________________ > Net-snmp-coders mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > ------------------------------------------------------------------------------ Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce. Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk _______________________________________________ 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