Trilio reporting tools for RHV backups
This procedure will create report files for each TrilioVault Workload and a single Overall report for each 24 hour period. This needs to be run on the TrilioVault Virtual Appliance.
NOTE: Before you begin - if you're using TrilioVault 3.7, you'll need to use the overall_report_3.7.py
file INSTEAD OF overall_report.py
-
STEP 1- Copy reporting Python scripts to the /root/rhv-reporting directory
cd /root
git clone https://github.com/jon-tobin/rhv-reporting.git
-
STEP 2- Create the directory structure that will house the backup reports
mkdir -p /root/rhv-reporting/{overall_report,workload_report}
-
STEP 3- Add execute permissions to Python files
cd /root/rhv-reporting
chmod +x overall_report.py workload_report.py
orchmod +x overall_report_3.7.py workload_report.py
-
STEP 4- Activate Python and enable reporting scripts
/home/rhv/myansible/bin/activate
-
STEP 5- Install configparser
pip install configparser
-
STEP 6- Create a Cron job to run both scripts at the same time each day. This script will run both reports at 12:01 AM every day of the year
- STEP 6a- Copy the coresponding crontab file from rhv-reporting folder
cd /root/rhv-reporting
cp reporting_cron /var/spool/cron/root
orcp reporting_cron_3.7 /var/spool/cron/root
-
STEP 7- Register crontab file for root
crontab -e