Chapter 33 Configuring SNMP

Configuring SNMP

 

Command

Purpose

Step 4

 

 

snmp-server user username groupname

Add a new user for an SNMP group.

 

{remote host [udp-port port]} {v1 [access

The username is the name of the user on the host that connects

 

access-list] v2c [access access-list] v3

 

to the agent.

 

[encrypted] [access access-list] [auth {md5

 

The groupname is the name of the group to which the user is

 

sha} auth-password]}

 

 

associated.

 

 

Enter remote to specify a remote SNMP entity to which the

 

 

user belongs and the hostname or IP address of that entity with

 

 

the optional UDP port number. The default is 162.

 

 

Enter the SNMP version number (v1, v2c, or v3). If you enter

 

 

v3, you have these additional options:

 

 

encrypted specifies that the password appears in

 

 

encrypted format. This keyword is available only when

 

 

the v3 keyword is specified.

 

 

auth is an authentication level setting session that can be

 

 

either the HMAC-MD5-96 (md5) or the HMAC-SHA-96

 

 

(sha) authentication level and requires a password string

 

 

(not to exceed 64 characters).

 

 

(Optional) Enter access access-listwith a string (not to exceed

 

 

64 characters) that is the name of the access list.

Step 5

 

 

end

Return to privileged EXEC mode.

Step 6

 

 

show running-config

Verify your entries.

Step 7

 

 

copy running-config startup-config

(Optional) Save your entries in the configuration file.

 

 

 

Configuring SNMP Notifications

A trap manager is a management station that receives and processes traps. Traps are system alerts that the switch generates when certain events occur. By default, no trap manager is defined, and no traps are sent. Switches running this Cisco IOS release can have an unlimited number of trap managers.

Note Many commands use the word traps in the command syntax. Unless there is an option in the command to select either traps or informs, the keyword traps refers to either traps, informs, or both. Use the snmp-server host global configuration command to specify whether to send SNMP notifications as traps or informs.

Table 33-5describes the supported switch traps (notification types). You can enable any or all of these traps and configure a trap manager to receive them.

Table 33-5 Switch Notification Types

 

 

 

 

Notification Type

 

 

 

 

 

 

Keyword

Description

 

 

 

 

 

 

 

 

 

 

bgp

Generates Border Gateway Protocol (BGP) state change traps. This option is

 

 

 

 

 

only available when the IP services feature set is enabled.

 

 

 

 

 

 

 

 

 

 

bridge

Generates STP bridge MIB traps.

 

 

 

 

 

 

 

 

 

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

 

 

 

 

33-12

 

 

 

OL-9775-02

 

 

 

 

 

 

Page 692
Image 692
Cisco Systems 3750E manual Configuring Snmp Notifications, Remote host udp-port port v1 access, 33-12