Enabling SNMP on a Windows machine
Despite the fact, that Microsoft depreciated SNMP for the Windows Server 2012 onwards, it is sometimes necessary to enable SNMP in this system. Below you will find a simple walkthrough how to do it.
Installation of the SNMP service on machines with various versions of Windows Server follows a similar route:
- You have to enable this feature in the Server Manager directly in Windows OS
- You need to configure SNMP, adjusting e.g. security parameters
This short article covers enabling SNMP on machines with Windows Server 2019 - however, it applies to all Windows Server versions currently supported by Microsoft, such as:
Installation of the service
Installation of the SNMP Service with Server Manager is pretty straightforward because the wizard guides you through the whole process. In short - it goes like this:
- Choose feature-based installation and desired server where you want to enable SNMP,
- Select 'File and Storage Services' and SNMP Service,
- Click on 'Add Feature', click 'Next' then 'Install'.
After installation is finished, a confirmation screen should be displayed:
Configuring the service
Now, having the SNMP service installed, it is time to configure it properly. Do the following:
- Run services.msc from Windows Administrative Tools,
- Locate 'SNMP Service' on the list and double-click to change its properties,
- Select the 'Security' tab, make sure 'Send authentication trap' checkbox is marked and provide whitelist for the hosts, from which SNMP packets should be accepted,
- Provide accepted community names and their rights (as a rule of thumb it should be a READ ONLY unless it's a community string used for configuration management).
With security settings configured, change startup type and service status according to your needs in the 'General' tab. Also, you can add Traps destinations to the list (in the 'Traps' tab), e.g. to receive the authentication trap from step #3, by typing Hostname and IP or IPX address to the relevant box, then save the settings.
And voilà, you can now use SNMP to monitor e.g. your printer server using NetCrunch:
As you can see above, even if Microsoft depreciated it, enabling and configuring the SNMP service on the Windows machine is still quite an easy task.
It is worth noting, that with NetCrunch you can use it to monitor the health state of your SNMP devices in many ways, from a simple check if the service is responding, to the more complex queries, with highly specialized features such as Generic CMYK Printer Monitoring Pack / Printer Sensor.