Enabling SNMP on Solaris 10 and Solaris 11

This article provides the simple steps to enable SNMP under Solaris 10 and Solaris 11

Solaris 10

  1. Edit community string, acl on config file:
    /etc/sma/snmp/snmpd.conf
  2. By default SNMP service is installed and enabled on Solaris 10 with service name: sma
  3. After change config file you need to restart sma service for changes take effect.
    # svcadm restart sma
    MIBs are located in: /etc/sma/snmp/mibs/

Solaris 11

  1. Edit community string, acl on config file:
    /etc/net-snmp/snmp/snmpd.conf
  2. By default SNMP service is installed and disabled on Solaris 10 with service name: net-snmp so we need to enable it:
    # svcadm enable net-snmp
  3. MIB located in: /etc/net-snmp/snmp/mibs/

Testing SNMP

You can test using snmpwalk

# snmpwalk -v2c -cpublic IP_ADDRESS