Serial Attached SCSI (SAS) Linux utilities
Project description
sasutils is a set of tools and a Python library to ease the administration of complex SAS fabrics.
Example usage
the following example will list all SAS expanders found in sysfs
from sasutils.sas import SASExpander from sasutils.sysfs import sysfs # sysfs is a helper to walk through sysfs (/sys) for node in sysfs.node('class').node('sas_expander'): # Instantiate SASExpander with the sas_expander sysfs device class expander = SASExpander(node.node('device')) # To get its sysfs name, use: print(expander.name) # To access its attributes, use: print(' %s' % expander.attrs.product_id) # To get attributes from the sas_device sysfs class, use: print(' %s' % expander.sas_device.attrs.sas_address)
- Author:
Stephane Thiell
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(12.1 kB
view hashes)