Skip to main content

Serial Attached SCSI (SAS) Linux utilities

Project description

sasutils is a set of command-line tools and a Python library to ease the administration of Serial Attached SCSI (SAS) fabrics.

https://img.shields.io/pypi/v/sasutils.svg Supported Python Versions License

CLI tools

  • sas_devices

  • sas_discover

  • ses_report

Example usage (Python)

  • the following example will list all SAS hosts (controllers) found in sysfs

    from sasutils.sas import SASHost
    from sasutils.sysfs import sysfs
    
    # sysfs is a helper to walk through sysfs (/sys)
    for node in sysfs.node('class').node('sas_host'):
    
        # Instantiate SASHost with the sas_host sysfs device class
        host = SASHost(node.node('device'))
    
        # To get its sysfs name, use:
        print(host.name)
        # To get attributes from scsi_host, use:
        print('  %s' % host.scsi_host.attrs.host_sas_address)
        print('  %s' % host.scsi_host.attrs.version_fw)
  • See also https://github.com/stanford-rc/sasutils/wiki/Code-snippets

Author:

Stephane Thiell

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sasutils-0.1.5.tar.gz (13.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page