Configures an SNMP engine ID for the SNMP agent.
A default engine ID is generated during system start up.
Global configuration mode
SNMP agent Engine ID can be 12 or 13 bytes in hexadecimal format. Each byte must be separated by colons. When using a 12 byte engine ID, each byte must be entered as 2 char per octet. For example, the value 1 must be entered as 01. However, for the 13 byte engine ID, each byte can be entered as 1 or 2 char per octet. For example, the value 1 can be entered as 1 or as 01.
Note the following:
The Default SNMP Engine ID is 13 bytes long.
You can view the Default SNMP Engine ID using the show running config command. You can also fetch this SNMP Engine ID through Netconf query and snmpget commands.
Manually configured SNMP Engine ID is reflected within the running configuration and immediately accessible with the netconf query. The manually configured SNMP Engine ID will only be available through snmpget command and in the traps only after a successful reboot.
When you un-configure the Default SNMP Engine ID, the running configuration will still retain the Default SNMP Engine ID. However, when you un-configure a Manually configured SNMP Engine ID, the running configuration will show the Default SNMP Engine ID. This change will happen only after a successful reboot.
When a device is reloaded with a default configuration, the running configuration will display the Default SNMP Engine ID.
When a manually configured SNMP Engine ID is reset, a syslog is generated. For example,
2020/12/18-03:00:56, [SNMP-1005], 77,, INFO, SLX, SNMP configuration attribute, LocalEngineId, has changed from [a1:b1:c1:d1:e1:a1:b1:c1:d2:a1:a1:b1] to [80:0:6:34:b2:4:0:0:10:aa:9a:b7:96].
A syslog is not generated when the Default SNMP Engine ID is reset.
When a 12 byte SNMP Engine ID is configured in version 20.2.3 and the device is then downgraded to a lower firmware release, this SNMP Engine ID is retained in the lower release post downgrade.
When a 13 byte SNMP Engine ID is configured in version 20.2.3 and the full install downgrade is performed, this 13 byte SNMP Engine ID will not be available after downgrade. However, you can view this 13 byte SNMP Engine ID immediately after a coldboot downgrade and will be lost on subsequent file replays, config rollback, or copy of startup configuration.
SLX(config)# no snmp-server engineID local 80:0:6:34:b2:4:0:0:10:aa:9a:b7:96 %Warning: SNMP engine id is currently default. Removing default engine id would again set it to default value%.
A reboot is necessary for the configured engine ID to become active.
Use the no form of the command to remove the configured engine ID from database.
The following example configures an engine ID for the SNMP agent.
device(config)# snmp-server engineid local 10:00:00:05:33:51:A8:65:05:33:51:A8
The following example removes the configured engine ID from the database.
device(config)# no snmp-server engineid local