Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring an Event Policy to Retry the File Upload Action

When an event policy action generates output files, you can archive the files for later analysis. Similarly, you might want to archive system files, including system log files, core files, and configuration files, from the time an event occurs. You can configure an event policy to upload relevant files to a specified location for analysis. By default, if the file upload operation fails for any reason, the event policy does not retry the upload operation. However, you can configure an event policy to retry the file upload operation a specified number of times if the initial upload fails. You can also configure the time interval between each retry attempt. The following event policies are configured to retry the file upload operation:

Example 1

Configure a policy that retries the file upload operation two times with a time interval of 5 seconds between retries:

Example 2

Configure a transfer delay of 10 seconds and retry the file upload operation two times with a time interval of 5 seconds between retries:

The transfer delay is in operation for the first upload attempt only. The policy uploads the command-output.txt file after a 10-second transfer delay. If the event process (eventd) detects failure of the upload operation, eventd retries the upload operation after 5 seconds. The failure detection time can be in the range from 60 to 90 seconds, depending on the transmission protocol, such as FTP.

The following sequence describes the file upload operation with two failed retransmissions:

  1. Policy triggers upload operation.

  2. Transmission delay of 10 seconds.

  3. Policy tries to upload the output file.

  4. Policy detects transmission failure.

  5. Retry interval of 5 seconds.

  6. Policy tries to upload the output file.

  7. Policy detects transmission failure.

  8. Retry interval of 5 seconds.

  9. Policy tries to upload the output file.

  10. Policy detects transmission failure.

  11. Policy declares the failure of the file upload operation.