I need to write a script, which will work slightly differently on Intel Skylake processors. I can see that the
lscpu tool outputs
Model number differently on different CPUs, for example:
i7-4578U Model number = 69 (it's my laptop) E5-2699 Model number = 63 (it's a server)
However, both processors belong to the Haswell micro-architecture family, so this method doesn't look reliable.
What is the reliable and recommended method to determine Intel CPU micro-archirtecture from a Linux script?
OS: Ubuntu (various versions)