Installing and Using the Net-SNMP Agent
The SDX software distribution includes a prepackaged integration for the Net-SNMP agent. For information about using the Net-SNMP master agent in an SDX 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 (SMCpython and UMCpyadd packages) and disable all other SNMP master agents. For more information about installing the SDX software packages, see Chapter 5, Installing the SDX-300 Software.
To install the Net-SNMP agent:
- On the UNIX host where you will install the Net-SNMP agent, log in as
root.- Load SDX 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
rootor as an authorized nonroot admin user.- Start the Net-SNMP agent from its installation directory.
/opt/UMC/net-snmp/etc/snmpd startStopping the Net-SNMP Agent
- On the Net-SNMP agent host, log in as
rootor as an authorized nonroot admin user.- Stop the Net-SNMP agent from its installation directory.
/opt/UMC/net-snmp/etc/snmpd stopMonitoring the Net-SNMP Agent
To display the Net-SNMP agent status:
- On the Net-SNMP agent host, log in as
rootor as an authorized nonroot admin user.- Display the status from the Net-SNMP agent installation directory.
/opt/UMC/net-snmp/etc/snmpd statusLocating 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).