WebSphere Extended Deployment, Version 6.0.x
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS


setupLongRunning.py

Use the following python script to configure the long-running scheduler and long-running execution environment.

Purpose

With the setupLongRunning.py file, you can:

If you have the role of configurator or administrator, you have all the configuration privileges for the long-running scheduler.

Location

The setupLongRunning.py script is located in the <install_root>\bin directory.

Usage

To run the setupLongRunning.py script with wsadmin, use the following command:

wsadmin -lang jython -f setupLongRunning.py type [options]

Replace type [options] variables with the appropriate type and options for your task. You might have to modify the wsadmin command to wsadmin.sh or wsadmin.bat, depending upon your operating environment.

Operations

You can do the following with the setupLongRunning.py script:
  • lrs: Set up your long-running scheduler that includes:
    • Create the dynamic cluster for LRS
    • Set the dynamic cluster operational mode
    • Set the maximum number of cluster instances to 1
    • Enable startup beans for cluster instances
    • Set up virtual hosts for cluster instances
    • Configure the LRS
    • Deploy the LRS application
    Table 1. lrs options
    Option Description
    --ngName Specifies the node group to be set up to host the long-running scheduler.
    --dcName Specifies the dynamic cluster where the long-running scheduler application is to be deployed.
    --dcMode Optional: Specifies the dynamic cluster operational mode:
    • automatic
    • manual
    • supervised (default)
    --appName Optional: Specifies an application name. Default is LongRunningScheduler.
    --schema Specifies the database schema name for the long-running scheduler database. Default is LRSSCHEMA.
    --jndiName Specifies the data source name where jobs are stored.
    --aliasName Optional: Specifies the alias to a user name and password used to access the data source.
  • lree: Set up your long-running execution environment that includes:
    • Create a dynamic cluster for the long-running execution environment
    • Set the dynamic cluster operational mode
    • Enable startup beans for cluster instances
    • Set up virtual hosts for cluster instances
    • Deploy the long-running execution environment application
    Option Description
    --ngName Specifies the node group to be set up for the long-running execution environment.
    --dcName Specifies the dynamic cluster where the long-running execution environment application is to be deployed.
    --dcMode Optional: Specifies the dynamic cluster operational mode:
    • automatic
    • manual
    • supervised (default)
    --appName Optional: Specifies an application name. Default is LREE.
    --dbType Specifies the database type which is supported by the ejbdeploy command. Following are some possible values:
    • DB2UDB_VXX
    • CLOUDSCAPE_VX
    • INFORMIX_VXX
    • ORACLE_VX
    --schema Specifies the database schema name for the long-running execution environment database. Default is LREESCHEMA.
    --jndiName Specifies the data source name where jobs status and result is stored.

Example

./wsadmin.sh -lang jython -f setupLongRunning.py 
./wsadmin.sh -lang jython -f setupLongRunning.py lrs --help
./wsadmin.sh -lang jython -f setupLongRunning.py lree --help
Set up the LRS with minimum parameters:
./wsadmin.sh -lang jython -f setupLongRunning.py lrs --ngName SchedulerNG  
--dcName Scheduler --jndiName jdbc/lrsched
Set up the LREE with minimum parameters:
./wsadmin.sh -lang jython -f setupLongRunning.py lree --ngName NodeGroup1 
--dcName EndPoint1 --jndiName jdbc/lree --dbType DB2UDB_V81



Related concepts
Configuring the long-running scheduler
Related reference
Administrative roles and privileges
Reference topic    

Terms of Use | Feedback

Last updated: Oct 16, 2009 11:14:15 AM EDT
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=/com.ibm.websphere.xd.doc/info/reference/rbglrsched.html