SNMP - How to enable SNMP on Ubuntu

Run the following commands on the terminal:

  1. Update all packages: sudo apt-get update
  2. Install SNMP: sudo apt-get install snmpd
  3. Edit snmpd.conf with text editor of your choice, I will be using nano, as this is an easy editor, so type: sudo vi /etc/snmp/snmpd.conf
  4. Configure agentAddress: agentAddress udp:161,udp6:[::1]:161
    -This will set the server to listen on all IPv4 and IPv6 addresses (remove the ‘#’ in front of the agentAddress, to enable it!)
    – To bind it to a specific IP address use (ex.): agentAddress udp:192.168.0.218:161
  5. Configure rocommunity: rocommunity public
    -Change “public” to your community name
  6. Configure sysLocation: sysLocation Steelcase
  7. Configure sysContact: sysContact TASProvider.com
  8. Restart the SNMPD service: sudo service snmpd restart
  9. Check that SNMPD is started OK with this: sudo service snmpd status

 

 

com2sec readonly default          public

group MyROGroup v2c         readonly
view all    included .1                              80
access MyROGroup ""     any       noauth     exact   all none none 

syslocation TASProvider
syscontact tasprovider.com

extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

LibreNMS

Usage: check_http -H <vhost> | -I <IP-address> [-u <uri>] [-p...

SNMP - How to enable SNMP on ESXi 7.x

SSH or Telnet to your ESXi node using root-level credentials. Execute the following commands....

SNMP - How to enable SNMP on CentOS

Run the below commands: yum install net-snmp yum install net-snmp-utils snmpconf -g...

How to restore missing SNMP in Windows 10

Enter PowerShell as the keyword in the search box. Right-click PowerShell and select Run as...