From: Dobrica Pavlinusic Date: Mon, 17 Feb 2020 20:52:38 +0000 (+0100) Subject: added overview from smart X-Git-Url: http://git.rot13.org/?p=gnt-info;a=commitdiff_plain;h=04a9a9bf77f94913d7956a52f1c9c0a293f66776 added overview from smart --- diff --git a/gnt-disks.sh b/gnt-disks.sh index e063925..7764bdd 100755 --- a/gnt-disks.sh +++ b/gnt-disks.sh @@ -1,6 +1,9 @@ -#!/bin/sh -xe +#!/bin/sh -e gnt-cluster command -M lsblk --scsi -m | grep -v '^return' | tee /dev/shm/gnt-disks | grep -v cdrom +echo "# from lsblk" gnt-cluster command -M lsblk --scsi --output SIZE,MODEL --noheadings --bytes | grep -v '^return' | grep -v '^----*$' | tee /dev/shm/gnt-disk-size-model | cut -d: -f2- | sort | uniq -c | sort -k2 -n | tee /dev/shm/gnt-disks-models +echo "# from smart" +cat /dev/shm/gnt-smart-query | cut -d: -f3,4 | sort | uniq -c