Enabling SNMP Agent on Linux Systems

Top  Previous  Next

Refer to appropriate subsection to enable SNMP Agent on Linux system using one of two ways:

Using RPM package
Using ZIP archive

Install Using RPM

1. Download the latest rpm version of SNMP from
http://prdownloads.sourceforge.net/net-snmp/net-snmp-5.1.1-1.rh9.i686.rpm?download
2. Login as root user.
3. Before installing the new version of net-snmp, you need to remove the earlier versions of net-snmp in your machine. To list the versions of net-snmp installed in your machine, execute the following command:
rpm -qa | grep "net-snmp"
4. If there are already installed version in your machine, remove them using the command:
rpm -e <version of net-snmp listed as the output for previous command> --nodeps
5. If there are no previously installed versions in your machine, then execute the following command to install the new version:
rpm -i <new downloaded version of SNMP agent> --nodeps

This completes the installation process. For configuring SNMP agents to respond to SNMP requests, refer to Configuring SNMP agents.

Install Using ZIP

1. Download the zip version of SNMP from
http://heanet.dl.sourceforge.net/sourceforge/net-snmp/ucd-snmp-4.2.6.tar.gz
2. Extract the file using following command:
tar -zxvf ucd-snmp-4.2.6.tar.gz
3. Login as root user.
4. Execute the command to set the path of the C compiler:
export PATH=<gcc path>:$PATH
5. Execute the following four commands from the directory where you have extracted the ucd-snmp (directory_name is the directory to install SNMP agent; preferably choose a directory under /root, as directories /usr and /local might contain files of an older version of SNMP):
./configure --prefix=<directory_name> --with-mib-modules="host"
make
umask 022
make install

This completes the installation process. For configuring SNMP agents to respond to SNMP requests, refer to Configuring SNMP agents.