Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create snmp agent from net-snmp

Tags:

snmp

net-snmp

I want to implement SNMP-agent for PowerPC board using net-snmp. Previously it was implemented using SMASH. SMASH has a parser which could read MIB and generate C code (blank function imlementation)

How do I get started?

like image 711
PrashantB Avatar asked Sep 16 '25 19:09

PrashantB


2 Answers

Try to look at mib2c tool from net-snmp. It will generate the snmp agent C code from the MIB. Then you have to only fulfill the return values to SNMP requests. Skeleton of responding to SNMP requests (get, set, get-next) are automatically done by generating.

like image 182
srnka Avatar answered Sep 18 '25 09:09

srnka


Do you have a look to Writing a MIB module tutorial.

like image 25
JPBlanc Avatar answered Sep 18 '25 09:09

JPBlanc