I updated snmp (snmpd) service config open SUSE Linux. How can I restart SNMP daemon? Please share command as I am new to SUSE Linux server.
Here is how to verify snmpd service on openSUSE and SUSE Enterprise Linux:
sudo systemctl cat snmpd.service
# /usr/lib/systemd/system/snmpd.service [Unit] Description=Simple Network Management Protocol (SNMP) Daemon. After=syslog.target network.target [Service] Type=notify Environment=OPTIONS="-LS0-6d" EnvironmentFile=-/etc/sysconfig/snmpd ExecStart=/usr/sbin/snmpd $OPTIONS -f ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target
Restarting NSMPD on SUSE Linux
sudo systemctl restart snmpd.service
Verification is easy too:
sudo systemctl status snmpd.service
Dealing with Trap Daemon
List it:
sudo systemctl cat snmptrapd.service
# /usr/lib/systemd/system/snmptrapd.service [Unit] Description=Simple Network Management Protocol (SNMP) Trap Daemon. After=syslog.target network.target [Service] Type=notify Environment=OPTIONS="-Lsd" EnvironmentFile=-/etc/sysconfig/snmptrapd ExecStart=/usr/sbin/snmptrapd $OPTIONS -f ExecReload=/bin/kill -HUP $MAINPID [Install] WantedBy=multi-user.target
Restart the SNMP Trap Daemon:
sudo systemctl restart snmptrapd.service
sudo systemctl status snmptrapd.service
Use keywords such as stop, start, restart and status for all your systemct services.
1 Like
It worked as per given command.