Help! "No Such Object available on this agent at this OID" about

This is a discussion on Help! "No Such Object available on this agent at this OID" about within the SNMP Users forums, part of the Networking and Network Related category; --===============0326188282== Content-Type: multipart/alternative; boundary="_fbf4d1b9-ba5d-4434-b27a-33875178e165_" --_fbf4d1b9-ba5d-4434-b27a-33875178e165_ Content-Type: ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-13-2007
Goodshirly
 
Posts: n/a
Default Help! "No Such Object available on this agent at this OID" about

--===============0326188282==
Content-Type: multipart/alternative;
boundary="_fbf4d1b9-ba5d-4434-b27a-33875178e165_"

--_fbf4d1b9-ba5d-4434-b27a-33875178e165_
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit

Hi,all

I'm doing some job with the NET-SNMP upon Linux.But there is something strange arised.

I wanted to write a MIB module of my own,but i didn't know how to start with it.
So i followed the tutorial in the web site: http://net-snmp.sourceforge.net/wiki...g_a_MIB_Module. As this is an example of how to write a MIB module. Then I've done the job as follows:

Firstly,I've downloaded the MIB named "NET-SNMP-TUTORIAL-MIB" from the web site,then I put this .txt file into the directory:/usr/local/share/ snmp/mibs; Then i've downloaded "example mib module"(nstAgentModuleObject.c) and "header file"(nstAgentModuleObject.h ) and put them into the directory:/usr/ local/src/net-snmp-5.1.4/agent/mibgroup.

Secondly,I entered the commands in the terminal as follows: # export MIBS=ALL # ./configure --with-mib-modules="nstAgentModuleObject" # make # make install

Then when i asked for a snmptranslate command,it gave me the right result: # snmptranslate -On NET-SNMP-TURORIAL-MIB::nstAgentModuleObject.0 .1.3.6.1.4.1.8072.2.4.1.1.1.0

but when i asked for a snmpget command,it gave me the result: # snmpget -v 2c -c xzpublic localhost NET-SNMP-TUTORIAL- MIB::nstAgentModuleObject.0 NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0=No Such Object available on this agent at this OID

Why?Why it didn't return the correct value to me?Is there anything important I ignored?

But when i entered the command as follows,it gave me the correct value: # snmpget -v 2c -c xzpublic loalhost sysUpTime.0 SNMPv2-MIB::sysUpTime.0=Timeticks:(500804)1:23:28.40

Why?

The information in the /usr/local/share/snmp/snmpd.conf are as follows: rocommunity xzpublic rwcommunity private trapsink localhost trap2sink 192.168.1.100

The information in the /etc/snmp/snmpd.conf are as follows:
com2sec notConfigUser default public com2sec read default xzpublic com2sec write default private

group notConfigGroup v1 notConfigUser group notConfigGroup v2 notConfigUser group readgroup v1 read group readgroup v2 read group writegroup v1 write group writegroup v2 write
view systemview included .1.3.6.1.2.1.1 view systemview included .1.3.6.1.25.1.1 view allview included .1 80

access notConfigGroup "" any noauth exact systemview none none access readgroup "" any noauth 0 allview none allview access writegroup "" any noauth 0 none allview allview

What's wrong with the whole procedure? Oh,one more question,what's the difference between the /usr/local/ share/snmp/snmpd.conf file and the /ect/snmp/snmpd.conf file?

Could you help me?
Thanks a lot! Looking forward to your help!
__________________________________________________ _______________
使用下一代的 MSN Messenger。
http://imagine-msn.com/messenger/lau...=wlmailtagline
--_fbf4d1b9-ba5d-4434-b27a-33875178e165_
Content-Type: text/html; charset="gb2312"
Content-Transfer-Encoding: 8bit

