On Tue, Mar 22, 2011 at 02:49, Dave Shield <[email protected]>wrote:
>
>
> If you want to pass request-specific information to the script
> when it's invoked, you can always issue a SET request that
> assigns new values to the nsExtendArgs and/or nsExtendInput
> instances, as well as the nsExtendRunType trigger.
>
OK, I now have two "extensions" in my config file and have restarted snmpd
(as root)...
extend cmm /usr/local/bin/cmm
extendfix cmm /usr/local/bin/cmm
snmpwalk ... nsExtendConfigTable
shows what I expect... "cmm" items and "cmmFix" items
So, now I want to send my specific set request
$snmpset nsExtendArgs.\"cmmFix\" = "some new args"
nsExtendRunType.\"cmmFix\" = 3
Error in packet.
Reason: notWritable (That object does not support modification)
Failed object: NET-SNMP-EXTEND-MIB::nsExtendArgs."cmmFix"
Note: snmpset is aliased to use the -v and ic rwcommunity and host
I'm so close... the error makes sense; in the MIB file I see those variables
have a max access of read-create, so I sort of expect a write to fail.
So, how do I set the new nsExtendArgs value and run the command?
>From snmpwalk...
NET-SNMP-EXTEND-MIB::nsExtendRunType."cmmFix" = INTEGER: run-on-set(2)
Thank you
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders