cputype(8)
π» 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/cpuinfoare printed as well as the output from thegrepcommand used. return code 2 is set. π§The machine type came out null. Please report a bug with this output:the contents of/proc/cpuinfoare printed. return code 3 is set. π null?! in this economy?!An unknown machine type was reported: mmmmPlease 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/cpuinfoare 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
- opensuse-leap 16.0: s390-tools 2.44.1-160000.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms