On 23 March 2011 21:45, Donald Russell <[email protected]> wrote:
> OK, I now have two "extensions" in my config file...
> 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
No - that won't work.
Typically, any entry configured via the snmpd.conf file will be "read-only".
( I can explain the reasoning behind this if you like,
but it's essentially concerned with what happens of the agent is restarted)
The simplest approach here would be to configure
extend cmm /usr/local/bin/cmm
extendfix cmm /usr/local/bin/cmm some new args
and then issue
snmpset nsExtendRunType."cmmFix" = 3
Alternatively, set the entry up using SET commands.
That will allow the settings to be changed subsequently.
> 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.
No - an access of read-create is sufficient to allow changes to the table.
The issue here is that nsExtendStorageType is set to 'read-only' for
snmpd.conf entries.
> So, how do I set the new nsExtendArgs value and run the command?
See above
Dave
------------------------------------------------------------------------------
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