mirror / smartmontools

smartmontools mirror
https://www.smartmontools.org/
GNU General Public License v2.0
97 stars 50 forks source link

one liner command that shows model etc. along with smartctl --scan? #4

Open anish70 opened 7 years ago

anish70 commented 7 years ago

Hi,

Sitting behind LSI MegaRAID, it is very hard to know what devices make up your RAID. One way to do that is to run 'smartctl --scan'.

However, if I have multiple RAIDs on the same box, it is hard to know details of a Device-ID like model, capacity etc.

Can an option be added to address above?

Ideally smartctl --scan --info works together to print a succinct output that shows DID, along with model and capacity?

thanks, Anish

samm-git commented 6 years ago

Hi, i dont think that you need any kind of special command for that. Just use something like smartctl --scan|awk '{print $1}'|xargs -n1 smartctl --info and tat will do the job.

samm-git commented 6 years ago

@anish70 please also note that is not an official mirror or project bugtracker. Use smartmontools.org or github.com/smartmontools/smartmontools instead