SNMP Config Mode Command Reference

snmp-trapper

Configures the SNMP trapper.

Command Mode

Exec > Global Configuration

Syntax

snmp-trapper enable { false | true } v3-engine-id v3_engine_id 

enable { false | true}

Specify to enable or disable the SNMP trapper.

Must be one of the following:

  • false

  • true

Default Value: false.

v3-engine-id v3_engine_id

Specify the source engine ID for v3 traps as hex string. For example, 80004f.

Must be a string of 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 50, 52, 54, 56, 58, 60, 62, or 64 characters in the pattern [0-9a-fA-F]*.

Usage Guidelines

Use this command to configure the SNMP trapper.

snmp-trapper source-ip-routes

Enables the binding to source IP for SNMP routing.

Command Mode

Exec > Global Configuration

Syntax

snmp-trapper enable { false | true } source-ip-routes { internal-vip vip_address | default-external-vip vip_address} 

default-external-vip vip_address

Specify the default external Virtual IP address for source IP routing.

Must be a string in the ipv4-address pattern. For information on the ipv4-address pattern, see the Input Pattern Types section.

internal-vip vip_address

Specify the internal Virtual IP address for source IP routing.

Must be a string in the ipv4-address pattern. For information on the ipv4-address pattern, see the Input Pattern Types section.

Usage Guidelines

Use this command to enable the binding to source IP for SNMP routing.

snmp-trapper source-ip-routes source-external-vips

Configures the source external VIP routing by namespace.

Command Mode

Exec > Global Configuration

Syntax

snmp-trapper enable { false | true } source-ip-routes source-external-vips { namespace external-vip vip_address} 

external-vip vip_address

Specify the external Virtual IP address for source IP routing.

Must be a string in the ipv4-address pattern. For information on the ipv4-address pattern, see the Input Pattern Types section.

namespace

Specify the namespace for routing.

Must be a string.

Usage Guidelines

Use this command to configure the source external Virtual IP address routing by namespace.

snmp-trapper v2c-target

Configures the list of SNMP v2c trap recievers.

Command Mode

Exec > Global Configuration

Syntax

snmp-trapper enable { true } v2c-target { url | community snmp_trap_community | port port_number} 

community snmp_trap_community

Specify the SNMP trap receiver community.

Must be a string.

Default Value: public.

port_number

Specify the port number of the SNMP trap receiver port.

Must be an integer in the range of 0-65535.

Default Value: 162.

url

Specify the SNMP trap receiver hostname or IP address.

Must be a string.

Usage Guidelines

Use this command to configure the list of SNMP v2c trap recievers.

snmp-trapper v3-target

Configures the list of SNMP v3 trap receivers.

Command Mode

Exec > Global Configuration

Syntax

snmp-trapper enable { true } v3-target { url port port_number user-name user_name auth authentication_protocol auth-key authentication_key priv privacy_protocol priv-key privacy_key} 

auth-key authentication_key

Specify the key to the authentication protocol.

Must be a string of 8-maximum characters.

auth authentication_protocol

Specify the authentication protocol to be used.

Must be one of the following:

  • md5 : HMAC-MD5-96 authentication protocol is used.

  • none : No authentication is used.

  • sha : HMAC-SHA-96 authentication protocol is used.

Default Value: none.

priv-key privacy_key

Specify the privacy key.

Must be a string of 8-maximum characters.

priv privacy_protocol

Specify the privacy protocol to be used.

Must be one of the following:

  • aes192 : AES-CFB (192 bits) protocol is used.

  • aes256 : AES-CFB (256 bits) protocol is used.

  • aes : AES-CFB (128 bits) protocol is used.

  • des : CBC-DES protocol is used.

  • none : No privacy is used.

Default Value: none.

user-name user_name

Specify the SNMP trap receiver user name.

Must be a string.

port_number

Specify the port number of the SNMP trap receiver port.

Must be an integer in the range of 0-65535.

Default Value: 162.

url

Specify the SNMP trap receiver hostname or IP address.

Must be a string.

Usage Guidelines

Use this command to configure list of SNMP v3 trap receivers.