The Simple Network Management Protocol (SNMP), that has accompanied IT professionals for decades, is available on a large number of devices and solutions including Cisco network equipment. This is great because it's one of the most basic technologies for monitoring and other network management tasks. Although SNMP won't fix the internet for you, you won't come across SNMP if you are a system administrator and responsible for IT infrastructure.
SNMP configuration is critical for network administrators that want to remotely monitor devices on their networks and keep an eye on bandwidth consumption. This step-by-step guide on how to configure SNMP will walk you through the setup process, whether you're just getting started with SNMP or already have SNMP in place and are working to get things configured correctly. Detailed instructions for all major operating systems and all platform use cases are included.
There are a number of important things to keep in mind when configuring SNMP for network monitoring and device management. First things first: Enable SNMP! We'll show you how to enable SNMP on computers and servers running Windows, Linux, Red Hat and macOS operating systems in this article.
Prerequisites for SNMP Configuration:
Overview
Installing and configuring SNMP service on different Windows client and server operating system versions is nearly identical. Both GUI (Graphical Unit Interface) and PowerShell can be used. We will demonstrate both options and provide technical support tips.
SNMP service is already installed on Windows operating system versions before Windows 8 or Windows Server 2012. For Windows 8, Windows 10, Windows 11, Windows Server 2012, Windows Server 2016, Windows Server 2019 and Windows Server 2022 you need to install SNMP service first.
If you are running Windows 7, Windows 8/8.1, or Windows 10 up to version 1804, you can enable SNMP via Control Panel. Here's how:
Your SNMP is installed, and you need to configure it.
If you are running Windows 10 version 1809 and onwards, or Windows 11, you can install SNMP only via PowerShell and not through Control Panel. This change was implemented because Microsoft deprecated SNMP and removed it from Control Panel. However, they still provide an option to install it via PowerShell.
That's it. You successfully installed SNMP.
If you are running Windows Server 2012 R2 and onwards, including Windows Server 2022, you can install SNMP using PowerShell (similarly to Windows) or through Server Manager (GUI). In this guide, we will demonstrate how to do it using the GUI interface.
That's it! You have successfully installed SNMP on Windows Server 2022.
Before proceeding with configuration, consider implementing these security measures:
After you have installed SNMP, the next step is to configure it appropriately. To do this, follow these steps for both Windows and Windows Server.
That's it! You have successfully configured SNMP on your Windows machine.
To install SNMP on Windows without Internet access, you need to download the Features on Demand ISO from your VLSC account. After downloading, mount the ISO file, open PowerShell as administrator, and execute the following commands:
Dism /online /add-package /packagepath:"D:\[EnterSNMPfilename].cab"
Dism /online /Add-Capability /CapabilityName:"SNMP.Client~~~~0.0.1.0"
If prompted, reboot your Windows machine.
Lastly, configure SNMP on your machine by following the procedure described in the section Step 2: Configure SNMP.
Now look at how you can enable SNMP on Linux. We describe the setup process for Ubuntu, Debian, CentOS and OpenSuse.
In the first step you need to install the SNMP deamon
| Ubuntu/Debian | sudo apt-get install snmp snmpd snmp-mibs-downloader |
| CentOS/Red Hat | Sudo dnf install net-snmp |
| OpenSuse | Zypper install net-snmp snmp-mibs |
You will now find the SNMP configuration in /etc/snmp/snmpd.config. Make a backup of the original configuration file and open snmpd.config with an editor. Now set the community string.
| Ubuntu/Debian | rocommunity public |
| CentOS/Red Hat | com2sec default public |
| OpenSuse | rocommunity public |
public is the default community string that most SNMP devices listen to, compatible with SNMPv2c. Of course you can also choose a string individually. The only important thing is that the string is also the same on the devices to be queried. For testing your SNMP configuration, you can use the snmpwalk command to verify connectivity and data retrieval.
If you are using OpenSuse, the snmpd service may not be activated and started by default. In this case, activate the snmpd service so it will start on system boot with the command: systemctl enable snmpd. Then start the service with the command systemctl start snmpd.
Advanced users can configure SNMPv3 traps for proactive monitoring and set up SSH access for secure remote management.
For other Linux distributions you might have to adjust the steps mentioned above slightly.
Current macOS versions include SNMP by default. You can use the basic setup assistant to appropriately configure SNMP on your Mac:
Configure read-only community access for SNMP v1/v2c by answering the setup questions and start the SNMP daemon:
Best practice is to add your SNMP daemon to automatic startup to manage the macOS machine via SNMP in a comfortable way.
👉 Download PRTG Free Trial and start comprehensive network monitoring in minutes. Monitor up to 100 sensors free forever.
PRTG Network Monitor supports comprehensive SNMP monitoring with over 250 sensor types. Monitor traffic, hardware status, system uptime, and custom metrics across your entire network infrastructure. PRTG's SNMP sensors offer very low performance impact while providing detailed monitoring capabilities for enterprise environments.