Generating SNMP traps for system events
Using the shelf manager CLI
FortiGate-5060 Chassis Guide
62
01-400-129494-20110912
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.
4
Enter the following command to re-activate this PEM:
# clia activate 20 7
When activating again the PEM B, 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:
• Byte 26 = Event Source Type = Class of device or type of software that originated the
event
• Byte 27 = Event Severity
• Byte 28 = Sensor Device byte = Identifies the instance of the device that holds the
sensor that generated the event
• Byte 29 = Sensor Number
Sensor number 9 is the hot swap sensor for PEM B:
# clia sensor 20 9
20: LUN: 0, Sensor # 9 ("FRU 7 HOT_SWAP")
Type: Discrete (0x6f), "Hot Swap" (0xf0)
Belongs to entity: (0xa, 97) [FRU # 7]
No. Time Source Destination Protocol
Info
1 17:11:21.469567 192.168.181.66 192.168.182.86 SNMP
trap
Frame 1 (177 bytes on wire, 177 bytes captured)
Ethernet II, Src: RapidCit_5f:cc:97 (00:e0:16:5f:cc:97), Dst:
Vmware_3c:55:c0 (00:0c:29:3c:55:c0)