Experts,
I need to write a perl code to find out what an OS kernel/release information is. For example, suppose I am on a Linux box. I can obtain following info:
But how can I tell if it's RHEL 4 U6 (32-bit, 64-bit, IA64) or SLES 10 SP1 (32-bit, IA64) or SLES 9 SP2 (32-bit, IA64), etc?
BTW, I know SUSE is SLES. The above just an example. I searched CPAN site, still don't know what module I can use. if you happen to know a module I can use, please also kindly show me some sample codes on how to use that module.
Many thanks.
I need to write a perl code to find out what an OS kernel/release information is. For example, suppose I am on a Linux box. I can obtain following info:
Code:
% cat /etc/issue
Welcome to SUSE LINUX Enterprise Server 9 (x86_64) - Kernel \r (\l).
% uname -a
Linux lcle222 2.6.5-7.244-smp #1 SMP Mon Dec 12 18:32:25 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux
But how can I tell if it's RHEL 4 U6 (32-bit, 64-bit, IA64) or SLES 10 SP1 (32-bit, IA64) or SLES 9 SP2 (32-bit, IA64), etc?
BTW, I know SUSE is SLES. The above just an example. I searched CPAN site, still don't know what module I can use. if you happen to know a module I can use, please also kindly show me some sample codes on how to use that module.
Many thanks.