Simple Network Management Protocol or SNMP is used for monitoring, event notification, and device management on the corporate networks. The protocol consists of a set of network management standards, including the Application Layer protocol, database schemas, and a set of data objects. SNMP can receive various information (uptime, performance counters, device parameters, etc.) from any network devices: switches, servers, routers or computers on which the SNMP agent is installed. In Windows 10 the SNMP service is available as a separate Windows component and it’s not installed by the default.
How to Install SNMP Service in Windows 10?
You can check if the SNMP service is installed on your Windows 10 using the PowerShell cmdlet Get-Service:
Get-Service -Name snmp*
Most likely the service has not been installed yet.
You can install the SNMP service via the Control Panel. Go to Control Panel > Programs and Features > Turn Windows features on or off. In the list of Windows features, select Simple Network Management Protocol (SNMP) and the WMI SNMP Provider (provides access to SNMP information via the Windows Management Instrumentation interfaces) and click OK.
You can also install SNMP service using PowerShell:
Enable-WindowsOptionalFeature -online -FeatureName SNMP
Configure SNMP on Windows 10 Machine
After the installation, SNMP services should start automatically. Open the Services management console (services.msc). Two new services should appear in the service list:
- SNMP Service – This is the primary SNMP agent service, that tracks activity and sends information;
- SNMP Trap – Receives trap messages from local or remote SNMP agents, and forwards messages to the SNMP management software that is being run on that computer.
Open the properties of the SNMP Service. If it is stopped, start it by pressing the Start button and change the startup type to Automatic.
Click the Agent tab. Fill in the Contact and Location fields (you can specify the user’s contact name and computer location), and select the list of services from which you want to collect data and send to the monitoring device. There are five service-based options:
- Datalink and subnetwork.
Click the Security tab. Here you can configure various security settings for different SNMP servers.
The list of Accepted community names contains the names of the communities whose SNMP hosts are authenticated to send SNMP requests to this computer. Community name has the same functions as login and password.
Click the Add button and specify the Community Name and one of the five access levels (None, Notify, READ ONLY, READ WRITE, READ CREATE). READ WRITE is the maximum access level at which the SNMP management server can make changes on system. For monitoring systems, it is usually enough to select READ ONLY, while the monitoring server can only poll the system, but not make changes. In our example, we added community name public with READ ONLY rights.
Next, add to the Accept SNMP packets from these hosts list of monitoring servers (hostnames or IP addresses) from which you want to accept SNMP packages.
Tip. You can select the Accept SNMP packets from any host option, but this is not safe.
Save the changes and restart the SNMP service.
This completes the SNMP service configuration in Windows 10. If you need to enable SNMP on multiple computers or servers, you can remotely install and configure SNMP service using PowerShell or Group Policy.