The MACaddress is now encoded as 'ABBtFdKa', and the end result 'QUJCdEZkS2E=' is the base64 representation of 'ABBtFdKa'.
The trap definition is typically something like: wmanIfBsSsRssiStatusChangeTrap NOTIFICATION-TYPE OBJECTS {ifIndex, wmanIfBsSsNotificationMacAddr, wmanIfBsSsRssiStatus, wmanIfBsSsRssiStatusInfo} STATUS current DESCRIPTION "An event to report that the uplink RSSI is below wmanIfBsLowRssiThreshold, or above wmanIfBsHighRssiThreshold after restore." ::= { wmanIfBsTrapPrefix 3 }
where the second object, wmanIfBsSsNotificationMacAddr, is of type MacAddress.
Traps containing a MACaddress gets through to the web interface like this:
wmanIfBsSsStatusNotificationTrap trap received ifIndex=2
wmanIfBsSsNotificationMacAddr=QUJCdEZkS2E= wmanIfBsSsStatusValue=12
wmanIfBsSsStatusInfo=SF success
The QUJCdEZkS2E part is gibberish.
trapd.log reports:
2006-08-07 13:45:07,819 DEBUG [TrapQueueProcessor] TrapQueueProcessor: V2 trap -
trapInterface: 192.168.99.2
2006-08-07 13:45:07,819 DEBUG [TrapQueueProcessor] TrapQueueProcessor: V2 trap
numVars or pdu length: 6
2006-08-07 13:45:07,819 DEBUG [TrapQueueProcessor] TrapQueueProcessor: V2 trap
first varbind value: 0d 11h 3m 54s 410ms
2006-08-07 13:45:07,819 DEBUG [TrapQueueProcessor] TrapQueueProcessor: V2 trap
first varbind value is of type TIMETICKS (correct)
2006-08-07 13:45:07,819 DEBUG [TrapQueueProcessor] TrapQueueProcessor:
snmpTrapOID: .1.3.6.1.2.1.10.184.1.1.4.2.0.1
2006-08-07 13:45:07,819 DEBUG [TrapQueueProcessor] TrapQueueProcessor: V2 trap -
trapInterface: 192.168.99.2
2006-08-07 13:45:07,819 DEBUG [TrapQueueProcessor] TrapQueueProcessor: snmp
specific/generic/eid: 1 6 .1.3.6.1.2.1.10.184.1.1.4.2
2006-08-07 13:45:07,819 DEBUG [TrapQueueProcessor] TrapQueueProcessor:
snmpReceivedTrap: string varbind:
.1.3.6.1.2.1.10.184.1.1.4.2.1.1.3.2.0.16.109.21.210.154 State change
2006-08-07 13:45:07,819 DEBUG [TrapQueueProcessor] TrapQueueProcessor: V2 Trap
successfully converted and sent to eventd
Notice how .1.3.6.1.2.1.10.184.1.1.4.2.1.1.3.2.0.16.109.21.210.154 contains the
MACaddress 00:10:6D:15:D2:9A
In eventd.log, this comes through as:
2006-08-07 13:40:42,782 DEBUG [EventHandlerPool-fiber2] EventHandler: Event {
2006-08-07 13:40:42,782 DEBUG [EventHandlerPool-fiber2] EventHandler: uuid =
<not-set>
2006-08-07 13:40:42,782 DEBUG [EventHandlerPool-fiber2] EventHandler: uei = null
2006-08-07 13:40:42,782 DEBUG [EventHandlerPool-fiber2] EventHandler: src =
trapd
2006-08-07 13:40:42,782 DEBUG [EventHandlerPool-fiber2] EventHandler: iface =
192.168.99.2
2006-08-07 13:40:42,793 DEBUG [EventHandlerPool-fiber2] EventHandler: time =
Monday, August 7, 2006 11:40:42 AM GMT
2006-08-07 13:40:42,793 DEBUG [EventHandlerPool-fiber2] EventHandler: parms {
2006-08-07 13:40:42,793 DEBUG [EventHandlerPool-fiber2] EventHandler:
(.1.3.6.1.2.1.2.2.1.1.2, 2)
2006-08-07 13:40:42,793 DEBUG [EventHandlerPool-fiber2] EventHandler:
(.1.3.6.1.2.1.10.184.1.1.4.2.1.1.1.2.0.16.109.21.210.154, ABBtFdKa)
2006-08-07 13:40:42,793 DEBUG [EventHandlerPool-fiber2] EventHandler:
(.1.3.6.1.2.1.10.184.1.1.4.2.1.1.2.2.0.16.109.21.210.154, 12)
2006-08-07 13:40:42,793 DEBUG [EventHandlerPool-fiber2] EventHandler:
(.1.3.6.1.2.1.10.184.1.1.4.2.1.1.3.2.0.16.109.21.210.154, SF success)
2006-08-07 13:40:42,793 DEBUG [EventHandlerPool-fiber2] EventHandler: }
2006-08-07 13:40:42,793 DEBUG [EventHandlerPool-fiber2] EventHandler: }
2006-08-07 13:40:42,795 DEBUG [EventHandlerPool-fiber2] EventConfData: Match
found using key: EventKey
The MACaddress is now encoded as 'ABBtFdKa', and the end result 'QUJCdEZkS2E='
is the base64 representation of 'ABBtFdKa'.
The trap definition is typically something like:
wmanIfBsSsRssiStatusChangeTrap NOTIFICATION-TYPE
OBJECTS {ifIndex,
wmanIfBsSsNotificationMacAddr,
wmanIfBsSsRssiStatus,
wmanIfBsSsRssiStatusInfo}
STATUS current
DESCRIPTION
"An event to report that the uplink RSSI is below
wmanIfBsLowRssiThreshold, or above
wmanIfBsHighRssiThreshold after restore."
::= { wmanIfBsTrapPrefix 3 }
where the second object, wmanIfBsSsNotificationMacAddr, is of type MacAddress.
Thanks to djgregor for helping out.