JobSchedulerCommands
Use the Jython or Jacl scripting languages to configure the job scheduler with the wsadmin tool. The commands in the JobSchedulerCommands command group can be used to manage configuration attributes and custom properties.
Manage the job scheduler:
- showJobSchedulerAttributes
- modifyJobSchedulerAttribute
- createJobSchedulerProperty
- modifyJobSchedulerProperty
- removeJobSchedulerProperty
- listJobSchedulerProperties
showJobSchedulerAttributes
The showJobSchedulerAttributes command shows all configuration attributes of the job scheduler.
Target object: None
Required parameters: None
Optional parameters: None
Return value.
The command returns a list of all attributes of the job scheduler.
Batch mode example usage
- Use Jacl
$AdminTask showJobSchedulerAttributes- Use Jython
AdminTask.showJobSchedulerAttributes()
Interactive mode example usage
- Use Jacl:
$AdminTask showJobSchedulerAttributes- Use Jython:
AdminTask.showJobSchedulerAttributes()
modifyJobSchedulerAttribute
The modifyJobSchedulerAttribute command modifies a configuration attribute of the job scheduler.
Target object: None
Required parameters:
- -name
- Name of the attribute to modify. (String)
The following attributes are supported.
- datasourceJNDIName (default value is jdbc/lrsched)
- databaseSchemaName (default value is LRSSCHEMA)
- deploymentTarget (default value is none)
- endpointJobLogLocation (default value is ${GRID_JOBLOG_ROOT})
- enableUsageRecording (default value is false)
- enableUsageRecordingZOS (default value is false)
Optional parameters:
- -value
- Value of the attribute. (String) If not specified, the default value for the respective attributes is assigned.
Return value.
The command returns the job scheduler object ID.
Batch mode example usage
- Use Jacl:
$AdminTask modifyJobSchedulerAttribute {-name datasourceJNDIName -value "jdbc/ds"}- Use Jython:
AdminTask.modifyJobSchedulerAttribute('[-name datasourceJNDIName -value jdbc/ds]')
Interactive mode example usage
- Use Jacl:
$AdminTask modifyJobSchedulerAttribute {-interactive}- Use Jython:
AdminTask.modifyJobSchedulerAttribute('[-interactive]')
createJobSchedulerProperty
The createJobSchedulerProperty command creates custom properties for the job scheduler.
Target object: None
Required parameters:
- -name
- Name of the custom property to create. (String)
- -value
- Value of the custom property. (String)
Optional parameters:
- -description
- Description of the custom property. (String)
Return value.
The command returns the properties object ID.
Batch mode example usage
- Use Jacl:
$AdminTask createJobSchedulerProperty {-name bjsProp1 -value "bjsprop1"}- Use Jython:
AdminTask.createJobSchedulerProperty('[-name bjsProp1 -value bjsprop1]')
Interactive mode example usage
- Use Jacl:
$AdminTask createJobSchedulerProperty {-interactive}- Use Jython:
AdminTask.createJobSchedulerProperty('[-interactive]')
modifyJobSchedulerProperty
The modifyJobSchedulerProperty command modifies custom properties for the job scheduler.
Target object: None
Required parameters:
- -name
- Name of the custom property to modify. (String)
- -value
- Value of the custom property. (String)
Optional parameters:
- -description
- Description of the custom property. (String)
Return value.
The command returns the properties object ID.
Batch mode example usage
- Use Jacl:
$AdminTask modifyJobSchedulerProperty {-name bjsProp1 -value "bjsprop1"}- Use Jython:
AdminTask.modifyJobSchedulerProperty('[-name bjsProp1 -value bjsprop1]')
Interactive mode example usage
- Use Jacl:
$AdminTask modifyJobSchedulerProperty {-interactive}- Use Jython:
AdminTask.modifyJobSchedulerProperty('[-interactive]')
removeJobSchedulerProperty
The removeJobSchedulerProperty command removes custom properties of the job scheduler.
Target object: None
Required parameters:
- -name
- Name of the custom property to remove. (String)
Optional parameters: None
Return value.
The command returns the properties object ID.
Batch mode example usage
- Use Jacl:
$AdminTask removeJobSchedulerProperty {-name bjsProp1}- Use Jython:
AdminTask.removeJobSchedulerProperty('[-name bjsProp1]')
Interactive mode example usage
- Use Jacl:
$AdminTask removeJobSchedulerProperty {-interactive}- Use Jython:
AdminTask.removeJobSchedulerProperty('[-interactive]')
listJobSchedulerProperties
The listJobSchedulerProperties command lists all of the custom properties the job scheduler.
Target object: None
Required parameters: None
Optional parameters: None
Return value.
The command returns a list of all of the custom properties of the job scheduler.
Batch mode example usage
- Use Jacl:
$AdminTask listJobSchedulerProperties- Use Jython:
AdminTask.listJobSchedulerProperties()
Interactive mode example usage
- Use Jacl:
$AdminTask listJobSchedulerProperties- Use Jython:
AdminTask.listJobSchedulerProperties()
Script for batch applications