Installing and Using the Net-SNMP Agent
The SRC software distribution includes a prepackaged integration for the Net-SNMP agent. For information about using the Net-SNMP master agent in an SRC environment, see:
- Installing the Net-SNMP Agent
- Configuring the Net-SNMP Agent
- Starting the Net-SNMP Agent
- Stopping the Net-SNMP Agent
- Monitoring the Net-SNMP Agent
- Locating the Log File
Installing the Net-SNMP Agent
Before you install the Net-SNMP agent, you must install the Python Runtime Environment (UMCpython and UMCpyadd packages) and disable all other SNMP master agents.
For more information about installing the SRC software packages, see Chapter 28, Installing the SRC Software on a Solaris Platform.
To install the Net-SNMP agent:
- On the UNIX host where you will install the Net-SNMP agent, log in as
root
.- Load SRC software disk 1 in the CD drive.
- Install the UMCnetsnmp package using the UNIX pkgadd tool.
pkgadd -d /cdrom/cdrom0/solaris UMCnetsnmpThe UMCnetsnmp package is installed in the /opt/UMC/net-snmp folder. Once installed, the Net-SNMP agent starts up automatically. The Net-SNMP agent also automatically restarts in the event of a host reboot.
Configuring the Net-SNMP Agent
The configuration file for the Net-SNMP agent is located in the installation directory (by default, /opt/UMC/net-snmp/etc/snmpd.conf). For more information about configuring the Net-SNMP agent, see the Net-SNMP documentation at:
http://net-snmp.sourceforge.net/
Starting the Net-SNMP Agent
To manually start the Net-SNMP agent:
- On the Net-SNMP agent host, log in as
root
or as an authorized nonroot admin user.- Start the Net-SNMP agent from its installation directory.
/opt/UMC/net-snmp/etc/snmpd start
Stopping the Net-SNMP Agent
- On the Net-SNMP agent host, log in as
root
or as an authorized nonroot admin user.- Stop the Net-SNMP agent from its installation directory.
/opt/UMC/net-snmp/etc/snmpd stop
Monitoring the Net-SNMP Agent
To display the Net-SNMP agent status:
- On the Net-SNMP agent host, log in as
root
or as an authorized nonroot admin user.- Display the status from the Net-SNMP agent installation directory.
/opt/UMC/net-snmp/etc/snmpd status
Locating the Log File
The log file for the Net-SNMP agent is located in the installation directory (by default, /opt/UMC/net-snmp/log/snmpd.log).