Writing a MIB module - SNMP
This is a discussion on Writing a MIB module - SNMP ; --===============0566524367==
Content-Type: multipart/alternative;
boundary="----=_Part_12279_16246820.1195840622611"
------=_Part_12279_16246820.1195840622611
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi all,
I want to write a MIB module, as in
http://www.net-snmp.org/wiki/index.p...g_a_MIB_Module
I do :
# ./configure --with-mib-modules="nstAgentModuleObject"
# make
# make install
# snmpd
then :
# ...
-
Writing a MIB module
--===============0566524367==
Content-Type: multipart/alternative;
boundary="----=_Part_12279_16246820.1195840622611"
------=_Part_12279_16246820.1195840622611
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi all,
I want to write a MIB module, as in
http://www.net-snmp.org/wiki/index.p...g_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
------=_Part_12279_16246820.1195840622611
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi all,
I want to write a MIB module, as in http://www.net-snmp.org/wiki/index.p...g_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
------=_Part_12279_16246820.1195840622611--
--===============0566524367==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
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/
--===============0566524367==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
--===============0566524367==--
-
Re: Writing a MIB module
Hi ,
nstAgentModuleObject: Done initalizing nstAgentModuleObject module
ignoring attempted override of read-only sysContact.0
Error opening specified endpoint "udp:161"
Server Exiting with code 1
the above error due to port ...
The command to see opened port is
Vivek # lsof -i udp:161
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
snmpd 16648 root 6u IPv4 63331 UDP *:snmp
restart snmpd and Try again ...