|
|
| 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
>
| |
|
|
| 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.
|
|
|
|