Alex's Ramblings

Installing SNMP V3 on a Ubuntu/Debian Server

April 8, 2019

There is a very simple way to install SNMP v3 on Ubuntu/Debian, just run the following commands on your server:

apt install snmpd snmp libsnmp-dev -y

cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak

cat /dev/null > /etc/snmp/snmpd.conf

service snmpd stop

net-snmp-create-v3-user -ro -A <your_password> -a SHA -X <your_encryption_password> -x AES <your_username>

systemctl start snmpd

systemctl enable snmpd

You should be able to return all data from your SNMP server using the following command (make sure you set your username, password and encryption password):

snmpwalk -v3 -a SHA -A <your_password> -x AES -X <your_encryption_password> -l authPriv -u <your_username> localhost | head