beautypg.com

Return values, Using the trace file – HP Library and Tape Tools User Manual

Page 70

background image

Return values

When an operation is performed from the command line, L&TT returns a value indicating success
or failure. Depending on the operation performed, the value returned has different meanings.
When L&TT is run from a script, a return value greater than 0 indicates an error condition.

Return values are as follows:

Generic

Success

0

Abnormal exit/operation failure

1

Tests

Success

0

Abnormal exit/operation failure

1

Invalid test name specified

2

Passed with warnings

3

Failed

4

Firmware

Success

0

Abnormal exit/operation failure

1

Firmware file corrupt or missing

2

Product ID mismatch, config code mismatch, permission mismatch

3

Update finished with check condition

4

Update complete; manual intervention required

5

Generic firmware update failure

6

Report/support ticket

Success

0

Abnormal exit/operation failure

1

Invalid target directory; unable to create directory

2

Ticket generation failure (data acquisition/parse/decode problem)

3

File permission issue; unable to write to file

4

Using the trace file

When an operation is performed using the command line, L&TT creates a trace file,
toolactivity.log

, in the logs directory. This file contains details of the options entered, status

of the operation, and other decoding messages. The trace file is not overwritten on subsequent
runs of L&TT; the file is ed in append mode. Script developers should parse this file, in addition to
the event log, to find the status of the attempted operation.

70

Command line functionality