SMP_CONF_ZONE_MAN_PASS(8)
π SMP_CONF_ZONE_MAN_PASS π
okay bestie, welcome to smp_conf_zone_man_pass, section 8 of the manual, living in the SMP_UTILS collection. no cap, this one is a whole vibe: it invokes the CONFIGURE ZONE MANAGER PASSWORD function. let's get into it π«Ά
β¨ NAME β¨
smp_conf_zone_man_pass β invoke CONFIGURE ZONE MANAGER PASSWORD function
β¨ SYNOPSIS β¨
smp_conf_zone_man_pass [--expected=EX] [--fpass=FP] [--help] [--hex]
[--interface=PARAMS] [--new-fpass=NF] [--new-pass=NP] [--password=PA]
[--raw] [--sa=SAS_ADDR] [--save=SAV] [--verbose] [--version]
SMP_DEVICE[,N]
β¨ DESCRIPTION β¨
so basically π this little icon sends a SAS Serial Management Protocol (SMP) CONFIGURE ZONE MANAGER PASSWORD function request to an SMP target. that's the whole job, she's focused.
the SMP target gets identified by SMP_DEVICE plus the --sa=SAS_ADDR. depending on which interface you're on, the SAS_ADDR might just be deduced from the SMP_DEVICE β free of charge, we love convenience β¨.
now, the mpt interface is a little extra: it uses SMP_DEVICE to identify a HBA (aka an SMP initiator) and it needs that extra ,N to tell the HBAs apart if there's more than one hanging around. multiple HBAs? not her problem, just give her the ,N π
β¨ OPTIONS β¨
mandatory arguments to long options are mandatory for short options as well. yes bestie, the long and short versions want the same energy π
-E,--expected=EXβ sets the'expected expander change count'field in the SMP request. EX runs from0to65535inclusive, and0is the default. when EX is greater than zero and the value doesn't match the expander change count of the SMP target (i.e. the expander) at the moment the request arrives, then the target straight up ignores the request and sets a function result of"invalid expander change count"in the response. it's giving strict gatekeeping, honestly πͺ-F,--fpass=FPβ where FP is the name of a file containing the existing password. the password can be in ASCII, in which case it sits on one line surrounded by either single quotes or double quotes. alternatively the password 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. and a line starting with-1causes all remaining bytes in the password to be filled with0xffβ iconic fill behavior, slay π₯-h,--helpβ output the usage message then exit. the classic "just tell me what to do" button π-H,--hexβ output the response (less the CRC field) in hexadecimal.-I,--interface=PARAMSβ interface specific parameters. in this case"interface"means the path through the operating system to the SMP initiator. peep thesmp_utilsman page for more info, she explains it better than me π-N,--new-fpass=NFβ where NF is the name of a file containing the new password. the format of this file is the same as the file given in--fpass=FP. twins fr fr π―-n,--new-pass=NPβ where NP is the new zone manager password, which may be up to 32 bytes long. this option cannot be given together with the--new-fpass=NFoption, pick a lane bestie π. the default password is 32 NULLs (zero bytes) and PA is padded with NULLs to the right (to make it 32 bytes long in the request).-P,--password=PAβ where PA is the existing zone manager password, which may be up to 32 bytes long. this option cannot be given together with the--fpass=FPoption. the default password is 32 NULLs (zero bytes) and PA is padded with NULLs to the right (to make it 32 bytes long in the request).-r,--rawβ send the response (less the CRC field) to stdout in binary. all error messages get sent to stderr instead. messy? no, organized π-s,--sa=SAS_ADDRβ specifies the SAS address of the SMP target device. themptinterface needs this option and it will typically be an expander's SAS address. the SAS_ADDR is 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 valid, choose your fighter β-S,--save=SAVβ set the'save'field in the SMP request. SAV may take these values: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. she has range, she has options π-v,--verboseβ increase the verbosity of the output. can be used multiple times. stack it up, more is more β¨-V,--versionβ print the version string and then exit.
β¨ NOTES β¨
hexadecimal bytes (or longer hexadecimal strings) should not have a leading "0x" or a trailing "h" decoration. no extra accessories, the hex wants to be bare π§
the "well known" DISABLE password is 32 bytes of 0xff. the new password can only be DISABLED if physical presence is supported and asserted. so yeah, that's a real constraint, not a vibe β pay attention π
β¨ CONFORMING TO β¨
the SMP CONFIGURE ZONE MANAGER PASSWORD function was introduced in SAS-2. periodt π
β¨ AUTHORS β¨
Written by Douglas Gilbert. legend behavior, we respect it π«Ά
β¨ 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. so like, no promises bestie, she's doing her best π
β¨ SEE ALSO β¨
smp_utils, smp_zone_lock, smp_rep_zone_man_pass(smp_utils)
okay that's the whole page, go forth and configure those zone manager passwords responsibly π
this was smp_utils-0.96, dated June 2011, and it's the SMP_CONF_ZONE_MAN_PASS(8) page β mwah, bye bestie πβ¨
π¦ 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