truenas / py-SMART

Wrapper for smartctl (smartmontools)
GNU Lesser General Public License v2.1
79 stars 35 forks source link

Please add xall method #55

Closed ulmitov closed 1 year ago

ulmitov commented 1 year ago

Hi,

Please add this method in smartctl object ` def xall(self, disk_type: str, disk: str) -> List[str]: """Queries smartctl with option --xall

    Args:
        disk_type (str): the disk type (interface)
        disk (str): the disk os-full-path

    Returns:
        List[str]: A raw line-by-line output from smartctl
    """
    return self.generic_call(['-d', disk_type, '-x', disk], pass_options=True)[0]

`

ulmitov commented 1 year ago

Opened by mistake, not sure it's needed

ralequi commented 1 year ago

Didn't know that command exists. Probably it should be explored as well at some point