kellyjonbrazil / jc

CLI tool and python library that converts the output of popular command-line tools, file-types, and common strings to JSON, YAML, or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.
MIT License
7.72k stars 197 forks source link

New parser request: cpuid #469

Open paoloschi opened 9 months ago

paoloschi commented 9 months ago

If one wants to get the family name of the Intel CPU (whether it is a Sandy Bridge, Ivy Bridge, Haswell, Skylake, etc.) from the command line, as far as I have been able to discover, the only tool that allows this seems to be cpuid

The command prints out quite a lot of data to the terminal, and being able to extract just a few values from it would become simple only by first transforming it into JSON, I think… That's why I opened this request

kellyjonbrazil commented 9 months ago

Hi - thanks for the parser suggestion! I haven’t checked but is this information not available with the dmidecode command?

paoloschi commented 9 months ago

Hi, I know that jc already includes the parser for dmidecode of which I have read the manual well and tested every option and no, it does not return the CPU code name. Of all the similar tools I could try, only cpuid does it.