Enable or Disable the SNMP Service¶
The SNMP server for the host
namespace (Networking Namespaces) is
enabled and disabled by the snmp host (disable|enable)
command.
To enable the SNMP service for the host
namespace:
tnsr(config)# snmp host enable
To disable the SNMP service for the host
namespace:
tnsr(config)# snmp host disable
The SNMP service can also run in the dataplane
namespace, and may be active
in both namespaces at the same time. The dataplane
namespace instance of
SNMP is configured using the snmp dataplane (enable|disable)
command.
Warning
Though the SNMP service is capable of running in the dataplane
namespace,
the sensitive nature of its content means it should not be exposed to
insecure networks nor should SNMP traffic be sent over insecure links. The
best practice is to only run SNMP in the host
namespace.
To enable the SNMP service for the dataplane
namespace:
tnsr(config)# snmp dataplane enable
To disable the SNMP service for the dataplane
namespace:
tnsr(config)# snmp dataplane disable
Control the SNMP Service¶
The SNMP service is controlled by the service snmp (host|dataplane)
(start|stop|restart|status)
command.
In most cases manual control of the service is unnecessary as the server will start and stop as needed based on the configuration.
TNSR automatically restarts the SNMP service when making changes to the SNMP configuration.