Generating SNMP traps for shelf manager system events
Using the shelf manager CLI
FortiGate-5140B Chassis Guide
64
01-500-156415-20151104
To configure the shelf manager to send SNMP traps you must configure shelf manager
Platform Event Filtering (PEF) to provide a mechanism for sending SNMP traps. To
configure PEF you add an event filter table that sets the events that trigger an action and
the action to take. The events can be a FRU state change or a sensor alert. The action to
take is to send an SNMP trap to the SNMP server.
When PEF triggers an alert, the shelf manager uses an Alert Policy to determine the
action to take. An alert policy is a collection of one or more alert destinations. You can
create multiple alert policies and configure multiple destinations for each policy. This
section describes how to create one alert policy, called alert policy number 5. The alert
policy number is used in an Event Filter Entry to select the alert policy to use when an
alert filter matches an event.
The combination of event filter entry and alert destination are used to select a given Alert
String from a set of strings kept in the PEF configuration parameters. This enables
different strings to be sent based on what event filter was matched and where the alert is
being sent.
This example configuration of an Event filter table, Alert Policy table and Alert String table
sends alerts following FRU state changes. The alerts which will be sent from the shelf
manager will be SNMP traps whose format is defined in the Platform Event Trap Format
specification. The example is for alert channel 1 which is the Eth0 interface of shelf
manager number 1.
The basic requirements for configuring SNMP traps are the same for all shelf manager
firmware versions. However, some more recent versions of the shelf manager firmware
support more options (for example, you can set the Platform Event Trap (PET) Format to
different levels only on some shelf manager firmware releases).
To configure the shelf manager LAN alert destination
1
Log into the shelf manager CLI using the procedure described in
shelf manager CLI using a serial port and setting up passwords” on page 35
. You can
also connect to the CLI using Telnet.
2
Set alert type for channel 1 and destination number 2. This command sets the alert
type to
0 0 0
which means an unacknowledged PET trap, with 0 timeout and 0 retry
count:
# clia setlanconfig 1 destination_type 2 0 0 0
3
Set the destination IP and MAC address, which is the IP and MAC address of the
SNMP server.
# clia setlanconfig 1 destination_address 2 0 172.20.120.11
00:1A:A0:2F:BC:C6
To set the community name used in PET traps
1
Use the following command to set the community name used in PET traps. This can
be any community name, the default is
public
.
# clia setlanconfig 1 16 “<community_name>”
For example, use the following command to set the community name to
MyCommunity
# clia setlanconfig 1 16 MyCommunity
The SNMP server can be on a different subnet. If it is on a different subnet, the MAC
address in the command should be the MAC address of the gateway that the shelf
manager connects through to reach the SNMP server.