>
> > Or, the man page says "extend" items can be added dynamically.... that
> would
> > be great... I can have a system start up script dynamically add the
> > run-on-get and the run-on-set scripts. (Actually the same script, args
> would
> > determine action taken)
>
> That would use SET requests to build up the entry in the
> nsExtendConfigTable.
> Try configuring a row using "extend", and walk this table to see what the
> entry looks like. Then use "snmpset" with equivalent varbinds (and an
> nsExtendStatus value of 'createAndGo')
>
I thought I'd try a simple example...
ext='\"dnr\"'
snmpset -v 2c -c private localhost \
nsExtendStatus.$ext = 'createAndGo' \
nsExtendRunType.$ext = 'run-on-set' \
nsExtendCommand.$ext = '/bin/date' \
nsExtendArgs.$ext = ''
But that resulted in a bunch of (the same) errors:
nsExtendStatus.\"dnr\": Unknown Object Identifier (Index out of range:
\"dnr\" (nsExtendToken))
nsExtendRunType.\"dnr\": Unknown Object Identifier (Index out of range:
\"dnr\" (nsExtendToken))
nsExtendCommand.\"dnr\": Unknown Object Identifier (Index out of range:
\"dnr\" (nsExtendToken))
nsExtendArgs.\"dnr\": Unknown Object Identifier (Index out of range: \"dnr\"
(nsExtendToken))
So then I thought, maybe the extension name should not be specified on the
nsExtendStatus... nope.
Maybe I need to set nsExtendToken (though the MIB says it's inaccessible)
Then I tried leaving my extension name off all the items, only specifying it
for the token...
Nope, still not created...
I'm at the very last step of understanding how this works. :-)
Will you please provide a simple example (as above) of how to dynamically
create an nsExtend item?
Thanks very much
------------------------------------------------------------------------------
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