Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I think the forum is a great idea, especially for those of us in consulting engineering. Keep up the good work!..."

Geography

Where in the world do Tek-Tips members come from?
rmolds (Programmer)
14 Sep 11 10:20
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
MadMichael (Programmer)
15 Sep 11 9:35
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'.
MadMichael (Programmer)
15 Sep 11 9:43
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
rmolds (Programmer)
15 Sep 11 10:08
Thanks, that is exactly what I needed.

Ron

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close