added cpu collection

This commit is contained in:
Marc Mance
2024-05-30 13:50:39 -04:00
parent 7b2e365e5e
commit 76b7f807e9
3 changed files with 72 additions and 4 deletions

View File

@@ -5,8 +5,8 @@ minutes=$1
echo ""
greeting="Running perfcollect for $minutes minutes"
echo "$greeting"
echo "Will auto upload to iXsystem when completed."
echo "Airgapped Systems will need to exfiltrate /root/*.csv"
echo "Will auto upload to ftp.ixsystem.com when completed."
echo "Airgapped Systems will need to exfiltrate *.csv"
echo ""
iterations=$1
@@ -17,7 +17,9 @@ timeout "$minutes"m gstat -C -s -d -o -p -I 60s > gstat.csv &
echo "Starting iostat Collection"
for (( i=1; i<=$iterations; i++ )); do
# Execute the command
python3 ixiostat.py
python3 zpooliostat.py
python3 iostat.py
echo "minute: $i"
# Wait for 60 seconds before the next iteration
sleep 60