Solaris 10 should have Net-SNMP package installed already. It's preferable to use it instead of the Sun's SNMP package.
Below info is taken from this documentation. Please note that some Solaris DataSources require SSH credentials. Please refer to the DataSource description to verify whether these are required.
Log To disable Sun's SNMP
#svcadm disable svc:/application/management/snmpdx:default
the Net-SNMP daemon program locates at /usr/sfw/sbin/snmpd, and configure file of snmpd saved with the name snmpd.conf at /etc/sma/snmp. Use svcadm to start of stop snmpd: #svcadm enable svc:/application/management/sma:default #svcadm disable svc:/application/management/sma:default
If there's any error or warning messages, see the file /var/svc/log/application-management-sma\:default.log. The default log file of snmpd is /var/log/snmpd.log.
Configuration file We may use /etc/sma/snmp/snmpd.conf.save as the working configure file to test wheather our snmpd daemon is ok. #cp /etc/sma/snmp/snmpd.conf.save /etc/sma/snmp/snmpd.conf #svcadm restart sma
There is another file also named as snmpd.conf stored in /var/sma_snmp directory, and which is called persistent storage file. The persistent storage file, /var/sma_snmp/snmpd.conf, contains USM security information and any MIB components that are set for persistent storage. This file also contains the engineID and the engineID boots. This persistent storage file is automatically updated when the System Management Collector starts. When the System Management Collector stops, the snmpusm and snmpvacm utilities write user security information to this storage file.
Log Using the CollectorX Protocol
The CollectorX protocol is supported in the System Management Collector. By default, the System Management Collector ships with a secure profile, that is, read–only access. CollectorX allows interaction with third party subcollectors, provided that these subcollectors support CollectorX over Unix Domain Sockets. For security reasons, CollectorX is not supported over TCP/UDP. For more information on the CollectorX protocol, see https://www.ietf.org/rfc/rfc2741.txt Edit the main /etc/sma/snmp/snmpd.conf configuration file to configure the System Management Collector to use the CollectorX protocol. By default, the CollectorX protocol is disabled. The following procedure describes how to enable the CollectorX protocol. To enable the CollectorX protocol add the following to /etc/sma/snmp/snmpd.conf file:
restart the sma (system management collector). # svcadm restart svc:/application/management/sma:default
Using The SMA
To view the status of the collector # svcs svc:/application/management/sma:default
To See Which MIBs Are Initialized # /usr/sfw/sbin/snmpd -Dregister_mib -Dmib_init -L
To Check the Disk Space and Network on a Local or Remote Machine # /usr/sfw/bin/snmpwalk -v1 -c public localhost HOST-RESOURCES-MIB::hrStorageIndex
# /usr/sfw/bin/snmpget -v1 -c public localhost HOST-RESOURCES-MIB::hrStorageSize.1
# /usr/sfw/bin/snmpwalk -v1 -c public localhost HOST-RESOURCES-MIB::hrStorageUsed
# /usr/sfw/bin/snmpnetstat -v 2c -c public -a localhost
If all these resources work, the SMA is configured and implemented properly.