Hi Michelle, you are missing a step. Once you have written your MIB you will have to write the according module, which would be loaded by the agent (the snmpd daemon). You could also modify your module to make it run as an subagent connected to the agent - if I got hat right. I'm very new with coding my own custom module, but I find it a little difficult to get into it. However there are tutorials and examples within the sources and documented on the net-snmp.org site. Once you've got this up and running it's up to you how to set your values - by command line or have it done by an application. Are you sure that the variables you are interested in are not already monitored by the snmpd?
HTH Jens Mdecandia wrote: > Hi all, > I want to implement a new MIB to monitor some variables on my system. > After I've written my MIB, how may I set/get values on that snmp new OID? > I need to use net-snmp api in my application or I need to run command line > snmpget/snmpset cmd? > Is this the right way to proceed? > > Thanks, > > Michele ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
