On Thu, Aug 05, 2004 at 02:54:27PM -0700, Fong Tsui wrote:
> I am running net-snmp 5.0.9 on linux. I am testing to set an integer which is out
> of range.
> I have a master agent and a subagent.
>
> 1) When I run snmpset from localhost, it seems the master checks oid validation
> first. it gives:
> .1.3.6.1.2.1.16.1.1.1.21.65536: Unknown Object Identifier (Index out of range: 65536
> (etherStatsIndex))
$ snmptranslate -Td -mall 1.3.6.1.2.1.16.1.1.1.1
RMON-MIB::etherStatsIndex
etherStatsIndex OBJECT-TYPE
-- FROM RMON-MIB
SYNTAX Integer32 (1..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION "The value of this object uniquely identifies this
etherStats entry."
::= { iso(1) org(3) dod(6) internet(1) mgmt(2) mib-2(1) rmon(16)
statistics(1) etherStatsTable(1) etherStatsEntry(1) 1 }
so, the index you specified is out of range according to the mib.
snmpset detects this, and refuses to send the request to the agent.
The make snmpset omit this check, use the -Ir option.
> 2) However, if I run from remote machine (the same net-snmp snmpset), it gives:
> Error in packet.
> Reason: (tooBig) Response message would have been too large.
> Failed object: iso.3.6.1.2.1.16.1.1.1.21.65536
In this case snmpset does not have access to the mib file, so it cannot
perform the check. But seems that the agent did something strange in
this case ...
/Niels
--
Niels Baggesen - @home - �rhus - Denmark - [EMAIL PROTECTED]
The purpose of computing is insight, not numbers --- R W Hamming
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders