How to generate template code for PRIVATE MIB using mib2c....
My objective is to add a a private MIB file...and perform operation snmpset and snmpget
1) I install net-snmp-5.3.3
./configure --with-perl-modules
make
make install
2)I copied MIB file to /usr/share /snmp/mibs
Now which step i have to take ???
i search that CREATE A TEMPLATE CODE of MIB file in .C and .H file
For That i use tool mib2c
i just try
mib2c -c mib2c.scalar.conf ucdDemoPublic
---> it gives output
outputting to ucdDemoPublic.c and ucdDemoPublic.h ...
depth: 1
Number of Lines Created:
2 ucdDemoPublic.c
1 ucdDemoPublic.h
3 total
Done.
but the file content is blank....its not generating template code....
PLEASE GUIDE ME WHAT IS THE FURTHER STEP FOR ADDING MY PRIVATE MIB FILE....
THANK IN ADVANCE..
|