Cisco Systems 57712 Manual Do Utilizador
Configuring SNMP Trap Settings
Before You Begin
• You must log in with admin privileges to perform this task.
• SNMP must be enabled and saved before trap settings can be configured.
Procedure
Purpose
Command or Action
Enters the SNMP command mode.
Server# scope snmp
Step 1
Enters the SNMP trap destination command mode for
the specified destination. Four SNMP trap destinations
the specified destination. Four SNMP trap destinations
Server /snmp # scope
trap-destinations number
trap-destinations number
Step 2
are available. The destination number is an integer
between 1 and 15.
between 1 and 15.
Enables or disables the SNMP trap destination.
Server /snmp/trap-destinations # set
enabled {yes | no}
enabled {yes | no}
Step 3
Specify the desired SNMP version of the trap message.
Server /snmp/trap-destinations # set
version {1 | 2 | 3}
version {1 | 2 | 3}
Step 4
SNMPv3 traps will be delivered only to
locations where the SNMPv3 user and key
values are configured correctly.
locations where the SNMPv3 user and key
values are configured correctly.
Note
Specifies whether SNMP notification messages are
sent as simple traps or as inform requests requiring
acknowledgment by the receiver.
sent as simple traps or as inform requests requiring
acknowledgment by the receiver.
Server /snmp/trap-destinations # set
type {trap | inform}
type {trap | inform}
Step 5
The inform option can be chosen only for V2
users.
users.
Note
Server /snmp/trap-destinations # set
user user
user user
Step 6
Specifies the destination IP address to which SNMP
trap information is sent.
trap information is sent.
Server /snmp/trap-destination # set
v4-addr ip-address
v4-addr ip-address
Step 7
Commits the transaction to the system configuration.
Server /snmp/trap-destination #
commit
commit
Step 8
This example configures general SNMP trap settings and trap destination number 1 and commits the transaction:
Server#
scope snmp
Server /snmp #
Scope trap-destinations 1
Server /snmp/trap-destination *#
set enabled yes
Server /snmp/trap-destination *#
set version 2
Server /snmp/trap-destination *#
set type inform
Server /snmp/trap-destination *#
set user user1
Server /snmp/trap-destination *#
set v4-addr 192.2.3.4
Server /snmp/trap-destination *#
commit
Server /snmp/trap-destination #
show detail
Trap Destination 1:
Cisco UCS C-Series Servers Integrated Management Controller CLI Configuration Guide, Release 1.5
OL-28893-01
139
Configuring Communication Services
Configuring SNMP Trap Settings