# echo $((`grep -c processor /proc/cpuinfo` / 2))
For example, if you activated 36 core processors, the following is displayed
36
Note:
The commands in this section are applicable when hyper-threading is enabled on the server, so the processor count is divided by two to get the true core count. These commands also provide an incorrect value if hyper-threading is not in use. A warning is displayed when hyper-threading is disabled on the server.
If hyper-threading has been disabled, use the following command to validate the active cores:
grep -c processor /proc/cpuinfo