IBM Support

pre/post schedule command errors with: ANS1107E Invalid option/value

Troubleshooting


Problem

pre/post schedule command errors with: ANS1107E Invalid option/value

Resolving The Problem

When installing dsmcad to manage the scheduler for the selective backup using the presched and postsched commands it fails. The schedule is set as follows:

12/10/2003 09:59:29
------------------------------------------------------------
12/10/2003 09:59:29 Schedule Name: ARCH_MAIL
12/10/2003 09:59:29 Action: Command
12/10/2003 09:59:29 Objects: sys:archmail.ncf
12/10/2003 09:59:29 Options:
-preschedulecmd=sys:unloadm.ncf -postschedulecmd=sys:loadmon.ncf
-nwexitnlmp=no
12/10/2003 09:59:29 Server Window Start: 09:45:00 on 12/10/2003
12/10/2003 09:59:29
------------------------------------------------------------

and the results in the following:

****
12/10/2003 09:59:29
Executing scheduled command now.
12/10/2003 09:59:29
Executing Operating System command or script:
sys:unloadm.ncf
12/10/2003 09:59:29 Finished command. Return code is: 0
12/10/2003 09:59:29 ANS1107E Invalid option/value:
'-preschedulecmd=sys:unloadm.ncf -postschedulecmd=sys:loadmon.ncf
-nwexitnlmp=no'
12/10/2003 09:59:29 ANS1512E Scheduled event 'ARCH_MAIL' failed. Return
code = 12.
12/10/2003 09:59:29 Sending results for scheduled event 'ARCH_MAIL'.
12/10/2003 09:59:29 Results sent to server for scheduled event
'ARCH_MAIL'.
******

Using single or double quotes around the options still fails with the same error, however if it is run in a script it works correctly, for example:

- File "sys:archmail.ncf":

dsmc sel sys:çenviro.txt

- File "sys:unloadm.ncf"

unload monitor

- File "sys:loadmon.ncf"

load monitor

This is working as designed. The following statement in the manual states for the option parameter:

"Specifies the client options that you specify to the DSMC command at the time the schedule processed. This parameter is optional...". So the action=command does not issue a DSMC, it executes a batch file.

The following actions issue a DSMC:

Incremental
Selective
Archive
REstore
RETrieve
IMAGEBACup
IMAGEREStore

The following actions do not issue a DSMC:

Command
Macro

As these 2 last parameters from the ACTION parameters list are not DSMC commands, this option shouldn't be used.

[{"Product":{"code":"SSGSG7","label":"Tivoli Storage Manager"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Client","Platform":[{"code":"PF020","label":"NetWare"}],"Version":"5.1","Edition":"","Line of Business":{"code":"LOB26","label":"Storage"}}]

Document Information

Modified date:
17 June 2018

UID

swg21168449