Measure Mail/SMTP Round Time from SCOM

Have you ever thought about how to measure the actual SMTP/Mail round time on your Mail installation? And have you tried to configure the Exchange MP for external mail bounce without any luck?

Its differcult…

The solution we did for a customer was first of all to ensure the customer have Exchange on-prem, next develop a .exe file which sends a mail to – recieve the ndr and measure the round time.

The file SMTPRoundTrip.exe needs the following parameters:

Your Exchange server, Your Exchange server version, Mailbox, Timeout

My sample:

sServer = “ctex01.coretech.intra”
sVersion = “2013”
sMailbox = “”
sTimeout = “30”

If you would like to collect the return milliseconds please run a script to collect the return code like: (I know – not PS)

   1:  <ScriptBody>Dim oAPI, oBag, oShell, iReturn, sServer, sVersion, sMailbox, sTimeout
   3:  Set oAPI = CreateObject("MOM.ScriptAPI")
   4:  Set oBag = oAPI.CreatePropertyBag()
   6:  Set oShell=CreateObject("Wscript.Shell")
   8:  sServer = "yourexchange"
   9:  sVersion = "2010SP2"
  10:  sMailbox =
  11:  sTimeout = "60"
  13:  iReturn = oShell.Run("c:\scripts\SMTProundtrip.exe" &amp; " " &amp; sServer &amp; " " &amp; sVersion &amp; " " &amp; sMailbox &amp; " " &amp; sTimeout, 1, True)
  15:  Call oBag.AddValue("RoundTripTime",iReturn)
  16:  Call oAPI.Return(oBag)
  17:  </ScriptBody>

Nice use-case Download and try it

Ho Ho Ho – have a great Christmas

Download SMTPRoundTime

See you

Santa Kåre

Comments (2):

  1. Avdo says:

    Nice, will have a look and try it

Leave a Reply