Tuesday, April 3, 2012

FTA Stop & Start commands & script

To Start & Stop a TWS FTA use the below commands: 

1. Start a TWS FTA:
       
./<TWS_home>/StartUp
./<TWS_home>/bin/conman "start & link @;noask"

2. Stop a TWS FTA:
       
./<TWS_home>/bin/conman "shutdown;wait"

And a small script to start / stop TWS FTA:
       
#!/bin/sh
#
# Start/Stop the Tivoli Workload Scheduler FTA
#

case "$1" in

   start)
        /<TWS_home>/StartUp
        /<TWS_home>/bin/conman "start & link @;noask"
        ;;
   stop)
        /<TWS_home>/bin/conman "shutdown;wait"
        ;;
   *)
      echo "Unknown flag passed to $0."
      echo "Usage: $0 {start, stop}"

esac
exit 0

Note: The above script is the simplest possible, I like simple things, even we have a error as it will try to start / stop all the agents but it does not have rights, which is normal.


2 comments:

  1. Hi, I've just found your blog, thanks for sharing your best practices.
    About the start in this post, consider that if you are using the event management, you should also run "conman startmon" in order to start monitoring processes.

    ReplyDelete
    Replies
    1. Hi, thanks for you feedback.

      Yes "conman startmon" could be added to start script but by default in localopts you have "autostart monman =yes" that why i skip it.

      Delete