Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Below is the code to download the audit report. It is written in the Linux shell script.

Script:

Click on the following file to download the script

View file
namedownloadAuditReport.sh

Configuring Attributes:

  1. Open the file using the following command: vi downloadAuditReport.sh

  2. Configure the below attributes, and save the file.

Attributes

Description

userName

Login name of the user that user who is going to download the report. (e.g. admin@openspecimen.com).

Note: The user has to be a Super Adminstrator.

password

The password of the user. (e.g. Login@#123@#)

url

URL of the server from which you are going to download the report. (e.g. https://example.openspecimen.org)

startDate

From which date you are going to download the report. (

e.g. 2022-12-19

Script by default picks last months start date)

endDate

To which date you are going to download. (

e.g. 2022-12-20

Script by default picks last months end date)

currentTime

This is used to generate the file name.

How to run:

  1. chmod +x downloadAuditReport.sh

  2. ./downloadAuditReport.sh

...