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?