Shelf Manager CLI
Fortinet Technologies Inc.
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.
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
).
Enter the following command to view the state of PEM 1 in a FortiGate-5000 series chassis.
# clia fru 20 7
0: FRU # 7
Entity: (0x15, 0x60)
Hot Swap State: M4 (Active), Previous: M3 (Activation In Process), Last State Change
Cause: Normal State Change (0x0)
Device ID String: "PEMA1"
Enter the following command to deactivate this PEM:
# clia deactivate 20 7
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.
Enter the following command to re-activate this PEM:
# clia activate 20 7
As PEM B is activating, there are three state changes (M1 -> M2 -> M3 -> M4) and three traps sent.
SNMP trap details
The trap below could be sent when PEM B state changes from M4 to M6. The important trap fields are the specific trap
field (in red below) and the variable bindings fields (in blue). Byte 2 of the specific trap field shows the sensor type (f0 =
hot swap) and the 4th byte is the event offset (06 = assertion to state 6= M6).
The variable bindings fields which are in bold in the trace below are the following bytes:
FortiGate-5144C 6.2.3 Chassis Guide
68