SMP_ENA_DIS_ZONING(8)
π SMP_ENA_DIS_ZONING π
okay bestie, so this is the SMP_ENA_DIS_ZONING page from the SMP_UTILS crew β section 8 of the manual, iykyk. it's giving "let me flip the zoning switch on your SAS expander" energy and honestly? iconic. π¦
β¨ NAME β¨
smp_ena_dis_zoning β invoke ENABLE DISABLE ZONING SMP function
πΈ SYNOPSIS πΈ
smp_ena_dis_zoning [--disable] [--ena-dis=ED] [--expected=EX] [--help]
[--hex] [--interface=PARAMS] [--raw] [--sa=SAS_ADDR] [--save=SAV]
[--verbose] [--version] SMP_DEVICE[,N]
π DESCRIPTION π
so basically this bad boy sends a SAS Serial Management Protocol (SMP) ENABLE DISABLE ZONING function request over to an SMP target. no cap. π
the SMP target gets identified by the SMP_DEVICE and the --sa=SAS_ADDR. depending on which interface you're on, the SAS_ADDR might just be deduced from the SMP_DEVICE β cute, right? β¨ the mpt interface uses SMP_DEVICE to identify a HBA (that's an SMP initiator, btw) and it needs the extra ,N to tell HBAs apart when there's more than one hanging around. very "which one of y'all is it" of it.
now, if you don't hand it either --disable or --ena-dis=ED? it just assumes you want to enable zoning β like, "--ena-dis=1". default behaviour, slay.
β οΈ lowkey important: this function does not change the state of the current zoning enabled flag (the one you'd see in the REPORT GENERAL response). that state change happens later, on a subsequent invocation of the ZONE ACTIVATE function. so don't come for this function asking why nothing flipped β it's not that girl. π
π OPTIONS π
mandatory arguments to long options are mandatory for short options as well. periodt.
-d,--disableβ sets the'enable disable zoning'field in the SMP request to2, which disables zoning. bye zoning π-e,--ena-dis=EDβ sets the'enable disable zoning'field in the SMP request.EDcan be:0for no change,1for enable zoning (that's the default π) and2for disable zoning. and if you give this option and--disableat the same time, they cannot contradict one another. no fighting in the group chat.-E,--expected=EXβ sets the'expected expander change count'field in the SMP request.EXruns from0to65535inclusive, and0is the default value. whenEXis greater than zero, then if the value doesn't match the expander change count of the SMP target (i.e. the expander π«Ά) at the moment the request arrives, the target just ignores the request and sets a function result of"invalid expander change count"in the response. it's giving "wrong vibe check, request denied".-h,--helpβ outputs the usage message then exits. short and sweet.-H,--hexβ outputs the response (less the CRC field) in hexadecimal. hex girl hours β-I,--interface=PARAMSβ interface specific parameters. here,"interface"means the path through the operating system to the SMP initiator. go read thesmp_utilsman page for more info, bestie, it's all there.-r,--rawβ sends the response (less the CRC field) tostdoutin binary. and all error messages? those go tostderr. keeping it separated, as she should. π-s,--sa=SAS_ADDRβ specifies the SAS address of the SMP target device. themptinterface needs this option and it'll typically be an expander's SAS address.SAS_ADDRis in decimal, but most SAS addresses are shown in hexadecimal π. to give a number in hexadecimal, either prefix it with'0x'or put a trailing'h'on it.-S,--save=SAVβ sets the'save'field in the SMP request.SAVcan be:0for updating the shadow values (default),1for updating the saved values,2for updating shadow values and if available the saved values,3for updating both saved and shadow values. pick your fighter. β¨-v,--verboseβ increases the verbosity of the output. can be used multiple times. spam it, she loves it. π’-V,--versionβ prints the version string and then exits. bye π
π CONFORMING TO π
the SMP ENABLE DISABLE ZONING function was introduced in SAS-2 . (yes, with the lil space, we keep it exactly how it is, no editing the lore π)
π«Ά AUTHORS π«Ά
Written by Douglas Gilbert.
π REPORTING BUGS π
Report bugs to <dgilbert at interlog dot com>.
βοΈ COPYRIGHT βοΈ
Copyright Β© 2011 Douglas Gilbert
This software is distributed under a FreeBSD license. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (read that again bestie, fr fr β no promises, no cap π)
π SEE ALSO π
smp_utilssmp_locksmp_zone_activatesmp_zone_unlock(smp_utils)
okay that's the whole page, you ate that π β¨
and for the cute sign-off: this lil masterpiece is from smp_utils-0.96, dated June 2011, and it's the SMP_ENA_DIS_ZONING(8) page β section 8, main character energy, no notes. ππ¦π
π¦ where this page comes from
- debian bookworm: smp-utils 0.99-1 Β· BSD-3-Clause
- debian trixie: smp-utils 0.99-1 Β· BSD-3-Clause
- epel 10: smp_utils 0.99-1.el10_0 Β· BSD-3-Clause
- epel 9: smp_utils 0.99-5.el9 Β· BSD
- fedora 43: smp_utils 0.99-14.fc43 Β· BSD-3-Clause
- fedora 44: smp_utils 0.99-15.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: smp_utils 0.99-bp160.1.6 Β· BSD-3-Clause AND GPL-2.0-only
- opensuse-leap 16.0: smp_utils 0.99-bp160.1.6 Β· BSD-3-Clause AND GPL-2.0-only
- opensuse-leap 16.0: smp_utils 0.99-bp160.1.6 Β· BSD-3-Clause AND GPL-2.0-only
- opensuse-leap 16.0: smp_utils 0.99-bp160.1.6 Β· BSD-3-Clause AND GPL-2.0-only
- ubuntu jammy: smp-utils 0.99-1 Β· BSD-3-Clause
- ubuntu noble: smp-utils 0.99-1 Β· BSD-3-Clause
- ubuntu resolute: smp-utils 0.99-1build1 Β· BSD-3-Clause
- ubuntu stonking: smp-utils 0.99-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms