snmp-server engineid local

Configures an SNMP engine ID for the SNMP agent.

Syntax

snmp-server engineid local engine_id
no snmp-server engineid local

Command Default

A default engine ID is generated during system start up.

Modes

Global configuration mode

Usage Guidelines

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:

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.

Examples

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