SGSAFTE(8)

πŸ“¦ version 1.6.6, in opensuse-leap 16.0

πŸ’… SGSAFTE(8) β€” like, the SAF-TE girlie's whole manual, bestie

okay so first things first: this is a page from the System Manager's Manual, and the star of the show is sgsafte. she's iconic, she's useful, and she's about to tell you everything your hotswap backplane is feeling. 🫢


✨ NAME ✨

sgsafte β€” get SAF-TE status and set disk LEDs πŸ’‘


🌸 SYNOPSIS 🌸

sgsafte [-defmnrx]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so listen. sgsafte is a program that uses the SCSI Generic interface to send specific SCSI commands so it can obtain the SAF-TE hotswap backplane slot statuses, and also optionally set a disk fault LED. She's basically the group chat admin for your backplane, keeping tabs on every slot. πŸ”₯

Real talk though: the SCSI Generic interface requires that the kernel .config file have CONFIG_CHR_DEV_SG set. No cap, if that's not set, none of this is happening. 😭

And yes, she journals. A log file named sgsafte.log is created in the /var/log directory, which logs the status of the functions and any errors. She's not nosy, she's thorough. πŸ’…


πŸ’– OPTIONS πŸ’–

Command line options are described below. Go off, pick your faves.

  • -? β€” This option displays a summary of the commands accepted. It's giving "help me help you" energy. πŸ™ˆ
  • -d β€” Specifies the drive number to set (0, 1, ...) as displayed in the sgsafte display. So like, pick your fave slot. ✨
  • -e β€” Causes any file writes to be avoided, such as the log file. Very "touch grass, write nothing" of her. 🌸
  • -m β€” Use More than 8-byte serial numbers (i.e. 12 bytes). Some disk vendors use longer serial numbers. The default is to detect either 8 or 12 byte serial numbers from the SCSI inquiry response. She'll figure it out herself, but you can insist. πŸ’β€β™€οΈ
  • -n β€” Naming. By default, the device names are displayed as numeric sequences (/dev/sg0). This option shows the device names as alphabetic sequences (/dev/sga). numbers or letters, both valid, both slay. πŸ”€
  • -x β€” Causes extra debug messages to be displayed. For when you simply must know everything. πŸ‘‘

πŸŽ€ SEE ALSO πŸŽ€

sgdiag(8) sgdskfl(8) sgmode(8) sgdefects(8)

(the whole friend group, fr fr 🫢)


⚠️ WARNINGS ⚠️

On some systems with older scsi drivers, the primary defect list cannot be returned without errors.

Not me warning you: check the source. See http://sourceforge.net/projects/scsirastools/ for a bug list and any later versions of this utility. πŸ‘€

Copyright (C) 2001-2002 Intel Corp.

This program is open source software. You can redistribute it and/or modify it under the terms of the BSD License. See the COPYING file included with this software package for more details regarding distribution. πŸ“œ

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. (she said what she said πŸ’€)


🌈 AUTHOR 🌈

Andy Cress <arcress@users.sourceforge.net> β€” the main character who made all this happen. πŸ’œ


✨ and that's the whole vibe, bestie ✨ β€” this gorgeous little page is Version 1.1: 09 Nov 2001, and it lives at SGSAFTE(8). now go check those LEDs. πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from