How about putting that command into a small script on the host and just run
that?
That does work 100% (as I use it alot)
On 17 May 2012 14:13, Guenther Bergmann <guenther_bergmann AT gbergmann DOT
de>wrote:
> Hi TSM'ers,
>
> I am trying to do backups with the TSM Client, 6.2.2.0, running on AIX 5.3,
> TL11 against a TSM Server 5.5.6.0
>
> The backup itselfs works ok, but i face difficulties defining and running a
> preschedulecmd.
>
> Some diagnosis below:
>
> root@tsm-client:/var/log/tsm> dsmc q sched
> IBM Tivoli Storage Manager
> Command Line Backup-Archive Client Interface
> Client Version 6, Release 2, Level 2.0
> Client date/time: 05/11/2012 14:35:17
> (c) Copyright by IBM Corporation and other(s) 1990, 2010. All Rights
> Reserved.
>
> Node Name: TSM-NODE
> Session established with server TSMSERV: AIX-RS/6000
> Server Version 5, Release 5, Level 6.0
> Server date/time: 05/11/2012 14:35:17 Last access: 05/11/2012 01:30:58
>
> Schedule Name: CSCH_PPZ_SC3_ORA_INC
> Description: Taegliche Sicherung der SC3-Rechner mittels shell-Skript
> f.
> Oracle-Backup
> Schedule Style: Classic
> Action: Incremental
> Options: -preschedulecmd="/usr/bin/su - appuser -c
> /appdir/2/admin-
> tools/backup/bin/onbkup -x 1>/dev/null 2>/dev/null"
> Objects:
> Priority: 5
> Next Execution: 10 Hours and 55 Minutes
> Duration: 1 Hour
> Period: 1 Day
> Day of Week: Any
> Month:
> Day of Month:
> Week of Month:
> Expire: Never
>
> ***************************
> dsmsched.log says:
>
>
> 05/11/2012 01:30:57
> Executing scheduled command now.
> 05/11/2012 01:30:57
> Executing Operating System command or script:
> "/usr/bin/su - appuser -c /appdir/admin-tools/backup/bin/onbkup -x
> 1>/dev/null 2>/dev/null"
> 05/11/2012 01:30:57 Finished command. Return code is: 127
> 05/11/2012 01:30:57 ANS1902E The PRESCHEDULECMD command failed. The
> scheduled
> event will not be executed.
> 05/11/2012 01:30:57 ANS1512E Scheduled event 'CSCH_PPZ_SC3_ORA_INC' failed.
> Return code = 12.
> 05/11/2012 01:30:57 Sending results for scheduled event
> 'CSCH_PPZ_SC3_ORA_INC'.
>
>
> I have fiddled a bit with " and ' in the Options definition, but to no
> success.
> It seems that the operating system (or ksh to be exact) always gets the
> command with leading ", so it cant' be executed.
>
> Any solution to this other than upgrading to server 6.x ?
>
> regards Günther
>
> --
> Guenther Bergmann, Am Kreuzacker 10, 63150 Heusenstamm, Germany
> Guenther_Bergmann at gbergmann dot de
>
|