added name to header row

This commit is contained in:
Marc Mance
2024-05-30 11:52:43 -04:00
parent cab95ec8fb
commit d51cc89e46
2 changed files with 2 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
minutes=$1 minutes=$1
echo ""
greeting="Running perfcollect for $minutes minutes" greeting="Running perfcollect for $minutes minutes"
echo "$greeting" echo "$greeting"
echo "Will auto upload to iXsystem when completed." echo "Will auto upload to iXsystem when completed."

View File

@@ -2,14 +2,13 @@ import subprocess
import re import re
import csv import csv
import os import os
from datetime import datetime
# Define your shell command # Define your shell command
command = ["zpool", "iostat", "-Tu", "-l", "-p", "-v", "-y", "1", "1"] command = ["zpool", "iostat", "-Tu", "-l", "-p", "-v", "-y", "1", "1"]
headerRow = [ headerRow = [
"time", "time",
"name",
"capacity_alloc", "capacity_alloc",
"capacity_free", "capacity_free",
"ops_read", "ops_read",