Using the shelf manager CLI
Generating SNMP traps for shelf manager system events
FortiGate-5140B Chassis Guide
01-500-156415-20151104
67
clia setpefconfig event_filter 11 80 1 5 02 96 FF FF FF FF FF
FF 0 0 0 0 0 0 0 0 0
Add filter entry 20 for the FRUs at IPMB address 20 (PEMs, Fans, etc)
clia setpefconfig event_filter 20 80 1 5 02 20 FF FF FF FF FF
FF 0 0 0 0 0 0 0 0 0
To configure the alert policy and string tables
1
Set alert policy table entry 8 with alert policy number 5, policy enabled, alert always
sent, destination channel 1, destination address 2 and alert string selector 7
clia setpefconfig alert_policy 8 5 8 1 2 7
2
Set the alert string selector 7 equal to
test alert message
.
clia setpefconfig alert_string 7 “test alert message”
Testing the configuration
A simple test of the configuration to make sure the SNMP manager can receive traps.
Since in most cases in this example the event filter is set for any channel and any sensor
any simple state change should trigger a trap. The following steps show to enter a
command to deactivate selected FRUs which will result in a trap being sent.
1
Enter the following command to view the state of PEM 1 in a FortiGate-5000 series
chassis.
# clia fru 20 7
20: FRU # 7
Entity: (0xa, 0x61)
Hot Swap State: M4 (Active), Previous: M3 (Activation In
Process), Last State Change
Cause: Normal State Change (0x0)
Device ID String: "PEM B"
2
Enter the following command to deactivate this PEM:
# clia deactivate 20 7
3
Enter the following command to display the system event log.
# clia sel
0x0001: Event: at Jul 8 17:12:21 2008; from:(0x20,0,0);
sensor:(0xf0,9);
event:0x6f(asserted): HotSwap: FRU 7 M4->M6, Cause=0x1
0x0002: Event: at Jul 8 17:12:21 2008; from:(0x20,0,0);
sensor:(0x12,133);
event:0x6f(asserted): 0xC4 0x01 0x00
0x0003: Event: at Jul 8 17:12:21 2008; from:(0x20,0,0);
sensor:(0xf0,9);
event:0x6f(asserted): HotSwap: FRU 7 M6->M1, Cause=0x0
0x0004: Event: at Jul 8 17:12:21 2008; from:(0x20,0,0);
sensor:(0x12,133);
event:0x6f(asserted): 0xC4 0x01 0x00
The event log shows two state changes:
M4 -> M6 -> M1
Two SNMP traps are
generated.
The format of SNMP traps produced by the shelf manager is specified in the IPMI
Platform Event Trap Format Specification v1.0 document
(
http://download.intel.com/design/servers/ipmi/PET100.pdf
).