Trending October 2023 # Beginners Guide To Installing, Using, And Configuring Net # Suggested November 2023 # Top 17 Popular |

Trending October 2023 # Beginners Guide To Installing, Using, And Configuring Net # Suggested November 2023 # Top 17 Popular

You are reading the article Beginners Guide To Installing, Using, And Configuring Net updated in October 2023 on the website We hope that the information we have shared is helpful to you. If you find the content interesting and meaningful, please share it with your friends and continue to follow and support us for the latest updates. Suggested November 2023 Beginners Guide To Installing, Using, And Configuring Net

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.

Download and Installation

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:


apt-get install


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



chúng tôi 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:

            Net-SNMP configuration summary:

  SNMP Versions Supported:   




  Building for:               linux   Net-SNMP Version:           5.7.3   Network transport support:  Callback Unix Alias TCP UDP IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase   SNMPv3 Security Modules:     usm   MYSQL Trap Logging:         unavailable   Embedded Perl support:      enabled   SNMP Perl modules:          building


embeddable   SNMP Python modules:        disabled   Crypto support from:        internal   Authentication support:     MD5 SHA1   Encryption support:         DES AES   Local DNSSEC validation:    disabled






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


apt-get install


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:


apt-get install


Now start the daemon process using the following command:






snmpd start

This should start the network management service on your system.

Basic Usage

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





public SNMPv2-MIB::sysUpTime.0

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:

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks:







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.

$ snmpwalk



public localhost system SNMPv2-MIB::sysDescr.0 = STRING: Linux himanshu-desktop 3.13.0-



#57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014 i686

SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks:







SNMPv2-MIB::sysName.0 = STRING: himanshu-desktop ... ... ...

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.

Himanshu Arora

Himanshu Arora is a freelance technical writer by profession but a software programmer and Linux researcher at heart. He covers software tutorials, reviews, tips/tricks, and more. Some of his articles have been featured on IBM developerworks, ComputerWorld, and in Linux Journal.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.

By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time.

You're reading Beginners Guide To Installing, Using, And Configuring Net

Update the detailed information about Beginners Guide To Installing, Using, And Configuring Net on the website. We hope the article's content will meet your needs, and we will regularly update the information to provide you with the fastest and most accurate information. Have a great day!