Skip to main content

event snmphistory show

(DEPRECATED)-Display a list of SNMP trap history records

Availability: This command is available to cluster administrators at the admin privilege level.

Description

Note
This command has been deprecated. It may be removed from a future release of Data ONTAP. Instead, use the "event notification history" command set.
The event snmphistory show command displays a list of event notifications that have been sent to SNMP traps. The command output depends on the parameters specified with the command. By default, the command displays general information about all trap-history records.

To display detailed information about a specific trap-history record, run the command with the -seqnum parameter.

Parameters

{ [-fields <fieldname>, ...]
If you specify the -fields <fieldname>, ... parameter, the command output also includes the specified field or fields. You can use '-fields ?' to display the fields to specify.
| [-instance ]}
If you specify the -instance parameter, the command displays detailed information about all fields.
[-node {<nodename>|local}] - Node
Selects the trap-history records that match this parameter value (text pattern).
[-seqnum <Sequence Number>] - Sequence Number
Selects the trap-history records that match this parameter value (sequence number).
[-message-name <Message Name>] - Message Name
Selects the trap-history records that match this parameter value.
[-address <text>, ...] - SNMP Client Address
Selects the trap-history records that match this parameter value (IP address).
[-time <MM/DD/YYYY HH:MM:SS>] - Transmission Time
Selects the trap-history records that match this parameter value.
[-message <text>] - Alert Message
Selects the trap-history records that match this parameter value (text pattern).
[-previous-time <MM/DD/YYYY HH:MM:SS>] - Previous Transmission Time
Selects the trap-history records that match this parameter value.
[-num-drops-since-previous <integer>] - Number of Drops Since Previous Transmission
Selects the trap-history records that match this parameter value (number of event drops since last transmission).

Examples

The following example displays information about all SNMP trap-history records:

cluster1::> event snmphistory show
Seq # Message Name Address Node Time
----- --------------------- --------- ----- ------------------
12481 raid.mirror.restrict 10.0.2.20 node0 4/14/2020 15:11:04
12482 aggrcopy.dst.noMemory 10.0.2.20 node0 4/14/2020 14:52:54
12483 raid.mirror.restrict 10.0.2.21 node1 4/14/2020 14:41:04