Writing a MIB module

"Violette Moulin" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,

I want to write a MIB module, as in
http://www.net-snmp.org/wiki/index.php/TUT:Writing_a_MIB_Module

I do :
# ./configure --with-mib-modules="nstAgentModuleObject"
# make
# make install
# snmpd

then :
# snmpget -v 1 -c public localhost NET-SNMP-TUTORIAL-MIB::
nstAgentModuleObject.0
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0

I don't understand why I become this error :(

I've attempt:

# snmpgetnext -v 1 -c public localhost
NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject
SNMPv2-MIB::snmpSetSerialNo.0 = INTEGER: 400977436

and

# snmpd -f -Le -DnstAgentModuleObject
registered debug token nstAgentModuleObject, 1
nstAgentModuleObject: Initializing the nstAgentModuleObject module
nstAgentModuleObject: Initalizing nstAgentModuleObject scalar integer.
Default value = 1
nstAgentModuleObject: Done initalizing nstAgentModuleObject module
ignoring attempted override of read-only sysContact.0
Error opening specified endpoint "udp:161"
Server Exiting with code 1


Could you give me some help?

Thanks in advance,


Violette

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.