NetBatch Manual

Attributes
NetBatch Manual522460-004
7-24
BACKUPCPU Scheduler Attribute
*
specifies any available CPU on the schedulers node. The scheduler selects the
CPU at random.
Considerations
The default value of the BACKUPCPU attribute when cold starting a
scheduler is
the number of the CPU of the scheduler’s primary process.
When cpu-number-1 or cpu-number-2 specifies a nonexistent CPU, the
command fails with a message advising the allowable CPU number range for the
node. For example:
2063-E BACKUPCPU out of range 0 to 15, or * for any CPU
Altering a scheduler’s BACKUPCPU attribute with the ALTER SCHEDULER
command alters the attribute’s value in the scheduler database only. The command
does not force an actual backup CPU change. (Such a change occurs only when
the scheduler’s primary or backup process stops.)
The BACKUPCPU attribute has no effect on the result of a SWITCHCPU
SCHEDULER command. (The command can only switch scheduler processes
between the current primary and backup CPUs.)
Examples
This example first shows the cold start of a scheduler that adopts the default
BACKUPCPU attribute. It then shows the ALTER SCHEDULER command
changing the attribute and the effect of the change when the backup restarts after
stopping.
> NETBATCH /NAME $ZBAT, NOWAIT/ $DATA7.ZBAT !
> BATCHCOM $ZBAT; ADD SCHEDULER; START SCHEDULER
Scheduler added
Scheduler started
> PPD $ZBAT
Name Primary Backup Ancestor
$ZBAT 0,51 1,55 $X849
> BATCHCOM $ZBAT; INFO SCHEDULER, BACKUPCPU
SCHEDULER ATTRIBUTES
backupcpu: 0
> BATCHCOM $ZBAT; ALTER SCHEDULER, BACKUPCPU 0,2
Scheduler altered
> BATCHCOM $ZBAT; INFO SCHEDULER, BACKUPCPU
SCHEDULER ATTRIBUTES
backupcpu: 0,2
> PPD $ZBAT
Name Primary Backup Ancestor
$ZBAT 0,51 1,55 $X849
> STOP 1,55
> PPD $ZBAT