NET-SNMP Installation - Guide
NET-SNMP Installation - Guide
guide
net-snmp target version is 5.7 or 5.8
Installation
ubuntu
$ sudo apt install snmpd snmp libsnmp-dev snmp-mibs-downloader
fedora
$ sudo dnf install net-snmp net-snmp-utils net-snmp-devel
arch
$ sudo pacman -S net-snmp
mac
$ brew install net-snmp
Agent Configuration
1 of 6
creating a work dir - that is known by default to the snmpd
$ mkdir ~/.snmp
$ cd ~/.snmp
lets create and snmpd.conf file with the help of the snmpconf (read the
instrutions that it gives to you)
$ snmpconf
none
snmpd.conf
Access Control Setup
a SNMPv1/SNMPv2c read-write access community name
gr2020
localhost
(press enter)
finished
finished
quit
e.g.: /etc/snmp/
2 of 6
start the agent
linux:
APPLETALK_HOSTNAME
SNMPSERVER:=-YES-
Test it
3 of 6
$ snmpwalk -v 2c localhost -c gr2020 system
lets create and snmp.conf file with the help of the snmpconf (read the
instrutions that it gives to you)
$ snmpconf
none
snmp.conf
Default Authentication Options
The default snmp version number to use
2c
The default snmpv1 and snmpv2c community name to use when needed
gr2020
finished
finished
quit
Test it
$ snmpwalk localhost system
4 of 6
Set your laptop location in "time and space"
set system.sysLocation.0
$ snmpset localhost system.sysLocation.0 s "planet earth?"
get system.sysLocation.0
$ snmpget localhost system.sysLocation.0
5 of 6
Not really!!!
but for something like this, it's possible...
6 of 6