Skip to content

Instantly share code, notes, and snippets.

@dlangille

dlangille/create.sh

Last active Oct 18, 2017
Embed
What would you like to do?
snmp v3 clients for LibreNMS
Do this on the snmpd client:
service snmpd stop
net-snmp-config --create-snmpv3-user -ro -A 'AuthPass' -X 'PrivPass' -a SHA -x AES MyRoGroup
chmod go-rwx /var/net-snmp/snmpd.conf /usr/local/share/snmp/snmpd.conf
verify MyRoGroup is in /usr/local/share/snmp/snmpd.conf
service snmpd start
snmpwalk -v3 -l authPriv -u MyRoGroup -a SHA -A 'AuthPass' -x AES -X 'PrivPass' HOSTNAME_OR_IP_ADDRESS SNMPv2-MIB::sysDescr.0
Sample output from the walk:
SNMPv2-MIB::sysDescr.0 = STRING: FreeBSD cuppy.example.org 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
see also https://dan.langille.org/2014/10/22/getting-snmpwalk-to-talk-to-snmpd-on-freebsd/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment