03-12-2012, 12:04 PM
Talking BlackBerry Encyclopedia
Join Date: Nov 2007
Post Thanks: 5
Thanked 16 Times in 13 Posts
| | 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