SAS_DISCOVER(1)
π SAS_DISCOVER π
okay bestie, welcome to sas_discover, a lil tool from the sasutils collection, and no cap it is SO good at what it does. it's a section 1 command, iykyk. π¦
β¨ NAME β¨
sas_discover β display Serial Attached SCSI (SAS) topology. that's it, that's the job, and she eats every time π
πΈ SYNOPSIS πΈ
sas_discover [-h] [--verbose] [--addr] [--devices] [--counters]
π DESCRIPTION π
so here's the vibe: sas_discover shows you your SAS topology, starting from the host initiator(s), going through any SAS expanders, all the way up to the SAS targets. it's giving β¨family tree but make it storageβ¨.
every link usually represents one SAS port connection, whether that port is using one PHY or a whole squad of them. if there's more than one PHY per port, the count is shown explicitly β like "--4x--" for a 4-PHY wide port. slay.
heads up bestie: by default, sas_discover tries to fold common devices (like disks), so you don't get absolutely spammed. example:
-- 60 x end_device -- disk
60 x 1-PHY links, each connected to a SAS end_device target of
SCSI type disk
see? 60 disks, one line. iconic. π
Host initiators, expanders and end devices are all labelled with the same name used in sysfs. if you throw -v at it, you get more descriptive info, but the topology will stay folded whenever possible. also, sas_discover -v prints SES-2 subenclosure nicknames, which are genuinely so useful for identifying JBODs/SIMs and external SAS switches hanging off the topology. obsessed. π
use -vv to unfold the topology and get more info (eg. model, size, bay identifier in enclosure). π₯
use -vvv to get extra low-level information for each SAS end device. deep dive energy, no crumbs. π
and add --addr if you also want the SAS address printed for each SAS component in the topology. π«Ά
π OPTIONS π
optional arguments:
-h,--helpβ show this help message and exit. the classic, the icon, the "wait what does this do again" button. π--verbose,-vβ Verbosity level, repeat multiple times! stack it up like a combo, bestie. β--addrβ Print SAS addresses. π--devicesβ Print associated devices. π¦--countersβ Print I/O counters. π
π EXIT STATUS π
an exit status of zero means the command succeeded, and failure otherwise. simple as that, periodt.
π SEE ALSO π
go read those too, they're the friend group. π
π BUG REPORTS π
found a bug? got feedback? don't suffer in silence, bestie β use this URL to submit a bug report or feedback:
https://github.com/stanford-rc/sasutils/issues
π AUTHOR π
Stephane Thiell <sthiell@stanford.edu>
π COPYRIGHT π
Apache License Version 2.0
and that's the whole page, angel π this one came from sasutils version 0.6.1, dated 2024-11-11. go forth and map some topology, you've got this πβ¨π¦
π¦ where this page comes from
- epel 10: sasutils 0.6.1-1.el10_0 Β· ASL 2.0
- epel 9: sasutils 0.6.1-1.el9 Β· ASL 2.0
- fedora 43: sasutils 0.6.1-7.fc43 Β· Apache-2.0
- fedora 44: sasutils 0.6.1-8.fc44 Β· Apache-2.0
- nixos 26.05: sasutils 0.6.1
- nixpkgs unstable: sasutils 0.6.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms