I suggest running a sysreport. As root, simply type sysreport, hit enter and follow the intstructions when it is done collecting your info. If you want to run it without collecting package info (which can take quite a while) use the -norpm switch.

It generates a compressed file, after you untar it you will have a directory containing all your system information.
One of the files is called "hardware.py"
cat hardware.py and grep it for the word "system" - this will show not only the model, but the serial number and bios version.

Hi,
if you want to get hardware model(like HP-370) you must
write very small "c" program to ask question from server and
install(execute) in client side
also you must write a small "c" program and install in server side to listen
special port
to ansewer client question