I am really new to SNMP and net-snmp. I have a MIB file from a network
switch and i wanted to make a custom subagent to make the snmpd of my
workstation report some dummy data, as if it were the switch. I have
managed to build a subagent reporting a dummy integer value. But when
trying to use mib2c on the MIB file (I have configured it correctly,
mib2c can find both the MIB and the starting node) I am not sure of
which configuration file to use.
The MIB contains many tables, many scalar and many string values. Is
there a configuration file to automagically generate template code
which respects data types? Do I have to use mib2c separately for each
entry of my MIB?
Thank you very much and my apologies if the question is stupid. I am
very newbie and very confused, too.
Regards,
Stavros
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Minor correction:
You should be able to run "mib2c -c mib2c.scalar.conf" once, giving it the
root of the MIB in question, and it will generate code for *all* scalar objects
within that MIB.
But for tables, it is normal to run mib2c on each table individually.
Dave