How to configure SNMPv3 on Ubuntu 12.04

On the page

Do you need help?

Prerequisite: Stop the snmpd daemon
/etc/init.d/snmpd stop

-> It is essential that this daemon is stopped to take into account the users!

1 - Edit the general configuration of the snmpd daemon
nano /etc/snmp/snmpd.conf

2 - Add/modify users according to the desired authentication/encryption

createUser user1
createUser user2 MD5 user2password
createUser user3 MD5 user3password DES user3encryption

# Only specify a particular OID if you wish to restrict the visibility of the user. Leave blank for global access.
rouser user1 noauth
rouser user2 auth
rwuser user3 priv

3 - Delete a temporary snmpd file
rm /var/lib/snmp/snmpd.conf

4 - Restart the snmpd daemon
/etc/init.d/snmpd restart

5 - Examples of snmp connections

snmpget -v 3 -u user1 -l NoauthNoPriv cosvgre05 .
snmpget -v 3 -u user2 -l authNoPriv -a MD5 -A user2password cosvgre05 .
snmpget -v 3 -u user3 -l authPriv -a MD5 -A user3password -x DES -X user3encryption cosvgre05 .

You may also be interested in

Configure IBM AS/400 monitoring requirements


Welcome to ServiceNav!

Do you need some help? More information about our products? Write to us!
You have taken note of our privacy policy.
We use cookies to ensure the best experience on our site. If you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

You have taken note of our privacy policy.