hardware - Is there a common linux utility/way to query information about all the disks on a system? -
i'm writing script gain remote access machines in lab , assess disks in system , used for. need to:
1. of disks in system, includes san disks non standard hw raid controllers. 2. check if disks part of software raid. 3. check disk partitions , if boot-able. 4. gather basic information drive including manufacturer block size etc. .
the problem running there doesn't seem convenient place find of information out writing 10+ pages of regular expressions of each of utilities need used find information. surprisingly, easier on windows since can use wmi. there more programmatic way gather of information seek in linux?
the tools i'd think of:
kpartx,partprobe,blkid,lshw;cfdisk,parted
i think parted geared automation.
lshw has xml output.
Comments
Post a Comment