简体   繁体   English

在Linux上创建自定义SNMP OID

[英]Create a Custom SNMP OID On Linux

I have built a prototype board for a raspberry pi, and I would like to create a custom snmp OID that I can talk to, that will give me feed back from my device. 我已经为树莓派建了一个原型板,我想创建一个我可以与之交谈的自定义snmp OID,它会让我从我的设备反馈。

I can get the value back from my device, but I'm not sure where to start with creating a custom OID, registering it and then updating it. 我可以从我的设备中获取值,但我不知道从哪里开始创建自定义OID,注册它然后更新它。

Has anyone got any good places to start, tutorials, example code etc. 有没有人有任何好的开始,教程,示例代码等。

Cheers Luke 干杯卢克

The official channel would be to register for a 'Private Enterprise Number' via this link: 官方渠道是通过以下链接注册“私营企业号码”:

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

After the approval process, you'll receive an OID which you can further branch out and create entire sub-trees of OIDs. 批准过程之后,您将收到一个OID,您可以进一步分支并创建整个OID子树。

That said, as an individual, you can probably make do with any valid OID for testing purposes. 也就是说,作为个人,您可以使用任何有效的OID进行测试。

The "Which OIDs should you use?" “你应该使用哪些OID?” section from the following Apache Directory Service article is a useful read: 以下Apache Directory Service文章中的部分是一个有用的读物​​:

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

A related question mentions a UUID approach to OID: 一个相关的问题提到了UID的OID方法:

SNMP: Create custom OID SNMP:创建自定义OID

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM