Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8550481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:57:35+00:00 2026-06-11T13:57:35+00:00

In a simple SNMP table like mib-2.interfaces.ifTable , ifIndex is the index for the

  • 0

In a simple SNMP table like mib-2.interfaces.ifTable, ifIndex is the index for the table, so you read ifIndex.1 (i.e. read value from direct child nodes of ifIndex) to get the index for the first row of the table. Simple enough.

But it’s not as obvious with something like mib-2.ip.ipRouteTable. In that case ipRouteIfIndex is the index column. It’s defined as INTEGER just like ifIndex was. However, you can’t read the direct child nodes (i.e. ifIndex.0 is a direct child), but instead need to read ifIndex.0.0.0.0 to get to the value. So how does one know how to find the value when it’s not a direct child of the index column?

There is some concept that I’m not understanding. (Probably having to do with the fact that SNMP objects are delimited by . but so are IP addresses, and I can’t tell how to recognize the difference).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T13:57:36+00:00Added an answer on June 11, 2026 at 1:57 pm

    Note that you have a table with multiple indices in this particular case.

    The fact is that you cannot directly read the table entries with snmp-get service, since the index is dynamic (and, as a consequence, the OID address). But you can discover the values with snmp-get-next (v1) and snmp-get-bulk (v2) services.

    For example, you can read the indices (and store them for querying table items later) or directly read the items of the table :

    • you ask snmp-get-next for IP-MIB::ipAdEntNetMask
    • the reply will be IP-MIB::ipAdEntNetMask.172.16.38.42 IPV4 255.255.0.0
    • (So: first index is 172.16.38.42 in that case!)
    • you iterate and ask next value after IP-MIB::ipAdEntNetMask.172.16.38.42
    • the reply will be IP-MIB::ipAdEntNetMask.172.16.11.43 IPV4 255.255.0.0
    • etc.. until there is no other value, or the value is not on the same tree

    The service snmp-get-bulk will enable you to query N values directly in this way.

    Have a look at Net-Snmp’s snmptable that does good job with tables : http://net-snmp.sourceforge.net/wiki/index.php/TUT:snmptable

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a simple way/module to map snmp(MIB) strings to OIDs in Perl? E.g.
Simple question. I'm newbie on javascript and html. I have a file index.html like:
Simple question, I would like to append text to the front of every print
Simple thing I'm doing is connecting to retrieving user's name from Facebook and passing
Simple enough situation. I've got a MongoDB database with a bunch of information from
Simple question, does a list in Java hold objects by value or reference? If
I want to use simple snmp get in android.I found the code for java
I would like to create web page which will print simple message x minutes
Simple table: start_date TIMESTAMP duration_days INT In English: I simply want the rows which
I have a project of an SNMP agent where the related MIB files (*.smiv2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.