Re: [ADSM-L] netezza TSM nzrestore trouble
2017-02-17 10:49:51
Hi
usually Return code = 127 means that command not found.
I think you run CAD under the root user and if you use user nz in Putty,
schedule OBJECTS can looks like: OBJECTS='/usr/bin/su - nz "-c
/nz/kit.7.2.1.1-P1/bin/restore_tsm.sh"'
+ add to the script PATH to nzrestore and if it is necessary apply user
environment.
Efim
> 17 февр. 2017 г., в 18:17, Jeannie Bruno <JBruno AT CENHUD DOT COM>
> написал(а):
>
> Hello. Anyone run into this error?
> ANS1512E Scheduled event 'NETEZZA_WKD' failed. Return code = 127.
>
> I have a ./nzrestore command that works from the prompt from PUTTY. (And
> I've restored 2 DB's using this via Putty). (Netezza is a Linux box).
>
> ./nzrestore -u xxxxxx -pw xxxxxxxxx -db ABC -connector Tivoli -connectorArgs
> "TSM_XXXXX=xxxxxxxxxxxxxxxx"
>
> But now I want to schedule the restore with TSM.
> I have the nzrestore command scripted in a .sh file (linux shell script) and
> the TSM schedule kicks off the command file and executes the script fine, but
> I fails right away.
>
> From dsmsched.log:
> 02/17/2017 09:49:22
> Executing Operating System command or script:
> sh /nz/kit.7.2.1.1-P1/bin/restore_tsm.sh
> 02/17/2017 09:49:22 Finished command. Return code is: 127
> 02/17/2017 09:49:22 ANS1909E The scheduled command failed.
> 02/17/2017 09:49:22 ANS1512E Scheduled event 'NETEZZA_WKD' failed. Return
> code = 127.
> 02/17/2017 09:49:22 Sending results for scheduled event 'NETEZZA_WKD'.
> 02/17/2017 09:49:22 Results sent to server for scheduled event 'NETEZZA_WKD'.
>
> I've googled and someone said to check ownership and permissions and I did
> all that when trying to get the restore to work with PUTTY. I've granted
> users: root and Tivoli permission.
>
> Any thoughts/help would be appreciated.
>
>
> ____________________
> Jeannie Bruno
> Senior Systems Analyst
> jbruno AT cenhud DOT com
> Central Hudson Gas & Electric
> (845) 486-5780
>
>
> We Care About Your Privacy. This message may contain confidential and/or
> privileged information and is
> only for the intended recipient. If the reader of this message is not the
> intended recipient, or an employee or
> agent responsible for delivering this message to the intended recipient,
> please notify the sender immediately by
> replying to this note and deleting all copies. Thank you.
|
|
|