Using Asbman.bat - inside vb script

dwhite

Member
Hi,
We are using a VB script for an automated process of ours that needs to stop and start our AppServers. When we use this command to stop the app server it works great:

C:\Progress\OpenEdge\bin\asbman.bat -name MyAppServer -stop

However, when I use this command to start it back up it doesn't work. I then have to go and manually start the server, which works fine.

C:\Progress\OpenEdge\bin\asbman.bat -name MyAppServer -start

I was wondering if there was a way - within VB script - to call this and then check to see if the server is started and if not try again? Essentially, I need a way to check and see if the server has been started - some way to do this within VB script.
 
grab the output of:

asbman -i MyAppServer -q

after starting it. This does not explain why it does not start in the first place though - how much time is there between stop / starting? ie is the AppServer still trying to stop when you're telling it to start? Or is it a rights issue?

You may want to send all output of asbman to a file too:

asbman -i MyAppServer -stop > stdout.log
 
Thanks that helps quite a bit. I think I might have been wrong. I was making a bad assumption that when the green arrow for the app server was still enabled that it was not "started" yet. Looks like that isn't always the case. :)
 
Back
Top