c2a13d6f24
This code has been written as a proof of concept, but I think that it can be useful in general. It allows to set the status of an enclosure slot. Practically, this means controlling whatever slot status LEDs the enclosure provides. At present, the new command does not have sanity checks or any conveniences. That means that it is possible to issue the command for an invalid slot and an enclosure. But the worst I have seen happening is either the command failing or simply being ignored. Also, at the moment, the status has to be specified as a numeric bit mask. The bit definitions can be found in sys/dev/mps/mpi/mpi2_init.h, they are prefixed with MPI2_SEP_REQ_SLOTSTATUS_. The only way to address a slot is by the enclosure handle and the slot number. Both are readily available from mpsutil show commands. So, future enhancements could include alternative ways to address a slot (e.g., by a disk handle or a disk device name) and human friendly names for slot statuses. The new command is useful alternative to 'sas2ircu locate' command. First, sas2ircu is a proprietary blob. Second, it supports setting only locate / identify status bit. Tested on HP H220 running LSI IT firmware 20.x. Reviewed by: bapt MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D20535 |
||
---|---|---|
.. | ||
ac | ||
accton | ||
acpi | ||
adduser | ||
amd | ||
ancontrol | ||
apm | ||
apmd | ||
arp | ||
audit | ||
auditd | ||
auditdistd | ||
auditreduce | ||
authpf | ||
autofs | ||
bhyve | ||
bhyvectl | ||
bhyveload | ||
binmiscctl | ||
blacklistctl | ||
blacklistd | ||
bluetooth | ||
boot0cfg | ||
bootparamd | ||
bsdconfig | ||
bsdinstall | ||
bsnmpd | ||
btxld | ||
camdd | ||
cdcontrol | ||
chkgrp | ||
chown | ||
chroot | ||
ckdist | ||
clear_locks | ||
config | ||
cpucontrol | ||
crashinfo | ||
cron | ||
crunch | ||
ctladm | ||
ctld | ||
cxgbetool | ||
daemon | ||
dconschat | ||
devctl | ||
devinfo | ||
diskinfo | ||
dumpcis | ||
editmap | ||
edquota | ||
eeprom | ||
efibootmgr | ||
efidp | ||
efivar | ||
etcupdate | ||
extattr | ||
extattrctl | ||
fdcontrol | ||
fdformat | ||
fdread | ||
fdwrite | ||
fifolog | ||
flowctl | ||
fmtree | ||
freebsd-update | ||
fstyp | ||
ftp-proxy | ||
fwcontrol | ||
getfmac | ||
getpmac | ||
gpioctl | ||
gssd | ||
gstat | ||
hyperv | ||
i2c | ||
ifmcstat | ||
inetd | ||
iostat | ||
iovctl | ||
ip6addrctl | ||
ipfwpcap | ||
iscsid | ||
jail | ||
jexec | ||
jls | ||
kbdcontrol | ||
kbdmap | ||
keyserv | ||
kgmon | ||
kldxref | ||
lastlogin | ||
lpr | ||
lptcontrol | ||
mailstats | ||
mailwrapper | ||
makefs | ||
makemap | ||
manctl | ||
memcontrol | ||
mergemaster | ||
mfiutil | ||
mixer | ||
mld6query | ||
mlx5tool | ||
mlxcontrol | ||
mount_smbfs | ||
mountd | ||
moused | ||
mpsutil | ||
mptable | ||
mptutil | ||
mtest | ||
ndiscvt | ||
ndp | ||
newsyslog | ||
nfscbd | ||
nfsd | ||
nfsdumpstate | ||
nfsrevoke | ||
nfsuserd | ||
ngctl | ||
nghook | ||
nmtree | ||
nologin | ||
nscd | ||
ntp | ||
nvram | ||
ofwdump | ||
pciconf | ||
periodic | ||
pkg | ||
pmc | ||
pmcannotate | ||
pmccontrol | ||
pmcstat | ||
pmcstudy | ||
pnfsdscopymr | ||
pnfsdsfile | ||
pnfsdskill | ||
pnpinfo | ||
portsnap | ||
powerd | ||
ppp | ||
pppctl | ||
praliases | ||
praudit | ||
prometheus_sysctl_exporter | ||
pstat | ||
pw | ||
pwd_mkdb | ||
pwm | ||
quot | ||
quotaon | ||
rarpd | ||
repquota | ||
rip6query | ||
rmt | ||
route6d | ||
rpc.lockd | ||
rpc.statd | ||
rpc.umntall | ||
rpc.yppasswdd | ||
rpc.ypupdated | ||
rpc.ypxfrd | ||
rpcbind | ||
rrenumd | ||
rtadvctl | ||
rtadvd | ||
rtprio | ||
rtsold | ||
rwhod | ||
sa | ||
sendmail | ||
service | ||
services_mkdb | ||
sesutil | ||
setfib | ||
setfmac | ||
setpmac | ||
smbmsg | ||
snapinfo | ||
spi | ||
spkrtest | ||
spray | ||
syslogd | ||
sysrc | ||
tcpdchk | ||
tcpdmatch | ||
tcpdrop | ||
tcpdump | ||
tests | ||
traceroute | ||
traceroute6 | ||
trim | ||
trpt | ||
tzsetup | ||
uathload | ||
uefisign | ||
ugidfw | ||
uhsoctl | ||
unbound | ||
usbconfig | ||
usbdump | ||
utx | ||
vidcontrol | ||
vigr | ||
vipw | ||
wake | ||
watch | ||
watchdogd | ||
wlandebug | ||
wpa | ||
yp_mkdb | ||
ypbind | ||
ypldap | ||
yppoll | ||
yppush | ||
ypserv | ||
ypset | ||
zic | ||
zonectl | ||
zzz | ||
Makefile | ||
Makefile.amd64 | ||
Makefile.arm | ||
Makefile.arm64 | ||
Makefile.i386 | ||
Makefile.inc | ||
Makefile.mips | ||
Makefile.powerpc | ||
Makefile.riscv | ||
Makefile.sparc64 |