I am preparing a precheck script for my oracle DB installation.
I am setting an expected version value, actual version can be greater than the expected version or equal to it.
I am using the below logic to test this.
Usually this logic works fine in checking the kernel version.
But recently i came across a server where the kernel version is little different
If you look at the output, its has an extra numbers i.e., 39.1.
Can some one help me how to check for such extra characters, because with the current logic it fails to compare when we have extra digits in any one of the values.
Also it would be great if someone can give me a kernel version naming standard for Red Hat Linux.
This is the shell pattern substitution (man bash or man ksh should provide details for you). This is much more efficient that using sed or awk as it's internal to the shell and doesn't require loading an external executable before processing.
The substitution I supplied in my solution is a little misleading and could do with some improvement; although it does work for the supplied data.
1. The backslash in \. is unnecessary, the dot character does not need to be escaped - it will only match with it's self, question mark ? is used to represent any single character
2. // is used to replace all occurrences within the string not just the first.
3. .* matches the literal dot followed by zero or more characters. In the example dot does follow el6, but those used to other regular expressions may interpret this as zero or more occurrences of any single character, not dot followed by zero or more characters.
I think a better pattern substitution would be echo ${expected/.el6*/}
String comparisons
Greater than and less than need to be escaped within [ ] context otherwise they are treated as redirection this is not the case with [[ and ]]. It's a matter of choice on using backslash or single quotes. the following are equivalent:
I think i figured out the code to compare kernel & rpm version's on Redhat Linux.
Below is the code that i have written and tested for various RPM's & kernel version.
Dear All,
Please help to find out the patch and firmware versions in HP-UX systems. as uname -r is showing os version and
uname -a
HP-UX xxxxxx B.11.23 U 9000/800 2781427196 unlimited-user license.
Kindly help to find out the existing Kernel and firmware versions.
Also I need to... (3 Replies)
Hi friends,
I have a created a RHEL 6.4 for installing KVM in Virtual box. My machine is a 64 bit, but virtual box was not allowing to install x86_64 version RHEL. So I had to install 32 bit i686 version of RHEL. The kernel came with the CD was 2.6.32-358.el6.i686. But KVM doesnt support... (2 Replies)
Hi All,
can you pls throw some light for below logic
-> Check the perl version
-> if the version is greater than or equal to 5.8
-> proceed to next step
-> else fail
Regards
Kamal (2 Replies)
Hi All
I have the below information ...
and I want to know how to get the lats Kernel version ?
and is this Kernel version SunOS 5.10 Generic_147440-13 last version or what ?
-
Hostname: server1
Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware... (1 Reply)
Dear all,
Now I need to downgrade my current kernel to 2.6.12
I found some pages with Google, and they said that I can do it with yum, but there is not details information.
How can I use yum to downgrade kernel version :wall:
Please help me
Thank you very much (4 Replies)
ps -A | grep firefox | kill `awk '{print $1}'`
Warning: /boot/System.map-2.6.35.11-83.fc14.x86_64 has an incorrect kernel version.
The command have succeeded but with the warning.
The command before the previous one had not been successful. But there was also this warning. (1 Reply)
Is there any metrics table available somewhere listing out, which kernel version is there in particular debian release ?
Also, can somebody tell which debian release is having the kernel version 2.6.26 ? (1 Reply)
Hi all,
anyone know what should be the kernel version for red hat linux enterprise 3 update 3 .
I have installed kernel version is 2.4.21-4 and some says that it may not be the red hat linux enterprise 3 update 3 .
:o
thanks
Bert (4 Replies)