Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

determine version of OEL

EdStevensJun 27 2010 — edited Jun 28 2010
I would like to be able to have a shell script detect what version of OEL it is running on. I notice that when I startup a server (actually, running under VMworkstation on my laptop) the console gives this
Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
Kernel 2.6.18-164.el5 on an i686

vlnx54 login:
But when I connect from putty, I only get last login time, and "uname" gives this:
[root@vmlnx54 hgfs]# uname -a
Linux vmlnx54.vmdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 02:16:47 EDT 2009 i686 i686 i386 GNU/Linux
So where is the text coming from that shows on the console at the end of boot-up, and what can my script check to get that it is running on, say 5.4 vs. 5.5?
This post has been answered by 506787 on Jun 28 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2010
Added on Jun 27 2010
1 comment
4,165 views