I'm parsing customer logs, I need to want to figure out which distro they are running. I can't run commands on their systems, all I have is the logs.
The property os.name always returns, Linux, but the os.version returns what appears to be the kernel version? For instance, 2.6.9-42.0.3.ELsmp or 2.6.5-7.283-smp.
After some google is appears that the last characters of the os.version can be mapped to a distro.
Values ending in, ELsmp or el, map to Redhat, just plain smp maps to SUSE.
Is that true or I'm just engaging in wishfully thinking?