OK BES Log review 201
Please make sure you have taken the pre-requisite of GREP'ing 101
I look up an email I got on my handheld and the refid is: -537543770 (ALT-VIEW in the message to get the RefID)
I then take this RefID and I grep the MAGT log for this message and I find the following log lines:
[40287] (08/13 08:43:21.242):{0x17B0} {user@email.address.net} Queuing message, RefId=-537543770, EntryId=378539, Posted=08/13 08:42:18, Delivered=08/13 08:42:27
[30081] (08/13 08:43:21.304):{0x17B0} {user@email.address.net} Sending message to device, size=945, EntryId=378539, RefId=-537543770, TransactionId=-931458912, Tag=998
[40572] (08/13 08:43:37.808):{0x17B0} {user@email.address.net} Receiving MESSAGE_STATUS_UPDATE request from device, Tag=322, TransactionId=-1399330782, RefId=-537543770, MsgStatus=1
[40262] (08/13 08:43:37.808):{0x17B0} {user@email.address.net} StateDb - Found RefId=-537543770
So now I take the first line I found and it has an EntryID of 378539 so I grep for that in the MAGT log and remove and duplicates (dups) from the log lines above:
[40423] (08/13 08:43:20.618):{0x618} {user@email.address.net} Queuing new mail through notification (external). EntryId=378539
[40724] (08/13 08:43:20.618):{0x17B0} {user@email.address.net} Get record key for this MAPI object, EntryId=378539
[40435] (08/13 08:43:20.618):{0x17B0} {user@email.address.net} Queuing new mail through notification. EntryId=378539. Msgs Pending 0
[30085] (08/13 08:43:20.618):{0x17B0} {user@email.address.net} New mail has arrived, EntryId=378539
[30097] (08/13 08:43:22.365):{0x17B0} {user@email.address.net} Message has been delivered to device, Tag=998, EntryId=378539
So now I take the second line from the first Grep within the MAGT and I grep for the Tag of 998 and remove dups
[40279] (08/13 08:43:21.304):{0x17B0} {user@email.address.net} SubmitToRelaySendQ, Tag=998
[40000] (08/13 08:43:21.304):{0x16F4} [BIPP] Send data, Tag=998
[40000] (08/13 08:43:22.365):{0x163C} [BIPP] Received status DELIVERED, Tag=998
Then I take the TranscationID of -931458912 and search the Dispatcher logs for it and I find the following:
[30222] (08/13 08:43:21.320):{0xDB8} {User} MTH: contentType=CMIME, sizeOTA=548, sizeOTW=911, TransactionId=-931458912, Tag=1270
[30310] (08/13 08:43:21.320):{0xDB8} {User} Forwarding internal data to device, contentType=CMIME, routing=S0000000, device=20000PIN, size=584, cmd=0x3, ack=0, TransactionId=-931458912, intTag=998, Tag=1270, Submit=1
I then take the Tag of 998 and grep the DISP log for that tag as the intTag and I get the following (after removing the dups):
[30388] (08/13 08:43:22.365):{0xDBC} [BIPPa] {User} Forwarding status to BES Agent (S0000000_001), intTag=998, extTag=1270
I now take the Dispatcher Tag of 1270 and grep within DISP for that (and remove dups and get)
[30368] (08/13 08:43:22.365):{0xDBC} {User} Packet has been delivered to device, Tag=1270
I now take the Dispatcher tag of 1270 and grep for that Within the Router logs and I get:
[40000] (08/13 08:43:21.320):{0xB4C} [SERVICE_RELAY_SESSION:S0000000:00b51528] Service V2 GME packet received. DESTINATION=20000PIN, CONTENT=CMIME, TAG=1270, RELAYROUTABLE=true, LENGTH=584
[40000] (08/13 08:43:22.349):{0xB4C} [SERVICE_RELAY_SESSION:S0000000:00b51528] Handle Transaction Status. TAG=1270 STATUS=1
Now to put it all in the proper order:
MAGT: (This is where Exchange sends BES UPD packet and the BES goes and picks up the message and sends it.)
[40423] (08/13 08:43:20.618):{0x618} {user@email.address.net} Queuing new mail through notification (external). EntryId=378539
[40724] (08/13 08:43:20.618):{0x17B0} {user@email.address.net} Get record key for this MAPI object, EntryId=378539
[40435] (08/13 08:43:20.618):{0x17B0} {user@email.address.net} Queuing new mail through notification. EntryId=378539. Msgs Pending 0
[30085] (08/13 08:43:20.618):{0x17B0} {user@email.address.net} New mail has arrived, EntryId=378539
[40287] (08/13 08:43:21.242):{0x17B0} {user@email.address.net} Queuing message, RefId=-537543770, EntryId=378539, Posted=08/13 08:42:18, Delivered=08/13 08:42:27
[30081] (08/13 08:43:21.304):{0x17B0} {user@email.address.net} Sending message to device, size=945, EntryId=378539, RefId=-537543770, TransactionId=-931458912, Tag=998
[40279] (08/13 08:43:21.304):{0x17B0} {user@email.address.net} SubmitToRelaySendQ, Tag=998
[40000] (08/13 08:43:21.304):{0x16F4} [BIPP] Send data, Tag=998
DISP: (The Agent send the information to the DISP and the DSIP then sends it to the Router to get sent to the HH. And then gets the ACK back from the HH that it has been delivered)
[30222] (08/13 08:43:21.320):{0xDB8} {User} MTH: contentType=CMIME, sizeOTA=548, sizeOTW=911, TransactionId=-931458912, Tag=1270
[30310] (08/13 08:43:21.320):{0xDB8} {User} Forwarding internal data to device, contentType=CMIME, routing=S0000000, device=20000PIN, size=584, cmd=0x3, ack=0, TransactionId=-931458912, intTag=998, Tag=1270, Submit=1
Router: (Send the email and gets the ACK Back)
[40000] (08/13 08:43:21.320):{0xB4C} [SERVICE_RELAY_SESSION:S0000000:00b51528] Service V2 GME packet received. DESTINATION=20000PIN, CONTENT=CMIME, TAG=1270, RELAYROUTABLE=true, LENGTH=584
[40000] (08/13 08:43:22.349):{0xB4C} [SERVICE_RELAY_SESSION:S0000000:00b51528] Handle Transaction Status. TAG=1270 STATUS=1
DISP: (Gets the Ack Back)
[30388] (08/13 08:43:22.365):{0xDBC} [BIPPa] {User} Forwarding status to BES Agent (S0000000_001), intTag=998, extTag=1270
[40000] (08/13 08:43:22.365):{0x163C} [BIPP] Received status DELIVERED, Tag=998
MAGT: (Gets the ACK Back that the message has been delivred to the BlackBerry)
[40000] (08/13 08:43:22.365):{0x163C} [BIPP] Received status DELIVERED, Tag=998
[30097] (08/13 08:43:22.365):{0x17B0} {user@email.address.net} Message has been delivered to device, Tag=998, EntryId=378539
MAGT: (Message getting marked as read and you would need to start all over again with the new Tag of 322 and the new TranscationID of -1399330782
[40572] (08/13 08:43:37.808):{0x17B0} {user@email.address.net} Receiving MESSAGE_STATUS_UPDATE request from device, Tag=322, TransactionId=-1399330782, RefId=-537543770, MsgStatus=1
[40262] (08/13 08:43:37.808):{0x17B0} {user@email.address.net} StateDb - Found RefId=-537543770
So this took me about 20 minutes to do but i bet you could create a script to do this and it would only take about 1 minute to scan the logs (depending on the size and number of agents)
I would like to see it output the data from the section above without my comments in ()'s
I also have a few other ideas I'm currently thinking of but still in the thinking process.
Thanks!