Enabling SNMPv3 service on SLES

This document (000020702) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applica­tions 15 SP4
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server for SAP Applica­tions 15 SP3

Situation

This document details how to enable SNMPv3 (Simple Network Management Protocol) service on SLES15.

Resolution


1. If snmpd service is not installed, install the required package:
   zypper in net-snmp

2. Create an SNMPv3 user (snmpuser) with read-only permissions:
    net-snmp-create-v3-user -ro -a snmpuser_authPass -x snmpuser_privPass -a SHA -X AES snmpuser
   The information will be automatically added to the /var/lib/net-snmp/snmpd.conf and /etc/snmp/snmpd.conf configuration files.

   Full command usage:
   net-snmp-create-v3-user [-ro] [-a authpass] [-x privpass] [-a MD5|SHA] [-X DES|AES] [username]

    --version
    displays the net-snmp version number

    -ro
    create an user with read-only permissions

    -a authpass
    specify authentication password

    -x privpass
    specify encryption password

    -X DES|AES
    specify encryption algorithm

3. Start the daemon and set it to start on server boot.
   systemctl enable --now snmpd.service
    
4. Test the user using snmpwalk from the localhost:
   snmpwalk -u snmpuser -A snmpuser_authPass -a SHA -X snmpuser_privPass -x AES -l authPriv 127.0.0.1 -v3

    The command should return information read by SNMP. If not, check the firewall and make sure to open ports 161 for polling, and 162 for notifications.

Additional Information

Net-SNMP package - http://www.net-snmp.org/

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020702
  • Creation Date: 19-Jul-2022
  • Modified Date:19-Jul-2022
    • SUSE Linux Enterprise Server
    • SUSE Linux Enterprise Server for SAP Applications

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center