This section will guide you through the process of generating a savings and migration report using the provided cost calculation script.

Prerequisites:

Ensure the following Python packages are installed:

Running the Scanning Script:

Step 1: Check pandas and xlsxwriter are installed. If not, run:

pip3 install pandas xlsxwriter

Step 2: Navigate to the script location and copy over pricing files:

cd /xcompute/slurm/bin/cost_calculation && mkdir -p /etc/xspot/aws-pricing && cp -r ./pricing/* /etc/xspot/aws-pricing/

Step 3: Run the script:

General Usage:

python3 scan.py  [options]

Options:

Examples:

python3 scan.py -l logs/
python3 scan.py -l /var/log/logs/ -s 2024-01-01 -e 2024-02-01
python3 scan.py -l /var/log/logs/ -n 60