Oracle® VM Server for SPARC 3.2 Administration Guide

Exit Print View

Updated: May 2015
 
 

How to Create the Initial snmpv3 User

This procedure describes how to create the initial snmpv3 user on an Oracle Solaris 10 or Oracle Solaris 11 system.

You can create additional users by cloning this initial user. Cloning enables subsequent users to inherit the initial user's authentication and security types. You can change these types later.

When you clone the initial user, you set secret key data for the new user. You must know the passwords for the initial user and for the subsequent users that you configure. You can only clone one user at a time from the initial user. See “To Create Additional SNMPv3 Users with Security” in Solaris System Management Agent Administration Guide for your version of the Oracle Solaris OS.

  1. Stop the Oracle Solaris SNMP agent.
    • Oracle Solaris 10:
      # svcadm disable -t svc:/application/management/sma:default
    • Oracle Solaris 11:
      # svcadm disable svc:/application/management/net-snmp:default
  2. Create the initial user.

    This step creates user initial-user with a password that you choose, my-password, and adds an entry to the /etc/sma/snmp/snmpd.conf file. This entry gives the initial user read and write access to the agent.


    Note - Passwords must contain at least eight characters.
    • Oracle Solaris 10:
      # /usr/sfw/bin/net-snmp-config --create-snmpv3-user -a my-password initial-user
    • Oracle Solaris 11:
      # /usr/bin/net-snmp-config --create-snmpv3-user -a my-password initial-user
  3. Start the Oracle Solaris SNMP agent.
    • Oracle Solaris 10:
      # svcadm enable svc:/application/management/sma:default
    • Oracle Solaris 11:
      # svcadm enable svc:/application/management/net-snmp:default
  4. Verify that the initial user has been created.
    # snmpget -v 3 -u initial-user -l authNoPriv -a MD5 -A my-password localhost sysUpTime.0