Last active
December 6, 2024 13:35
-
-
Save dlangille/37790c43c8e2fdbdbf1a to your computer and use it in GitHub Desktop.
snmp v3 clients for LibreNMS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For more up to date information, see https://dan.langille.org/2023/08/16/configuration-of-net-mgmt-net-snmpd-on-freebsd/ | |
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 [email protected]:/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