Enable SNMP in Servers (windows 10 ,Linux and MAC)

Enable SNMP in Servers (windows 10 ,Linux and MAC)

Windows 10

  1. Open the Settings on your Windows machine.
  2. Click Apps.
  3. Choose Manage optional features under Apps & features.
  4. Click Add a feature.
  5. Select Simple Network Management Protocol (SNMP) from the list.
  6. This will install the SNMP service in your end server.
  7. Restart your server.
  8. Go to services.msc>>search for SNMP service and right click on snmp service to security settings.
  9. Add your community and save the configuration.

Linux 


First install the SNMP daemon with these commands:

  • sudo apt-get install snmpd
  • sudo apt-get install snmp

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. Find the following entry:

  • # sec.name source community
    com2sec paranoid default public

Change the security setting paranoid to readonly or readwrite. Just like SNMP on Windows, adjust the community string if needed. Now restart the SNMP daemon with

  • sudo service snmpd restart

and you have accomplished the basic setup for SNMP v1 and SNMP v2c. 

It might be necessary to create a usable snmpd.config first. You can start a basic setup with this command:

  • sudo snmpconf -g basic_setup

MAC OS


These steps don’t require a system restart and are non-service affecting.  

  1. Open a new terminal window.
  2. Create a backup of the default SNMP configuration file:
sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
  1. Create and edit a new SNMP configuration file:
sudo nano /etc/snmp/snmpd.conf

Enter the following in the new configuration file:

com2sec mynetwork <NETWORK/CIDR> public
rocommunity public default .1

Replace <NETWORK/CIDR> with the network address and CIDR mask of the subnet. Replace the community string “public” with another string if that’s your preference.

Press CTRL-X to save the configuration file and exit the nano editor.

  1. Enable the SNMP daemon:
sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist

Note: If you later change the SNMP settings on your Mac, you’ll need to run the following two commands instead of the launchctl command above:

sudo launchctl unload /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist






                  New to ADSelfService Plus?

                    • Related Articles

                    • Install and Enable SNMP Service in Windows XP, Vista and 2003

                      Question: How to Install and Enable SNMP Service in Windows XP, Vista and 2003. Solution:  SNMP (Simple Network Management Protocol) is an internet protocol used in network management systems to monitor network-attached devices such as computers, ...
                    • Migrating OpManager from Linux installation to Windows installation

                      If OpManager is installed on Linux server and wants to move it to a Windows server for some reason, follow the steps below. 1.On the linux installation of OpManager, click About and check what is the build number of OpManager, download the windows ...
                    • How to Configure SNMP Service (Add SNMP Read/Write community string) on Windows devices

                      Question: How to Configure SNMP Service (Add “public” community string) Solution: Click on Start button, then go to Control Panel. Open "Service/SNMP" (Click Start >  type "services.msc  inside run window) Locate and right click on SNMP Service, then ...
                    • Configuring SNMP on Redhat Linux server

                      Question: How do I configure SNMP on my Redhat Linux server. Solution: (1) Edit the file /etc/snmp/snmpd.conf using a text editor such as vi, enter: # vi /etc/snmp/snmpd.conf Change/Modify line(s) as follows: Find the following Line: com2sec ...
                    • How to monitor Windows 2012 Server using local admin account?

                      Windows 2012 server can not be monitored using local admin account from a remote machine. We have to follow these steps on the monitored server to allow remote WMI polling for the local admin account. If you want to use a local user to monitor the ...