diff --git a/collect.sh b/collect.sh index b178f37..51e01ee 100755 --- a/collect.sh +++ b/collect.sh @@ -9,17 +9,12 @@ echo "Airgapped Systems will need to exfiltrate /root/*.csv" echo "" - - iterations=$1 for (( i=1; i<=$iterations; i++ )); do # Execute the command python3 ixiostat.py gstat -C -s -d -o -p -I 60s >> /root/gstat.csv - - - # Wait for 60 seconds before the next iteration sleep 60 done diff --git a/ixiostat.py b/ixiostat.py index 0373bfe..202b738 100644 --- a/ixiostat.py +++ b/ixiostat.py @@ -6,6 +6,7 @@ from datetime import datetime def convert_to_machine_readable(date_string): + print(f"converting {date_string}") # Define the format string considering the time zone information (EDT) format_string = "%a %b %d %H:%M:%S %p %Z %Y" try: