Generating SNMP traps for shelf manager system events
Using the shelf manager CLI
FortiGate-5140B Chassis Guide
68
01-500-156415-20151104
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)
Destination: Vmware_3c:55:c0 (00:0c:29:3c:55:c0)
Source: RapidCit_5f:cc:97 (00:e0:16:5f:cc:97)
Type: IP (0x0800)
Internet Protocol, Src: 192.168.181.66 (192.168.181.66), Dst:
192.168.182.86 (192.168.182.86)
User Datagram Protocol, Src Port: 1024 (1024), Dst Port:
snmptrap (162)
Simple Network Management Protocol
version: version-1 (0)
community: public
data: trap (4)
trap
enterprise: 1.3.6.1.4.1.3183.1.1 (SNMPv2-
SMI::enterprises.3183.1.1)
agent-addr: internet (0)
internet: 192.168.181.66 (192.168.181.66)
generic-trap: enterpriseSpecific (6)
specific-trap: 15757062
time-stamp: 1975765011
variable-bindings: 1 item
Item