document how to insert partition table to instance
[gnt-info] / gnt-smart-query.sh
index 92bfb91..036d828 100755 (executable)
@@ -2,4 +2,12 @@
 
 cp smart-query.sh /tmp/smart-query.sh
 gnt-cluster copyfile /tmp/smart-query.sh
-gnt-cluster command -M /tmp/smart-query.sh $* | grep -v '^return' | grep -v '^--*$' | tee /dev/shm/gnt-smart-query | column -t -s :
+
+# in column names, replace space with dot, eg:
+# Serial Number -> Serial.Number
+
+gnt-cluster command -M \
+       /tmp/smart-query.sh Power_On_Hours Reallocated_Sector_Ct Serial.Number $@ \
+| grep -v '^return' | grep -v '^--*$' \
+| tee /dev/shm/gnt-smart-query | column -t -s :
+