Run the following commands on the terminal:
- Update all packages: sudo apt-get update
- Install SNMP: sudo apt-get install snmpd
- 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
- 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 - Configure rocommunity: rocommunity public
-Change “public” to your community name - Configure sysLocation: sysLocation Steelcase
- Configure sysContact: sysContact TASProvider.com
- Restart the SNMPD service: sudo service snmpd restart
- 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