Hi,Dave and Hi,all I really appreciate your reply.But there are still
something I don't understand. > Did you actually *run* the snmpd agent that
you compiled?> "make install" just installs the software - it doesn't
automatically> start the agent.what's your exact meaning about "actually run
the snmpd agent that you compiled"? I started the snmpd service by the command
as follows: % /usr/local/sbin/snmpdthen no information returned. And I also
entered the command:% /etc/rc.d/init.d/snmpd startit showed the result to
me:start snmpd: [OK]so I thouht the snmpd service must be
started,otherwise I couldn't get the correct value from sysUpTime.0; But in
this case,I couldn't fetch the right feedback from nstAgentModuleObject.0. what
should I do? > You need to make sure that you start the correct one, and that
the other> version isn't already running.> It's safest to uninstall the
vendor-supplied version altogether.I'm sorry,i don't know how to guarantee
there is only
one correct snmpd.conf file running.And how to uninstall the vendor-supplied
version altogether? At last,I'd like to give some more information about my
situation. when I sent a request on "nstAgentModuleObject.0 -d" via snmpget,it
gave me the follow result: % snmpget -v 2c -c xzpublic localhost
NET-SNMP-TURORIAL-MIB::nstAgentModuleObject.0 -d Sending 50 bytes to
127.0.0.10000: 30 30 02 01 01 04 08 78 7A 70 75 62 6C 69 63 A0
00.....xzpublic.0016: 21 02 04 44 0F 0B 88 02 01 00 02 01 00 30 13 30
!..D.........0.00032: 11 06 0D 2B 06 01 04 01 BF 08 02 04 01 01 01 00
...+............0048: 05 00
.. Received 50 bytes from 127.0.0.1 0000: 30 30 02 01 01 04 08 78 7A
70 75 62 6C 69 63 A2 00.....xzpublic.0016: 21 02 04 44 0F 0B 88 02
01 00 02 01 00 30 13 30 !..D.........0.00032: 11 06 0D 2B 06 01 04 01
BF 08 02 04 01 01 01 00 ...+............0048: 80 00 NET-SNM
P-TURORIAL-MIB::nstAgentModuleObject.0=No Such Object available on this agent
at this OID. I've analyzed the two packets.There were only two difference
between them. One case was the byte "0A" in Sending packet,and the "A2" in
Received packet.I knew it meant the packet style,one was the GetRequest PDU,the
other was the Response PUD. And the other difference was the second-to-last
byte in each packet.I meant the byte "05" in Sending packet,and the "80" in
Received packet.I knew the byte "05" is a NULL style value binded in the
GetRequest PDU.But why there was nothing valuablereturn value binded in the
Response PDU? Instead,to gave me a "80" value? What wrong with it? So,At
last,I got a return value just said:No Such Object available on this agent at
this OID. What can I do to fix this problem? Thanks a lot!
_________________________________________________________________
使用下一代的 MSN Messenger。
http://imagine-msn.com/messenger/launch80/default.aspx?locale=zh-cn&source=wlmailtagline
-------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users