How to get the number of sockets in your server using Linux
Not really the most useful tip, but a couple of days ago I was looking for a way of determine the number of sockets on this box and after googling around I found this forum from where I adapted the following code that should return the number of sockets in your server, by counting the unique number of entries for the “physical id” string.
grep -i "^physical id" /proc/cpuinfo | sort | uniq | wc -l