beautypg.com

Snmptraps – Dell POWEREDGE M1000E User Manual

Page 926

background image

894

Fabric OS Command Reference

53-1001764-02

snmpTraps

2

snmpTraps

Sends or displays SNMP traps.

Synopsis

snmptraps --send [-trap_name trap_name] [-ip_address ip_address]

snmptraps --show

snmptraps --help

Description

Use this command to generate specific Simple Network Management Protocol (SNMP) traps, to
test the trap recipient, and to validate Management Information Base (MIB) objects and associated
traps that are supported in Fabric OS.

Use the --send option to send a specific SNMP trap to a recipient indicated by its IP address. Or
use the --send option without operands to send all supported traps to all configured SNMP trap
recipients. When the command is issued to send all traps, the message returned indicates only the
total number of traps sent and not the individual trap names. Use snmpTraps --show or
snmpConfig --show mibcapability to verify which traps were disabled and not sent. The recipients
must be configured for this command to succeed.

Refer to the snmpConfig command for more information.

Use the --show option to display all MIB objects and associated traps that are supported in Fabric
OS.

Note

The execution of this command is subject to Virtual Fabric or Admin Domain restrictions that may
be in place. Refer to chapter 1, "Using Fabric OS commands" and Appendix A, "Command
Availability"
for details.

Operands

This command has the following operands:

--

send

Sends one or all SNMP traps to all configured recipients or to a specified
recipient. The following operands are optional:

-trap_name trap_name

Specifies the trap by name. Use snmptraps --show for a listing of valid traps.

-ip_address ip_address

Specifies the recipient by its IP address in IPv4 or IPv6 format. IPv6
addresses require Fabric OS v6.4.0 or later.

--

show

Displays all configured SNMP traps and MIBs supported in Fabric OS v6.4.0
and later.

--

help

Displays the command usage.

Examples

To send all traps to the configured recipients:

switch:admin>

snmpTraps --send

Number of traps sent : 27

To send a bottleneck detection trap to recipient 172.16.0.12

switch:admin>

snmptraps --send -trap_name bd-trap-ip_address 172.16.0.12.

Number of traps sent : 1