install windows 10 using ide disk and virtio.iso drivers
[gnt-info] / gnt-smart-query.sh
1 #!/bin/sh -xe
2
3 cp smart-query.sh /tmp/smart-query.sh
4 gnt-cluster copyfile /tmp/smart-query.sh
5
6 # in column names, replace space with dot, eg:
7 # Serial Number -> Serial.Number
8
9 gnt-cluster command -M \
10         /tmp/smart-query.sh Power_On_Hours Reallocated_Sector_Ct Serial.Number $@ \
11 | grep -v '^return' | grep -v '^--*$' \
12 | tee /dev/shm/gnt-smart-query | column -t -s :
13