JobSchedulerCommands command group for the AdminTask object

You can use the Jython or Jacl scripting languages to configure the job scheduler with the wsadmin tool. The commands and parameters in the JobSchedulerCommands command group can be used to manage configuration attributes and custom properties.

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

  • Using Jacl
    $AdminTask showJobSchedulerAttributes
  • Using Jython
    AdminTask.showJobSchedulerAttributes()

Interactive mode example usage

  • Using Jacl:
    $AdminTask showJobSchedulerAttributes
  • Using Jython:
    AdminTask.showJobSchedulerAttributes()

modifyJobSchedulerAttribute

The modifyJobSchedulerAttribute command modifies a configuration attribute of the job scheduler.

Target object

None

Required parameters

-name
Specifies the name of the attribute to modify. (String)
The following attributes are supported.
  1. datasourceJNDIName (default value is jdbc/lrsched)
  2. databaseSchemaName (default value is LRSSCHEMA)
  3. deploymentTarget (default value is none)
  4. endpointJobLogLocation (default value is ${GRID_JOBLOG_ROOT})
  5. enableUsageRecording (default value is false)
  6. enableUsageRecordingZOS (default value is false)

Optional parameters

-value
Specifies the 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

  • Using Jacl:
    $AdminTask modifyJobSchedulerAttribute {-name datasourceJNDIName -value "jdbc/ds"}
  • Using Jython:
    AdminTask.modifyJobSchedulerAttribute('[-name datasourceJNDIName -value jdbc/ds]')

Interactive mode example usage

  • Using Jacl:
    $AdminTask modifyJobSchedulerAttribute {-interactive}
  • Using Jython:
    AdminTask.modifyJobSchedulerAttribute('[-interactive]')

createJobSchedulerProperty

The createJobSchedulerProperty command creates custom properties for the job scheduler.

Target object

None

Required parameters

-name
Specifies the name of the custom property to create. (String)
-value
Specifies the value of the custom property. (String)

Optional parameters

-description
Specifies the description of the custom property. (String)

Return value

The command returns the properties object ID.

Batch mode example usage

  • Using Jacl:
    $AdminTask createJobSchedulerProperty {-name bjsProp1 -value "bjsprop1"}
  • Using Jython:
    AdminTask.createJobSchedulerProperty('[-name bjsProp1 -value bjsprop1]')

Interactive mode example usage

  • Using Jacl:
    $AdminTask createJobSchedulerProperty {-interactive}
  • Using Jython:
    AdminTask.createJobSchedulerProperty('[-interactive]')

modifyJobSchedulerProperty

The modifyJobSchedulerProperty command modifies custom properties for the job scheduler.

Target object

None

Required parameters

-name
Specifies the name of the custom property to modify. (String)
-value
Specifies the value of the custom property. (String)

Optional parameters

-description
Specifies the description of the custom property. (String)

Return value

The command returns the properties object ID.

Batch mode example usage

  • Using Jacl:
    $AdminTask modifyJobSchedulerProperty {-name bjsProp1 -value "bjsprop1"}
  • Using Jython:
    AdminTask.modifyJobSchedulerProperty('[-name bjsProp1 -value bjsprop1]')

Interactive mode example usage

  • Using Jacl:
    $AdminTask modifyJobSchedulerProperty {-interactive}
  • Using Jython:
    AdminTask.modifyJobSchedulerProperty('[-interactive]')

removeJobSchedulerProperty

The removeJobSchedulerProperty command removes custom properties of the job scheduler.

Target object

None

Required parameters

-name
Specifies the name of the custom property to remove. (String)

Optional parameters

None

Return value

The command returns the properties object ID.

Batch mode example usage

  • Using Jacl:
    $AdminTask removeJobSchedulerProperty {-name bjsProp1} 
  • Using Jython:
    AdminTask.removeJobSchedulerProperty('[-name bjsProp1]')

Interactive mode example usage

  • Using Jacl:
    $AdminTask removeJobSchedulerProperty {-interactive}
  • Using 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

  • Using Jacl:
    $AdminTask listJobSchedulerProperties
  • Using Jython:
    AdminTask.listJobSchedulerProperties()

Interactive mode example usage

  • Using Jacl:
    $AdminTask listJobSchedulerProperties
  • Using Jython:
    AdminTask.listJobSchedulerProperties()