SMCD(8)

πŸ’– SMCD πŸ’–

okay bestie, gather round, because we're talking about smcd β€” the little Linux Programmer's Manual girlie whose whole job is printing info about SMC-D link groups and devices. yes it's a whole manual page, yes it's in section 8, and yes she ate. ✨


🌸 NAME 🌸

smcd β€” print information about SMC-D link groups and devices. that's it, that's the gig, and she does it flawlessly. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

smcd [ OPTIONS ] OBJECT { COMMAND | help }

OBJECT := { info | linkgroup | device | stats | ueid | seid }

OPTIONS := { -v[ersion] | -d[etails] | -a[bsolute]}

like, you give her an OBJECT, you give her a COMMAND (or you just say help, no judgment), and optionally some OPTIONS. iconic structure, truly. πŸŽ€


✨ OPTIONS ✨

  • -v, -version β€” prints the version of the smcd utility and then dips. that's all she does here. bye πŸ‘‹
  • -d, -details β€” prints detailed information. heads up though: this is only valid for stats. don't try it anywhere else, she's not gonna play with you. πŸ™ˆ
  • -a, -absolute β€” prints the absolute statistic value. also only valid for stats, same energy. πŸ’―

πŸ‘‘ SMCD - COMMAND SYNTAX πŸ‘‘

🌈 OBJECT

  • device β€” one or more SMC-D devices. plural possible, she's flexible.
  • info β€” generic SMC information. the vibes, basically.
  • linkgroup β€” one or more SMC-D link groups or links.
  • stats β€” SMC-D statistics. numbers girlies rise up.
  • ueid β€” work with User defined Enterprise IDs (UEID).
  • seid β€” maintain the System defined Enterprise ID (SEID).

and here's the cute part: the names of all objects can be abbreviated down to a unique stem. so device can be shortened to dev, or even just d. no cap. 🫢

for more deets about the individual objects, go look at the man pages hanging out in the SEE ALSO section below, k?

🧚 COMMAND

this is the action you wanna perform on the object. the set of possible actions depends on the object type β€” so it's giving "depends on the situation," iykyk.

for most objects you can specify the show or link-show command. and if you're ever lost, just use the help command for an object β€” she'll print out information about the available actions and the specific syntax for that object. she's not gatekeeping. πŸ’œ

oh and also: if no command is given, a default command is assumed. she'll just do her thing. ✨


⭐ RETURN CODES ⭐

successful smcd commands return 0 and display the requested link group or device information. slay. πŸ”₯

if an error occurs, smcd writes a message to stderr and completes with a return code other than 0. possible error messages to stderr in case of non-zero return code:

  • SMC module not loaded β€” either the kernel is not supporting the smcd tool, or the smc kernel module is not loaded.
so if you're seeing this, bestie, check your kernel support or go load that smc module. that's the whole vibe check. πŸ’€

πŸ“ SEE ALSO πŸ“

af_smc(7), smcr(8), smcd-device(8), smcd-info(8), smcd-linkgroup(8), smcd-stats(8), smcd-ueid(8), smcd-seid(8)


and that's the whole page, bestie!! this little baddie comes from the smc-tools collection and she's dated June 2020. old but gold, fr fr. go forth and print your link group info. mwah πŸ’–πŸŽ€βœ¨