Beginners Guide to Installing, Using, and Configuring Net-SNMP – Part 1 – Himanshu Arora

This article is part of the Net-SNMP series:

Simple Network Management Protocol (SNMP) is a protocol which is widely used for monitoring network-attached devices, including routers, switches, servers, and more, for conditions that require administrative attention.

Net-SNMP is a set of tools and libraries for using and deploying the SNMP protocol. In this article, we will discuss how to download, install, and start using the Net-SNMP suite.

Note – it is expected that readers have at least a basic knowledge of SNMP (including OIDs and MIBs)  as well as how it works.

You can download the latest version of the package from its Sourceforge page. For example, I downloaded version 5.7.3 of the package from the project hosting website using the following command:

Please note that the Net-SNMP package depends upon the Perl development package, which you can easily install using the following command:

Once done, decompress the downloaded package using the following command:

Then enter into the main directory and configure the package :

This will throw up a series of questions that’ll help the Net-SNMP suite determine how the SNMP-related applications are to function. For example, it will ask you which SNMP version (1, 2c, or 3) to use as default:


Whom to contact:


Location of the system:


And location to store the logfile and persistent information.


You can either enter the requested values or keep pressing the Enter key for the configuration script to pick up the default values. Once done, the configuration script will continue with its work, and if everything goes well, you should get something similar to the following:

This means that the configuration part is successful. Next up, compile and install the package using the following two commands:

Now, execute the following command to download and install the Management Information Base (MIB) files on your system:

Next, download and install SNMP agent – a daemon process that performs network management functions as ordered by the manager, which itself is a central system used for monitoring traffic seen by the various SNMP agents. This can be done using the following command:

Now start the daemon process using the following command:

This should start the network management service on your system.

To check if the package has been properly set up, use the snmpget command to check the system uptime:

If you aren’t aware, snmpget is an application that uses the SNMP GET request to query for information on a network entity. On my Ubuntu box, the command produced the following output:

In the output shown above, the last part is the system uptime, indicating that the system had been up for approximately 4 minutes 27 seconds. A point worth mentioning here is that this time is calculated from the time the snmpd daemon was started.

Similarly, you can run the following snmpwalk command to display values corresponding to system-specific variables present under the “” MIB tree.

For those who aren’t aware, the snmpwalk command is designed to retrieve multiple OIDs and values from the remote agent.

As you would have observed, this article was aimed to give you an idea about how to download and install the Net-SNMP package properly. In the second part, we will cover all the basics related to Net-SNMP configuration.

Source: Beginners Guide to Installing, Using, and Configuring Net-SNMP – Part 1 by

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.