Configuration Guide Configuring SNMP
To shield the configuration of all SNMP agent services, use this configuration.
Disabling the SNMP Agent Function for the Device
Optional
To directly disable all services, use this configuration.
Verification
Run the show services command to check whether SNMP services are enabled or disabled.
Run the show snmp command to display the SNMP status.
Run the show running-config command to display configuration information of the device.
Related Commands
Shielding the SNMP Agent Function for the Device
Global configuration mode
By default, the SNMP agent function is disabled. When SNMP agent parameters (for example, NMS host
address, authentication name, and access permission) are set, the SNMP agent service is automatically
enabled. The enable service snmp-agent command must also be run at the same time so that the SNMP
agent service can take effect. If the SNMP agent service is disabled or the enable service snmp-agent
command is not run, the SNMP agent service does not take effect. Run the no snmp-server command to
disable SNMP agent services of all versions supported by the device.
After this command is run, all SNMP agent service configurations are shielded (that is, after the show
running-config command is run, no configuration is displayed. Configurations are restored after the SNMP
agent service is enabled again). After the enable service snmp-agent command is run, the SNMP agent
configurations are not shielded.
Disabling the SNMP Agent Function for the Device
no enable service snmp-agent
Global configuration mode
disable the SNMP service, but it will not shield SNMP agent parameters.
Configuration Example
Enabling the SNMP Service