SMP_ZONE_LOCK(8)
π SMP_ZONE_LOCK(8) β smp_zone_lock π
okay bestie, welcome to SMP_ZONE_LOCK(8), part of the smp_utils squad π this one's a manual page from the SMP_UTILS family and she's here to help you fire off a ZONE LOCK SMP function request. buckle up, it's giving storage admin and honestly? we ate. π
β¨ NAME β¨
smp_zone_lock β invoke ZONE LOCK SMP function
like, that's literally her whole job. no cap. π¦
πΈ SYNOPSIS πΈ
smp_zone_lock [--expected=EX] [--fpass=FP] [--help] [--hex]
[--inactivity=TL] [--interface=PARAMS] [--password=PA] [--raw]
[--sa=SAS_ADDR] [--verbose] [--version] SMP_DEVICE[,N]
π DESCRIPTION π
so what she does: she sends a SAS Serial Management Protocol (SMP) ZONE LOCK function request to an SMP target. simple as that. π
who's the target, you ask? the SMP target is identified by the SMP_DEVICE and the --sa=SAS_ADDR. depending on which interface you're using, the SAS_ADDR might just get deduced from the SMP_DEVICE β she's smart like that. β¨
but heads up bestie, the mpt interface is built different: it uses SMP_DEVICE to identify a HBA (that's an SMP initiator) and it needs that extra ,N on the end to tell the HBAs apart if you've got multiple of them hanging around. it's giving "which one of y'all is it" energy. π
π OPTIONS π
real talk: mandatory arguments to long options are mandatory for short options too. the rules apply to everybody, periodt.
-E,--expected=EXβ sets the'expected expander change count'field in the SMP request.EXgoes from0to65535inclusive, and0is the default. so here's the tea: whenEXis greater than zero and the value doesn't match the expander change count of the SMP target (aka the expander) at the moment the request shows up, the target just ignores your request and sets a function result of"invalid expander change count"in the response. π rude but fair.-F,--fpass=FPβFPis the name of a file that holds the password. the password can be in ASCII, in which case it's on one line surrounded by either single quotes or double quotes. OR it can be given in ASCII hexadecimal β either as bytes separated by space, tab, comma or newline, or as longer strings of hexadecimal bytes where every 2 digits represents a byte. empty lines and lines starting with"#"are ignored, so you can annotate away, queen. π-h,--helpβ outputs the usage message then exits. short and sweet, we love a quick exit. π«Ά-H,--hexβ outputs the response (less the CRC field) in hexadecimal. pretty colours for your eyeballs. π-i,--inactivity=TLβ sets the zone lock inactivity time limit toTL, which has units of 100 milliseconds. default value is0, which implies no time limit. live your life, no rush. β-I,--interface=PARAMSβ interface specific parameters. and just so we're clear, "interface" here means the path through the operating system to the SMP initiator. go check thesmp_utilsman page for more info, iykyk. π₯-P,--password=PAβPAis the zone manager password, which can be up to 32 bytes long. π¨ this option cannot be given together with the--fpass=FPoption β pick a lane bestie, not both. the default password is 32 NULLs (zero bytes), andPAgets padded with NULLs to the right so it's 32 bytes long in the request. π-r,--rawβ sends the response (less the CRC field) to stdout in binary. all error messages go to stderr. clean separation, we stan. π-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. heads up: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. two ways, both iconic. β¨-v,--verboseβ increases the verbosity of the output. can be used multiple times. stack 'em like bracelets. π-V,--versionβ prints the version string and then exits. bye babes! π
π¦ CONFORMING TO π¦
The SMP ZONE LOCK function was introduced in SAS-2 . (yes with the lil space, that's how she wrote it, we don't edit the queen's handwriting π)
π AUTHORS π
Written by Douglas Gilbert. king behaviour, honestly. π
π REPORTING BUGS π
Report bugs to <dgilbert at interlog dot com>. be nice about it, they're fixing things for free. π«Ά
π 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. so like, don't come for her if something goes sideways, fr fr. π
π SEE ALSO π
smp_utilssmp_zone_activatesmp_zone_unlocksmp_ena_dis_zoning(smp_utils)
π okay that's the whole page bestie, go lock some zones responsibly. remember: every flag, every default, every byte β we kept it all, no cap.
this was SMP_ZONE_LOCK(8) from smp_utils-0.96, dated June 2011 β vintage but still serving πβ¨π mwah! π«Ά
π¦ 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