I made the following shell script to perform a simple operation.
#!/bin/sh
#name file: /etc/snmp/TestSet.sh
id = $1
ping id
and
chmod a+wx TestSet.sh
I also config setting the in "/etc/confing/snmp"
config extend
option name 'testset'
option prog '/bin/sh'
option args '/etc/snmp/TestSet.sh'
option group 'private'
option secname 'rw'
option community 'private'
now, i want to input it with this command
snmpset -v2c -Ir -c private 127.0.0.1 NET-SNMP-EXTEND-MIB::nsExtendInput."testset" s "8.8.8.8"
but i get error
NET-SNMP-EXTEND-MIB::nsExtendInput.testset: Unknown Object Identifier (Index out of range: testset (nsExtendToken))