cputype(8)

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

πŸ’» cputype(8) β€” the s390-tools era πŸ’…

okay so bestie, you know how mainframes are literally iconic but nobody ever knows which one they're on? yeah. this is that page. it's cputype from s390-tools, and it's here to end the confusion. 🫢


✨ NAME ✨

cputype β€” based on the IBM machine model, returns a (hopefully) human understandable string that identifies the processor. like, it's giving "hello, this is your mainframe speaking" πŸ’–


🌸 SYNOPSIS 🌸

cputype

that's it. no flags. no args. she's low maintenance and highkey perfect.


πŸ¦‹ DESCRIPTION πŸ¦‹

so cputype is designed to make it easy (yes, easy easy) to find out the type of mainframe system you're using. how? it peeks at /proc/cpuinfo πŸ‘€ and converts whatever it finds there into the name that people who are actually familiar with IBM mainframes would typically know. no cap.

it's literally a translator between kernel soup and human speech. iconic behaviour only.

πŸŽ€ PARAMETERS πŸŽ€

None. not a single one. she takes nothing and she slays anyway. πŸ’…


πŸ“ FILES πŸ“

  • /proc/cpuinfo β€” read to determine the IBM machine model for the running system. this is the whole vibe check. ⭐

πŸ”₯ DIAGNOSTICS πŸ”₯

the following messages may be issued on stderr (so like, pay attention, bestie 😭):

  • This command is only useful on IBM mainframes. the command was executed on a system that is running on a non-IBM mainframe architecture. return code 1 is set. like, wrong platform, babes. πŸ™ˆ
  • I couldn't find the machine type. Please report a bug with this output: the contents of /proc/cpuinfo are printed as well as the output from the grep command used. return code 2 is set. 🧚
  • The machine type came out null. Please report a bug with this output: the contents of /proc/cpuinfo are printed. return code 3 is set. πŸ’€ null?! in this economy?!
  • An unknown machine type was reported: mmmm Please file a bug report with this output: this is most likely seen because the command was run on a newer generation processor and the script has not been updated with the new model number. the contents of /proc/cpuinfo are printed. return code 4 is set. new gen processor said "who are you" and the script said "idk her" 🌈
reminder: every one of those exit codes matters if you're scripting this. 1, 2, 3, 4 β€” know them, love them, handle them. πŸ‘‘

πŸ’œ BUGS πŸ’œ

gotta be some, I'm sure. if you find one, please open a bug report. the original author said it with their whole chest and honestly? relatable. if something's cursed, tell the maintainers β€” don't just suffer in silence, bestie. 😀


πŸ‘‘ SEE ALSO πŸ‘‘

(no SEE ALSO section in this page β€” she stands alone, main character energy, periodt.)


<div align="center">πŸŽ€ πŸ’– πŸŽ€</div>

and that's the whole page, bestie! this one's cputype from s390-tools, version 1.0, dated February 2016 β€” so like, a vintage icon, but a forever icon. go forth and know your mainframe. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from