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))

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 the case #1, it has never getting into the subagent where the data is. 
In the case #2, it goes into var_XXX function in subagent.
 
I wonder why it is different? Where in code should I look into it?

Thanks,

Fong


-------------------------------------------------------
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

Reply via email to