<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><DIV><A name=msg_49abc77e0168db8e></A><FONT size=3>Hi,all </FONT></DIV>
<DIV><FONT size=3><BR></FONT>&nbsp;</DIV>
<FONT size=3>I'm doing some job with the NET-SNMP upon Linux.But there is something <BR>strange arised. </FONT><BR>
<FONT size=3><BR></FONT>&nbsp;<BR>
<FONT size=3>I wanted to write a MIB module of my own,but i didn't know how to <BR>start with it. </FONT><BR><FONT size=3>
<BR>So i followed the tutorial in the web site: <BR></FONT><A href="http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_MIB_Module" target=_blank rel=nofollow><U><FONT color=#800080 size=3>http://net-snmp.sourceforge.net/wiki/index.php/TUT:Writing_a_MIB_Module</FONT></U></A><FONT size=3>. <BR>As this is an example of how to write a MIB module. <BR>Then I've done the job as follows: </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>Firstly,I've downloaded the MIB named "NET-SNMP-TUTORIAL-MIB" from the <BR>web site,then I put this .txt file into the directory:/usr/local/share/ <BR>snmp/mibs; Then i've downloaded "example mib <BR>module"(nstAgentModuleObject.c) and "header <BR>file"(nstAgentModuleObject.h ) and put them into the directory:/usr/ <BR>local/src/net-snmp-5.1.4/agent/mibgroup. </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>Secondly,I entered the commands in the terminal as follows: <BR># export MIBS=ALL <BR># ./configure --with-mib-modules="nstAgentModuleObject" <BR># make <BR># make install </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>Then when i asked for a snmptranslate command,it gave me the right <BR>result: <BR># snmptranslate -On NET-SNMP-TURORIAL-MIB::nstAgentModuleObject.0 <BR>.1.3.6.1.4.1.8072.2.4.1.1.1.0 </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>but when i asked for a snmpget command,it gave me the result: <BR># snmpget -v 2c -c xzpublic localhost NET-SNMP-TUTORIAL- <BR>MIB::nstAgentModuleObject.0 <BR>NET-SNMP-TUTORIAL-MIB::nstAgentModuleObject.0=No Such Object available <BR>on this agent at this OID </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>Why?Why it didn't return the correct value to me?Is there anything <BR>important I ignored? </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>But when i entered the command as follows,it gave me the correct <BR>value: <BR># snmpget -v 2c -c xzpublic loalhost sysUpTime.0 <BR>SNMPv2-MIB::sysUpTime.0=Timeticks:(500804)1:23:28.40 </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>Why? </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>The information in the /usr/local/share/snmp/snmpd.conf are as <BR>follows: <BR>rocommunity xzpublic <BR>rwcommunity private <BR>trapsink localhost <BR>trap2sink 192.168.1.100 </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>The information in the /etc/snmp/snmpd.conf are as follows: <BR></FONT>
<P><FONT size=3>com2sec notConfigUser default public <BR>com2sec read default xzpublic <BR>com2sec write default private </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>group notConfigGroup v1 notConfigUser <BR>group notConfigGroup v2 notConfigUser </FONT><FONT size=3><BR>group readgroup v1 read <BR>group readgroup v2 read <BR>group writegroup v1 write <BR>group writegroup v2 write <BR><BR></FONT>
<FONT size=3>view systemview included .1.3.6.1.2.1.1 <BR>view systemview included .1.3.6.1.25.1.1 <BR>view allview included .1 80 </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>access notConfigGroup "" any noauth exact systemview none none <BR>access readgroup "" any noauth 0 allview none allview <BR>access writegroup "" any noauth 0 none allview allview </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>What's wrong with the whole procedure? <BR>Oh,one more question,what's the difference between the /usr/local/ <BR>share/snmp/snmpd.conf file and the /ect/snmp/snmpd.conf file? </FONT><BR>
<FONT size=3><BR>&nbsp;<BR></FONT>
<FONT size=3>Could you help me? <BR></FONT>
<P><FONT size=3>Thanks a lot! Looking forward to your help! <BR></FONT><BR><br /><hr />使用下一代的 MSN Messenger。 <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=zh-cn&source=wlmailtagline' target='_new'>立即尝试!</a></body>
</html>
--_fbf4d1b9-ba5d-4434-b27a-33875178e165_--


--===============0326188282==
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 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/
--===============0326188282==
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

--===============0326188282==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:26 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0