>> I've registered the OID "{ 1, 3, 6, 1, 4, 1, 8072, 2, 2, 1 }" in my module.
>
> How? What is the code that you have used to register this OID?
I am using the sample code from data_set.c
> The point of the MIB helpers is to take care of parsing the OIDs,
> extracting the index value(s), and providing them to the MIB handler,
> so that you don't need to do this yourself.
>
> If you use one of the mib2c templates, this will take care of much
> of the donkey work automatically.
I'll try using the mib2c templates. I've just been playing with the
sample code until now.
All I want is to get the OID in my module.
If someone issues the command
"snmpget localhost 1.3.6.1.4.1.39166.1.1.1.123"
I should be able to read the value 123 in my module
If someone issues the command
"snmpget localhost 1.3.6.1.4.1.39166.1.1.1.5555"
I should be able to read the value 555 in my module
This should work with any number entered at the end of the OID
If someone issues the command
"snmpget localhost 1.3.6.1.4.1.39166.1.1.1.XYZ"
I should be able to read the value XYZ in my module where XYZ is a number
I'll go through the FAQs again.
I would appreciate any inputs, like which mib2c conf file I should use.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders