none
Biztalk Server Status checking of Orchestration and Received Locations RRS feed

  • Question

  • Does anyone know how to write VB.Net or C# code that can get status of  Biztalk receive location remotely  ? I'm new  to the Vb script .
    Thursday, July 6, 2017 1:43 PM

Answers

  • Hi Vicky,

    You can refer to Enumerate Receive Locations (BizTalk Server Sample)

    You can find the samples at below path \Program Files (x86)\Microsoft BizTalk Server\SDK\Samples


    Rachit Sikroria (Microsoft Azure MVP)

    Thursday, July 6, 2017 1:52 PM
    Moderator
  • Why not powershell?

    BizTalk Server Health Check PowerShell Script
    https://social.technet.microsoft.com/wiki/contents/articles/32946.biztalk-server-health-check-powershell-script.aspx

    The code attached is copied from the article above and quickly checked on my laptop (BTS 2013) ...

    Disabled/Stopped/Unenlisted receive locations, send ports and orchestrations.

    # Get and Display BizTalk Receive Location Information
    [ARRAY]$recLocs = get-wmiobject MSBTS_ReceiveLocation -namespace 'root\MicrosoftBizTalkServer' | Where-Object {$_.IsDisabled -eq "true" }
    Write-Host "`nDisabled Receive Locations (" $recLocs.Count ")" -fore DarkGray
     
    if ($recLocs.Count -gt 0) { $recLocs.Name }
    else { Write-Host "None" }
     
    # Get and Display BizTalk Send Port Information
    [ARRAY]$sendPorts = get-wmiobject MSBTS_SendPort -namespace 'root\MicrosoftBizTalkServer' | Where-Object {$_.Status -eq 2 -or $_.Status -eq 1}
    Write-Host "`nStopped and Unenlisted Send Ports (" $sendPorts.Count ")" -fore DarkGray
     
    if ($sendPorts.Count -gt 0) { $sendPorts.Name }
    else { Write-Host "None" }
     
    # Get and Display Orchstrations not started
    [ARRAY]$orchs = Get-WmiObject MSBTS_Orchestration -namespace 'root\MicrosoftBizTalkServer' | Where-Object {$_.OrchestrationStatus -ne 4 }
    Write-Host "`nNot Started Orchestrations (" $orchs.Count ")" -fore DarkGray
     
    if ($orchs.Count -gt 0) { $orchs.Name }
    else { Write-Host "None" }

    Result from check


    Thursday, July 6, 2017 2:18 PM
  • For BizTalk Server 2004, your only reasonable option is WMI which can be accessed through any language.

    Your best place to start is here: WMI Script Samples

    They will work remotely, but you at least need the BizTalk admin tool installed.

    Monday, July 17, 2017 3:02 PM
    Moderator

All replies

  • Hi Vicky,

    You can refer to Enumerate Receive Locations (BizTalk Server Sample)

    You can find the samples at below path \Program Files (x86)\Microsoft BizTalk Server\SDK\Samples


    Rachit Sikroria (Microsoft Azure MVP)

    Thursday, July 6, 2017 1:52 PM
    Moderator
  • Why not powershell?

    BizTalk Server Health Check PowerShell Script
    https://social.technet.microsoft.com/wiki/contents/articles/32946.biztalk-server-health-check-powershell-script.aspx

    The code attached is copied from the article above and quickly checked on my laptop (BTS 2013) ...

    Disabled/Stopped/Unenlisted receive locations, send ports and orchestrations.

    # Get and Display BizTalk Receive Location Information
    [ARRAY]$recLocs = get-wmiobject MSBTS_ReceiveLocation -namespace 'root\MicrosoftBizTalkServer' | Where-Object {$_.IsDisabled -eq "true" }
    Write-Host "`nDisabled Receive Locations (" $recLocs.Count ")" -fore DarkGray
     
    if ($recLocs.Count -gt 0) { $recLocs.Name }
    else { Write-Host "None" }
     
    # Get and Display BizTalk Send Port Information
    [ARRAY]$sendPorts = get-wmiobject MSBTS_SendPort -namespace 'root\MicrosoftBizTalkServer' | Where-Object {$_.Status -eq 2 -or $_.Status -eq 1}
    Write-Host "`nStopped and Unenlisted Send Ports (" $sendPorts.Count ")" -fore DarkGray
     
    if ($sendPorts.Count -gt 0) { $sendPorts.Name }
    else { Write-Host "None" }
     
    # Get and Display Orchstrations not started
    [ARRAY]$orchs = Get-WmiObject MSBTS_Orchestration -namespace 'root\MicrosoftBizTalkServer' | Where-Object {$_.OrchestrationStatus -ne 4 }
    Write-Host "`nNot Started Orchestrations (" $orchs.Count ")" -fore DarkGray
     
    if ($orchs.Count -gt 0) { $orchs.Name }
    else { Write-Host "None" }

    Result from check


    Thursday, July 6, 2017 2:18 PM
  • Can you explain a bit on what you will be doing with the information?
    Thursday, July 6, 2017 2:51 PM
    Moderator
  • Hi,

    You should use BizTalk Health Monitor to monitor your BizTalk Environment . You can also use this to look for your receive location .Refer the documentation below

    https://blogs.msdn.microsoft.com/biztalkhealthmonitor/2016/12/16/biztalk-health-monitor-v4-0-released/


    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply

    Thursday, July 6, 2017 6:31 PM
  • Hi John,

    To check the status of BizTalk Servers. We use the BizTalk App 2004 .In that  server there is no powershell  that's why am move to Vb script.

    Monday, July 17, 2017 7:03 AM
  • BTS 2004? Please no, there's no servicepack support at all for this software stack
    Why not upgrade? Besides 2004 is a nightmare to support compared to more modern versions

    /Peter

    Monday, July 17, 2017 7:21 AM
  • For BizTalk Server 2004, your only reasonable option is WMI which can be accessed through any language.

    Your best place to start is here: WMI Script Samples

    They will work remotely, but you at least need the BizTalk admin tool installed.

    Monday, July 17, 2017 3:02 PM
    Moderator