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.

||comm<strong>and</strong>s when per<strong>for</strong>ming scheduled image snapshot backup operations. See“Srvprepostsnapdisabled” on page 355 <strong>for</strong> more in<strong>for</strong>mation.Client return codesThe backup-archive comm<strong>and</strong> line interface <strong>and</strong> the scheduler exit with returncodes that accurately reflect the success or failure of the client operation. Scripts,batch files, <strong>and</strong> other automation facilities can use the return code from thecomm<strong>and</strong> line interface. For operations that use <strong>Tivoli</strong> <strong>Storage</strong> <strong>Manager</strong>’sscheduler, the return codes are shown in the output of the QUERY EVENTadministrative comm<strong>and</strong>. See the <strong>IBM</strong> <strong>Tivoli</strong> <strong>Storage</strong> <strong>Manager</strong> Administrator’sReference <strong>for</strong> your operating system <strong>for</strong> more in<strong>for</strong>mation about QUERY EVENT.In general, the return code is related to the highest severity message during theclient operation.v If the highest severity message is in<strong>for</strong>mational (ANSnnnnI), then the returncode will be 0.v If the highest severity message is a warning (ANSnnnnW), then the return codewill be 8.v If the highest severity message is an error (ANSnnnnE or ANSnnnnS), then thereturn code will be 12.The exception to the above rules is warning or error messages that individual filescould not be processed. For such a skipped file, the return code will be 4. For caseswhere the return code is not 0, you can examine the dsmerror.log file (<strong>and</strong>, <strong>for</strong>scheduled events, the dsmsched.log file).For a description of the return codes <strong>and</strong> their meanings, see Table 46Table 46. Client return codes <strong>and</strong> their meaningsCodeExplanation0 All operations completed successfully.4 The operation completed successfully, but some files were not processed.There were no other errors or warnings. This return code is very common.Files are not processed <strong>for</strong> various reasons. The most common reasons are:v The file satisfies an entry in an exclude list.v The file was in use by another application <strong>and</strong> could not be accessed bythe client.v The file changed during the operation to an extent prohibited by the copyserialization attribute. See “Copy serialization” on page 161.8 The operation completed with at least one warning message. For scheduledevents, the status will be Completed. Review dsmerror.log (<strong>and</strong> dsmsched.log<strong>for</strong> scheduled events) to determine what warning messages were issued <strong>and</strong>to assess their impact on the operation.12 The operation completed with at least one error message (except <strong>for</strong> errormessages <strong>for</strong> skipped files). For scheduled events, the status will be Failed.Review the dsmerror.log file (<strong>and</strong> dsmsched.log file <strong>for</strong> scheduled events) todetermine what error messages were issued <strong>and</strong> to assess their impact on theoperation. As a general rule, this return code means that the error was severeenough to prevent the successful completion of the operation. For example,an error that prevents an entire file system from being processed yields returncode 12. When a file is not found the operation yields return code 12.Chapter 7. Automating tasks 155

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

Saved successfully!

Ooh no, something went wrong!