SNMP - How to enable SNMP on Ubuntu Print

  • 0

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

Was this answer helpful?

« Back