getSysInfo function

Get system information.