My linux world » srv-snmp

srv-snmp


SNMP for Simple Network Management Protocol.

Installation

You can copy/paste this script and use it to configure automatically your server.

  1. echo "install snmp"
  2. dnf -y install net-snmp net-snmp-utils
  3.  
  4. echo "start snmp on startup"
  5. systemctl enable snmpd.service
  6.  
  7. echo "start service"
  8. systemctl start snmpd.service
  9.  
  10. echo "open snmp port 161/tcp"
  11. firewall-cmd --permanent --add-port=161/tcp
  12.  

Test

To test if it works:

snmpwalk -v 1 -c public -O e 127.0.0.1

That’s all 🙂


Copyright © 2024 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.