Problem(Abstract)


Entering a command such as:
# snmpinfo -m set dtAction.0=1
returns with an error "noSuchName at position 1".


Cause


No write permission to snmpd MIB values.


Resolving the problem


In AIX 5.2, the default level of snmpd is version 3, not version 1 (as it is in AIX 5.1). The configuration file for version 3 is /etc/snmpdv3.conf, whereas version 1 uses the configuration file /etc/snmpd.conf.

In order to run any of the snmpinfo "set" commands, you need to set up the correct "writeView" for VACM_ACCESS.


  1. 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.
  2. 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 -
    to
    VACM_ACCESS group1 - - noAuthNoPriv SNMPv1 defaultView defaultView   defaultView -
  3. Recycle snmpd by entering these commands:
    stopsrc -s snmpd
    startsrc -s snmpd