×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Translate just one OID name to its number

Translate just one OID name to its number

Translate just one OID name to its number

(OP)
I have an FC switch which I try to monitor using SNMP:

snmpwalk -v2c -c public <IP ADDRESS>|wc -l
888

When I use MIB file I have a name of (almost) each line. For example:

snmpwalk -v2c -c public -m /usr/share/mibs/ietf/FIBRE-CHANNEL-FE-MIB <IP ADDRESS> | grep FIBRE-CHANNEL-FE-MIB::fcFxPortC2InFrames.1.10
FIBRE-CHANNEL-FE-MIB::fcFxPortC2InFrames.1.10 = Counter32: 0

But how do I know which numeric OID is it ? I'd like to avoid counting lines ...

Regards


RE: Translate just one OID name to its number

You are wanting the OID as in 1.3.6.1..... or something else? My apologies but I am unclear.

Bill

RE: Translate just one OID name to its number

(OP)
Exactly that.
In other word: having named OID (using MIB file) how can I translate that to numeric OID without counting lines ?

RE: Translate just one OID name to its number

Well you could look at the raw data packet. Do a getone on that single object and look for the OID in the varbind.

There may also be some option in netsnmp's snmpwalk to not resolve the OID to name.

Bill

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close