Linux – Create custom SNMP oids on Linux

Create custom SNMP oids on Linux… here is a solution to the problem.

Create custom SNMP oids on Linux

I’ve built a prototype board for the raspberry pi and I want to create a custom snmp oid that I can talk to that will give me feedback from my device.

I

can get the value back from my device, but I’m not sure where to start creating a custom OID, registering it, and then updating it.

Does anyone have any good starting points, tutorials, sample code, etc.

Cheers.
Luke

Solution

The official channel is to register a “private enterprise number” via this link:

http://pen.iana.org/pen/PenApplication.page

After approving the process, you will receive an OID that you can branch further and create an entire subtree of the OID.

That said, as an individual, you may be able to use any valid OID for testing purposes.

“Which OIDs should you use?” Some of the following Apache Directory Service articles are useful:

http://directory.apache.org/apacheds/1.5/31-add-your-first-elements-to-the-schema.html

A related issue mentions the UUID method of OID:

SNMP: Create custom OID

Related Problems and Solutions