Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Linux Script: Download Audit Report

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

 

Click on the following file to download the script

 

Configuring Attributes:

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

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

Attributes

Description

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. (Script by default picks last months start date)

endDate

To which date you are going to download. (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

Once successfully running, it will download the zip file of the login audit report in the current working directory. File e.g. os_audit_revisions_20221220_1521.zip .

 

 

Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com