changed gstat, added header row, overwrite csv each time
This commit is contained in:
@@ -18,13 +18,11 @@ echo "This script will auto uploaded data to ftp.ixsystems.com when completed."
|
|||||||
echo "It will also copy the '*.csv' files to /var/log"
|
echo "It will also copy the '*.csv' files to /var/log"
|
||||||
echo "Airgapped systems will need to upload the '*.csv' and/or take a debug."
|
echo "Airgapped systems will need to upload the '*.csv' and/or take a debug."
|
||||||
echo ""
|
echo ""
|
||||||
echo "If you run this script multiple times, it will append to the CSVs"
|
|
||||||
echo ""
|
|
||||||
echo "Starting ['gstat','iostat','zpool','cpu','nic'] Collection"
|
echo "Starting ['gstat','iostat','zpool','cpu','nic'] Collection"
|
||||||
echo ""
|
echo ""
|
||||||
echo -n "START MINUTE COUNT:"
|
echo -n "START MINUTE COUNT:"
|
||||||
|
|
||||||
|
echo "timestamp,name,q-depth,total_ops/s,read/s,read_sz-KiB,read-KiB/s,ms/read,write/s,write_sz-KiB,write-KiB/s,ms/write,delete/s,delete-sz-KiB,delete-KiB/s,ms/delete,other/s,ms/other,%busy" > gstat.csv
|
||||||
timeout ${minutes}m gstat -C -s -d -o -p -I 5s >> gstat.csv &
|
timeout ${minutes}m gstat -C -s -d -o -p -I 5s >> gstat.csv &
|
||||||
|
|
||||||
for (( i=1; i<=$minutes; i++ )); do
|
for (( i=1; i<=$minutes; i++ )); do
|
||||||
|
|||||||
Reference in New Issue
Block a user