NetBatch Manual
Scheduler Planning, Configuration, and
Management
NetBatch Manual—522460-004
3-32
Displaying Scheduler, Executor, and Class Status
when one of the scheduler’s processes stops or during scheduler startup). For
example:
> PPD $SCHD
Name Primary Backup Ancestor
$SCHD 1,49 0,59 $Z185
> BATCHCOM $SCHD; ALTER SCHEDULER, BACKUPCPU 2,3
Scheduler altered
> PPD $SCHD
Name Primary Backup Ancestor
$SCHD 1,49 0,59 $Z185
> STOP 1,49
> PPD $SCHD
Name Primary Backup Ancestor
$SCHD 0,59 2,39 $Z185
Switching a Scheduler’s CPUs
NetBatch supervisors can switch a scheduler’s primary process to the CPU of its
backup process and the backup process to the CPU of its primary process by using the
SWITCHCPU SCHEDULER command. For example:
> PPD $NBAT
Name Primary Backup Ancestor
$NBAT 0,263 1,264 $C3
> BATCHCOM $NBAT; SWITCHCPU SCHEDULER
Scheduler CPUs switched
> PPD $NBAT
Name Primary Backup Ancestor
$NBAT 1,264 0,263 $C3
The SWITCHCPU SCHEDULER command lets you improve scheduler performance
when, for example, the scheduler’s primary process is competing for system resources
in a busy CPU. By switching CPUs, you can run the scheduler’s primary process in the
less heavily used CPU of its backup.
The SWITCHCPU SCHEDULER command switches scheduler processes only
between the current primary and backup CPUs. It does not switch the primary process
to a different backup CPU as specified by the scheduler’s BACKUPCPU attribute.
(BACKUPCPU applies only when the scheduler creates a new backup processfor
example, when one of the scheduler’s processes stops or during scheduler startup.)
For example:
> PPD $ZBAT
Name Primary Backup Ancestor
$ZBAT 0,268 3,269 $C8
> BATCHCOM $ZBAT; ALTER SCHEDULER, BACKUPCPU 1
Scheduler altered
> PPD $ZBAT
Name Primary Backup Ancestor
$ZBAT 0,268 3,269 $C8
> BATCHCOM $ZBAT; SWITCHCPU SCHEDULER
Scheduler CPUs switched
> PPD $ZBAT