Hi,

I am trying to implement a MIB in C and add it to the
agent.

I am using the agent/mibgroups/examples/examples.c

Then I did:
./configure --with-mib-modules=mymib

Then agent/make

Then generate the snmpd.conf.

Then, run the agent: ./snmpd -f -L -d -c snmpd.conf

Then run:
snmpget -v1 -c public localhost
.1.3.6.1.4.1.2021.254.0

But I got:
Error in packet
Reason: (noSuchName) There is no such variable name in
this MIB.
Failed object: UCD-SNMP-MIB::ucdavis.254.0

I tried using the scalar_int.c and it didnot work
either.

Any help????

Reading the FAQ I got:

  Finally, the agent itself can be extended to support
additional MIB
  groups, by writing the necessary C code, and
including this within
  the main agent - either statically compiled in, or
dynamically loaded.
  This is covered further in the next section.

It is not covered in the next section!!!
The next section is: What's the difference between
'exec', 'sh' and 'pass'?


                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to