Skip to content

Instantly share code, notes, and snippets.

@kirilkirkov
Created July 27, 2015 14:59
Show Gist options
  • Save kirilkirkov/820db876ae69df969a49 to your computer and use it in GitHub Desktop.
Save kirilkirkov/820db876ae69df969a49 to your computer and use it in GitHub Desktop.
Installing SNMP Deamon on Ubuntu and connecting to him .
Installation on server:
sudo apt-get update
sudo apt-get install snmpd
sudo vim /etc/snmp/snmpd.conf
------------------
# Listen for connections from the local system only
#agentAddress udp:127.0.0.1:161
# Listen for connections on all interfaces (both IPv4 *and* IPv6)
agentAddress udp:161,udp6:[::1]:161
-------------------
Simple connection to snmp deamon:
snmpwalk -v2c -c craz99test DEAMON_IP:161 1.3.6.1.4.1.2021.4.6.0
snmpwalk - Command to deamon
-v2c - Version of snmp
-c - cummunity
craz99test - name of cummunity (is set into /etc/snmp/snmpd.conf on the server)
88.85.67.155:161 - IP and port on server. (the port is not requered)
1.3.6.1.4.1.2021.4.6.0 - OID (In this example oid is to show user Ram)
Must be installed snmp, before on client maschine:
sudo apt-get update
sudo apt-get install snmp snmp-mibs-downloader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment