Retry an Upload
Use the retry command to restart an upload process that was initiated earlier but was suspended, interrupted, or failed earlier. The retry process restarts the upload from where it was suspended, thus conserving time and network bandwidth. In case of a previously failed attempt, it uploads the file again.
Command Syntax
odu-client retry [optional_arguments]
Command Parameters and Optional Arguments
The following optional arguments are specific to this command:
Arguments | Description |
---|---|
|
The run ID of an upload that was initiated and suspended earlier. Each upload request is provided with a unique run ID which can be later used to obtain submission status of the request or to restart the upload. |
|
The number of files that the ODU client can simultaneously upload. This parameter takes an integer value and by default is set to 3. The maximum value accepted is 10. |
|
The directory with write permission where the ODU client will store the information about the processing done on the log files. The default location is |
Example
-
Command to view the run IDs that can be retried:
odu-client retry
An example output of this command is:
retry Following runId(s) can be retried Page 1 of 1 Total Records:2 RunId CreatedOn CreatedBy UploadName Source Total-Files Pending Failure Submitted 48 Fri Mar 22 16:07:38 PST 2019 myUserName testUpload Linux Syslog Logs 72 66 0 6 47 Fri Mar 22 11:53:41 PST 2019 myUserName testUpload Linux Syslog Logs 72 72 0 0 Search for matches OR Enter n to see next items OR Enter p to see previous items OR Enter q to quit or Enter <runId> to retry :
From the above output, you can use the
RunId
to search and navigate within pages. You can specify theRunId
to retry the upload. -
Command to retry an upload process that has the run ID
25
and to upload6
files in parallel:odu-client retry --runId 25 --parallel 6