BizTalk Server General - Biztalk service

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > April 2006 > Biztalk service





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Biztalk service
Venkat

2006-04-27, 7:26 am

Is there any API/Function to know whether Biztalk service is running or not?

regards,
venkat.
Eric Stott

2006-04-27, 7:26 am

You should be able to create a WMI script to check.

Eric
http://stottcreations.com/blog

"Venkat" <Venkat@discussions.microsoft.com> wrote in message
news:B3043A42-14F9-4234-A29D-D1E0850BF454@microsoft.com...
> Is there any API/Function to know whether Biztalk service is running or
> not?
>
> regards,
> venkat.



Venkat

2006-04-27, 7:26 am

do we have any samples?

"Eric Stott" wrote:

> You should be able to create a WMI script to check.
>
> Eric
> http://stottcreations.com/blog
>
> "Venkat" <Venkat@discussions.microsoft.com> wrote in message
> news:B3043A42-14F9-4234-A29D-D1E0850BF454@microsoft.com...
>
>
>

Pankaj

2006-04-27, 7:26 am

strServerName = "."
set wmi = GetObject("winmgmts://" & strServerName)
Set objWWW = wmi.Get("Win32_Service.Name='BTSSvc$BizTalkServerApplication'")

'msgbox objWWW.name
if objWWW.Started then
wscript.echo "BizTalk service is running!"
else
wscript.echo "BizTalk service is not running!"
end if
Venkat

2006-04-27, 7:26 am

do we have any C# WMI scripts for this from the MSBTS library. i know its
there in that but dont know how to write the scripts.

venkat.

"Pankaj" wrote:

> strServerName = "."
> set wmi = GetObject("winmgmts://" & strServerName)
> Set objWWW = wmi.Get("Win32_Service.Name='BTSSvc$BizTalkServerApplication'")
>
> 'msgbox objWWW.name
> if objWWW.Started then
> wscript.echo "BizTalk service is running!"
> else
> wscript.echo "BizTalk service is not running!"
> end if
>

Venkat

2006-04-27, 7:26 am

Pankaj,
The scripts were giving an error. Line 3 , char 1.

"Pankaj" wrote:

> strServerName = "."
> set wmi = GetObject("winmgmts://" & strServerName)
> Set objWWW = wmi.Get("Win32_Service.Name='BTSSvc$BizTalkServerApplication'")
>
> 'msgbox objWWW.name
> if objWWW.Started then
> wscript.echo "BizTalk service is running!"
> else
> wscript.echo "BizTalk service is not running!"
> end if
>

Pankaj

2006-04-27, 7:26 am

Which version of BTS are you using?
If it is 2006, this script will work.
Else change the service name with the BTS service name for BTS 2004.The name
will be something like BTSSvc{some guid}.


Regards
Pankaj
Randal van Splunteren

2006-04-27, 7:26 am

Hello Venkat,

Download the 'biztalk host manager' from http://biztalkia.blogspot.com and
install it.
Besides the hostmanger this will install a C# assembly (Bsmc.dll) which has
some (wrapper)functionality for WMI functions to manage your host(instances).
The hostmanager itself uses this assembly to manage the hosts.

HTH,
Randal van Splunteren
http://biztalkia.blogspot.com

[vbcol=seagreen]
> do we have any C# WMI scripts for this from the MSBTS library. i know
> its there in that but dont know how to write the scripts.
>
> venkat.
>
> "Pankaj" wrote:
>


Venkat

2006-04-27, 7:26 am

ok, it is bts2004. the whole idea behind this is to prevent the submission of
messages when the biztalk host instances are stopped.

venkat.

"Pankaj" wrote:

> Which version of BTS are you using?
> If it is 2006, this script will work.
> Else change the service name with the BTS service name for BTS 2004.The name
> will be something like BTSSvc{some guid}.
>
>
> Regards
> Pankaj
>

Tomas Restrepo \(MVP\)

2006-04-27, 7:26 am

Venkat,

> do we have any samples?


Here's one in C#:
http://www.winterdom.com/weblog/200...2/BTSReset.aspx


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


Trace Young [MSFT]

2006-04-27, 7:26 am

You should be able to derive something from the BTSAdapterAvailability.vbs
script that is available in the
http://download.microsoft.com/downl...9a-8349-bf352fb
3d802/High_Availability.exe download.

Regards,

Trace
--------------------[vbcol=seagreen]
<#0Jjf61ZGHA.4144@TK2MSFTNGP04.phx.gbl>[vbcol=seagreen]
or[vbcol=seagreen]

This posting is provided "AS IS" with no warranties, and confers no rights.
© 2006 Microsoft Corporation.
All rights reserved.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com