SMCR(8)

✨ NAME ✨

smcr β€” ok so basically this is the little tool that prints information about SMC-R link groups, links and devices πŸ’–

It's the SMCR(8) page from the Linux Programmer's Manual, and bestie, it's giving "I know exactly what's going on with your SMC-R setup" energy. No cap.


🌸 SYNOPSIS 🌸

smcr [ OPTIONS ] OBJECT { COMMAND | help }

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

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

πŸ’… OPTIONS πŸ’…

  • -v, -version β€” prints the version of the smcr utility and then dips out (exits). ✨
  • -a, -absolute β€” prints the absolute statistic value. Heads up though: this one is valid only for stats, so don't come for it anywhere else.
  • -d, -details β€” prints detailed information. The tea, but more of it. πŸ“
  • -dd, -ddetails β€” prints more detailed information. Double the d, double the details. πŸ”₯

πŸ¦‹ SMCR - COMMAND SYNTAX πŸ¦‹

πŸ‘‘ OBJECT

  • device β€” one or more SMC-R devices.
  • info β€” generic SMC information.
  • linkgroup β€” one or more SMC-R link groups or links.
  • stats β€” SMC-R statistics.
  • ueid β€” work with User defined Enterprise IDs (UEID).

Fun fact that is also load-bearing: the names of all objects can be abbreviated down to a unique stem. So like, device can be abbreviated to dev or even just d. Slay. πŸ’…

For more information about individual objects, go check the man pages listed down in SEE ALSO, ok? 🫢

πŸŽ€ COMMAND

Specifies the action to perform on the object. The set of possible actions depends on the object type β€” it's not one-size-fits-all, bestie.

For most objects you can specify the show or link-show command. And if you're ever confused? Use the help command for an object to print information about the available actions and the specific syntax for that object. help is the friend who always knows. 🌈

If no command is given, a default command is assumed. So like, you don't have to say anything, but it's giving "we're going with the default, hope that's what you wanted" energy. πŸ™ˆ

😭 RETURN CODES 😭

Successful smcr commands return 0 and display the requested link group, link or device information. Iconic. πŸ‘‘

If an error occurs, smcr 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 smcr tool, or the smc kernel module is not loaded.

⭐ SEE ALSO ⭐


And that's the whole page, bestie. This one's from the smc-tools collection, dated June 2020. Go read the other man pages, hydrate, and remember: unique stem abbreviations are your friend. Mwah. πŸ’–πŸ§šπŸ’œ