7

I created a scalar MIB for my application, monitor request_queue_size. I followed the write MIB tutorial . The OID there is a long hierarchical OID. I wonder if I can give a short hierarchical OID like 1.1 . Is there any convention?

My application is hosted on Ubuntu.

alx9r
  • 1,643
  • 3
  • 16
  • 37
Avihai Marchiano
  • 592
  • 3
  • 15
  • 32

1 Answers1

11

You can have a look at the Cisco Field Manual Router Configuration. It shows you the top-level MIB tree. When referring to OID like: 1.3.6.1.4.1.8072, you are referring to:

iso.org.dod.internet.private.enterprise.your_company

So, this is the convention used. Otherwise, you may have conflict with existing MIBs.

Note that your_company is not just some number you can make up yourself — It is an IANA-Assigned Private Enterprise Number (PEN). If your company does not already have a PEN you must register for one.

Khaled
  • 35,688
  • 8
  • 69
  • 98
  • so for my private mib i can give 1.3.6.1.4.1.1.1.0, where the suffix of 1.1.0 , 1- my company, 1- my scalar - reuqest_pending , 0- scalar vlaue – Avihai Marchiano Aug 28 '12 at 14:19
  • @user1495181: [Here](http://www.alvestrand.no/objectid/1.3.6.1.4.1.html), you can find the list of registered companies. – Khaled Aug 28 '12 at 14:22
  • 4
    @user1495181 Do not just pick any Enterprise number. Register for one ***FREE*** from IANA: http://pen.iana.org/pen/PenApplication.page – Chris S Aug 28 '12 at 14:25
  • 4
    @Khaled The official list of Enterprise IDs is: http://www.iana.org/assignments/enterprise-numbers – Chris S Aug 28 '12 at 14:25
  • @ChrisS: Thanks. I just picked any link to show that there are already many reserved numbers. – Khaled Aug 28 '12 at 14:27