JobSchedulerCommands (AdminTask)
We can use Jacl scripting languages to configure the job scheduler with wsadmin.sh. JobSchedulerCommands commands can be used to manage configuration attributes and custom properties.
showJobSchedulerAttributes
Show 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
- Jacl
$AdminTask showJobSchedulerAttributes
- Jython
AdminTask.showJobSchedulerAttributes()
Interactive mode
- Jacl:
$AdminTask showJobSchedulerAttributes
- Jython:
AdminTask.showJobSchedulerAttributes()
modifyJobSchedulerAttribute
Modify 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
- Jacl:
$AdminTask modifyJobSchedulerAttribute {-name datasourceJNDIName -value "jdbc/ds"}
- Jython:
AdminTask.modifyJobSchedulerAttribute('[-name datasourceJNDIName -value jdbc/ds]')
Interactive mode
- Jacl:
$AdminTask modifyJobSchedulerAttribute {-interactive}
- Jython:
AdminTask.modifyJobSchedulerAttribute('[-interactive]')
createJobSchedulerProperty
Create 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
- Jacl:
$AdminTask createJobSchedulerProperty {-name bjsProp1 -value "bjsprop1"}
- Jython:
AdminTask.createJobSchedulerProperty('[-name bjsProp1 -value bjsprop1]')
Interactive mode
- Jacl:
$AdminTask createJobSchedulerProperty {-interactive}
- Jython:
AdminTask.createJobSchedulerProperty('[-interactive]')
modifyJobSchedulerProperty
Modify 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
- Jacl:
$AdminTask modifyJobSchedulerProperty {-name bjsProp1 -value "bjsprop1"}
- Jython:
AdminTask.modifyJobSchedulerProperty('[-name bjsProp1 -value bjsprop1]')
Interactive mode
- Jacl:
$AdminTask modifyJobSchedulerProperty {-interactive}
- Jython:
AdminTask.modifyJobSchedulerProperty('[-interactive]')
removeJobSchedulerProperty
Remove 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
- Jacl:
$AdminTask removeJobSchedulerProperty {-name bjsProp1}
- Jython:
AdminTask.removeJobSchedulerProperty('[-name bjsProp1]')
Interactive mode
- Jacl:
$AdminTask removeJobSchedulerProperty {-interactive}
- Jython:
AdminTask.removeJobSchedulerProperty('[-interactive]')
listJobSchedulerProperties
List 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
- Jacl:
$AdminTask listJobSchedulerProperties
- Jython:
AdminTask.listJobSchedulerProperties()
Interactive mode
- Jacl:
$AdminTask listJobSchedulerProperties
- Jython:
AdminTask.listJobSchedulerProperties()
Related tasks
Scripting for batch applications