16.6.2. Running the Net-SNMP Daemon
The
net-snmp package contains
snmpd
, the SNMP Agent Daemon. This section provides information on how to start, stop, and restart the
snmpd
service, and shows how to enable or disable it in the
multi-user
target unit. For more information on the concept of target units and how to manage system services in Fedora in general, refer to
Chapter 6, Services and Daemons.
16.6.2.1. Starting the Service
To run the snmpd
service in the current session, type the following at a shell prompt as root
:
systemctl
start
snmpd.service
To configure the service to be automatically started at boot time, use the following command:
systemctl
enable
snmpd.service
This will enable the service in the multi-user
target unit.
16.6.2.2. Stopping the Service
To stop the running snmpd
service, type the following at a shell prompt as root
:
systemctl
stop
snmpd.service
To disable starting the service at boot time, use the following command:
systemctl
disable
snmpd.service
This will disable the service in the multi-user
target unit.
16.6.2.3. Restarting the Service
To restart the running snmpd
service, type the following at a shell prompt:
systemctl
restart
snmpd.service
This will stop the service and start it again in quick succession. To only reload the configuration without stopping the service, run the following command instead:
systemctl
reload
snmpd.service
This will cause the running snmpd
service to reload the configuration.