> When I do:
> enterprises.myBranch.main.myTable.myEntry.myIndex.5
> snmpset -v1 -c private -m all localhost .1.3.6.1.4.1.9999.1.4.1.1.5
>
> myIndex does have a STATUS of 'read-only'.
But the core agent driving code doesn't know that.
It's up to the "subagent" (i.e. the pass-script) to reject
any invalid requests.
> The snmpd tries to run my script
Yes - because that script is responsible for *all* requests to that
subtree. The main agent doesn't know anything about these individual
objects. That's the job of the pass script "agent.py"
> even though I'm performing an snmpset on a
> read-only variable. How should I handle this case?
The pass script should detect that this is a SET request for
a read-only object (i.e. it receives "set"), and return an
appropriate error ("not-writable")
Dave
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users