How to restart SNMP on SUSE Linux

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
Description=Simple Network Management Protocol (SNMP) Daemon.

ExecStart=/usr/sbin/snmpd $OPTIONS -f
ExecReload=/bin/kill -HUP $MAINPID


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
Description=Simple Network Management Protocol (SNMP) Trap Daemon.

ExecStart=/usr/sbin/snmptrapd $OPTIONS -f
ExecReload=/bin/kill -HUP $MAINPID


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.

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki