using sysinfo structure to retrieve information for diagnostic function