12.07.2015 Views

IBM Tivoli Storage Manager for UNIX and Linux Backup-Archive ...

IBM Tivoli Storage Manager for UNIX and Linux Backup-Archive ...

IBM Tivoli Storage Manager for UNIX and Linux Backup-Archive ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table 47. Client return codes <strong>and</strong> their meanings (continued)CodeotherExplanationFor scheduled operations where the scheduled action is COMMAND, thereturn code will be the return code from the comm<strong>and</strong> that was executed. Ifthe return code is 0, the status of the scheduled operation will be Completed. Ifthe return code is nonzero, then the status will be Failed.Some comm<strong>and</strong>s might issue a nonzero return code to indicate success. Forthese comm<strong>and</strong>s, you can avoid a Failed status by wrapping the comm<strong>and</strong> in ascript that invokes the comm<strong>and</strong>, interprets the results, <strong>and</strong> exits with returncode 0 if the comm<strong>and</strong> was successful (the script should exit with a nonzeroreturn code if the comm<strong>and</strong> failed). Then ask your <strong>Tivoli</strong> <strong>Storage</strong> managerserver administrator to modify the schedule definition to invoke your scriptinstead of the comm<strong>and</strong>.The return code <strong>for</strong> a client macro will be the highest return code issued amongthe individual comm<strong>and</strong>s that comprise the macro. For example, suppose a macroconsists of these comm<strong>and</strong>s:selective "/home/devel/*" -subdir=yesincremental "/home/devel/TestDriver/*" -subdir=yesarchive "/home/plan/proj1/*" -subdir=yesIf the first comm<strong>and</strong> completes with return code 0; the second comm<strong>and</strong>completed with return code 8; <strong>and</strong> the third comm<strong>and</strong> completed with return code4, the return code <strong>for</strong> the macro will be 8.See the <strong>IBM</strong> <strong>Tivoli</strong> <strong>Storage</strong> <strong>Manager</strong> Administrator’s Reference <strong>for</strong> your operatingsystem <strong>for</strong> more in<strong>for</strong>mation about QUERY EVENT.Related concepts“Scheduling options <strong>for</strong> comm<strong>and</strong>s” on page 218The scheduler executes comm<strong>and</strong>s under a user ID of 0 (root); however, somecomm<strong>and</strong>s might need to be executed under a user ID other than 0. In this case,your <strong>Tivoli</strong> <strong>Storage</strong> <strong>Manager</strong> administrator can define schedules <strong>for</strong> comm<strong>and</strong>sthat will be executed under a user ID different from the scheduler user ID usingthe schedcmduser server option.228 <strong>IBM</strong> <strong>Tivoli</strong> <strong>Storage</strong> <strong>Manager</strong> <strong>for</strong> <strong>UNIX</strong> <strong>and</strong> <strong>Linux</strong> <strong>Backup</strong>-<strong>Archive</strong> Clients Version 6.1: Installation <strong>and</strong> User’s Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!