Re: BES HA scripting query
You could use pstools "psservice" to determine where your service is running:
psservice \\server1 query "blackberry mailstore service"
psservice \\server2 query "blackberry mailstore service"
The STATE will either return RUNNING on the active node or STOPPED on the Standy node.
I'm a bit old school and still use batch scripts with a combination of pstools, findstr and FOR /F commands.
__________________
BES 5.0.3 MR4
Exchange 2010 (SP1 RU3)
SQL 2008 R2
|