Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto Restart Agents...

Status
Not open for further replies.

rmolds

Programmer
Sep 14, 2011
2
US
I was wondering if there was a way to restart webspeed agents automatically each morning. I did not set up our system and I am not a Progress developer/administrator. I do know a little and can get myself around the system.

Our Progress database resides on an Unix server and each night the databases are shut down to do backups. Each morning when I come into the office, I need to open the Progress Explorer on the web server, stop the agents and then restart them because they have lost connections to the databases while it was shut down to do the backups.

Sometimes I forget to do this or need to find someone with a little computer know how to do this when I go on vacation.

Is there a way or is there a setting that I could/should do to get these to restart on their own each morning?

Thanks
 
Every startup/shutdown process that you can do in the Progress Explorer GUI can be done from the command line. The Agent (Transaction Server) startup command is:
Code:
wtbman -i [AGENT NAME] -start
Here is a .cmd file that I invoke as a scheduled process to insure that an Agent is started properly after a WEB server re-boot. My database resides on my WEB server and sometimes the database 'auto-start' is slow enough that the Agent tries to 'auto-start' before the database is up. I invoke this script as a scheduled task at system startup. Note that there is a 'sleep 360' command so that the Agent startup command will run 6 minutes after system startup, giving the database server time to start. If the Agent 'auto-start' has already run successfully, the command-line Agent start will just output a message that the Agent was already running. My Agent is 'GOC-NBSLink', and I am re-directing standard output to a log file.
Code:
@echo off
sleep 360
echo "GOC BROKER START" >> C:\PROGRESS\WRK\import.log
"c:\program files\progress\bin\wtbman" -i GOC-NBSLink -start >> C:\PROGRESS\WRK\
import.log
exit
There is of course, a '-stop' option for 'wtbman' if you need to stop the Agent before issuing the '-start'.

Consult the 'Progress Webspeed Installation and Configuraton Guide' for the full syntax of 'wtbman'.
 
ACK!! Here is a slightly better representation of the .cmd file:
Code:
@echo off
sleep 360
echo "GOC BROKER START" >> C:\import.log
"c:\program files\progress\bin\wtbman" -i GOC-NBSLink -start >>C:\import.log
exit
 
Thanks, that is exactly what I needed.

Ron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top