Entering a command such as:
# snmpinfo -m set dtAction.0=1
returns with an error "noSuchName at position 1".
Resolving the problem
In order to run any of the snmpinfo "set" commands, you need to set up the correct "writeView" for VACM_ACCESS.
- Verify the version of snmpd in use by entering the command:
ls -l /usr/sbin/snmpd
If the file is linked to snmpdv3ne, version 3 is in use and the correct configuration file is therefore /etc/snmpdv3.conf.
- Update the configuration file to grant the write permission for user:
The parameter after keyword VACM_ACCESS is the setup for writeView. In snmpdv3.conf the writeView parameter for group1 under VACM_ACCESS is set by default to "-". Change the "-" to "defaultView" to grant the write permission as shown below:
#VACM_ACCESS groupName contextPrefix contextMatch securityLevel securityModel readView writeView notifyView storageType
VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView - defaultView -
VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView defaultView defaultView -
- Recycle snmpd by entering these commands:
stopsrc -s snmpd
startsrc -s snmpd