Examine this sequence of commands and output:
[root@FARAWAY ~] # cat /etc/oracle-release
Oracle Linux Server release 6.1
[root@FARAWAY ~]# rpm –qa oraclelinux*
Oraclelinux-release-noted-6Server-5.x86_64
Oraclelinux-release-6Server-1.0.2.x86_64
[root@FARAWAY ~] # rpm –qa rehat-release*
[root@FARAWAY ~] #
[root@FARAWAY ~] # rpm –qf /etc/oracle-release
Oraclelinux-release-6Server-1.0.2.x86_64
[root@FARAWAY ~] rpm –qf /etc/redhat-release
Oraclelinux-release-6Server-1.0.2.x86_64
Which two can be determined from this output?
A.
The system has Oracle Linux 6 installed and the Red Hat compatible kernel is running.
B.
The system has Oracle Linux 6 installed and the Oracle Unbreakable Enterprise kernel Is
running.
C.
It is not possible to determine which kernel is running.
D.
This system has been booted at least once, with the Red Hat-compatible kernel and once with
the Unbreakable Enterprise kernel.
E.
The oracle-release package contains both Oracle and Red Hat release metadata.
Explanation:
C, E
I think A and E.
B not, it should have el6uek.x86_64
C. not true, it is possible to determine with rpm -qa, for red hat is different ouput
not D, you can not tell that from this output.
https://blogs.oracle.com/VDIpier/entry/how_to_check_if_the
C,E
A is out (rpm -qa redhat-release* | shows nothing, means system booted with UEK.)
B is correct (Oracle UEK is currently running).
I would go with B,E
Answer : C and E
Refer : http://www.oracle.com/technetwork/server-storage/linux/partners/linux6-1certification-412527.pdf
Answer C & E (plz chk below logs no change in logs after booting with diff K)
******** Log after Booting with Red Hat Kernel
[root@oraclelinux6 ~]# cat /etc/oracle-release
Oracle Linux Server release 6.5
[root@oraclelinux6 ~]# rpm -qa oraclelinux*
oraclelinux-release-notes-6Server-11.x86_64
oraclelinux-release-6Server-5.0.2.x86_64
[root@oraclelinux6 ~]# rpm -qa rehat-release*
[root@oraclelinux6 ~]# rpm -qf /etc/oracle-release
oraclelinux-release-6Server-5.0.2.x86_64
[root@oraclelinux6 ~]# rpm -qf /etc/redhat-release
oraclelinux-release-6Server-5.0.2.x86_64
******** Log after Booting with Oracle Linux
[root@oraclelinux6 ~]# cat /etc/oracle-release
Oracle Linux Server release 6.5
[root@oraclelinux6 ~]# rpm -qa oraclelinux*
oraclelinux-release-notes-6Server-11.x86_64
oraclelinux-release-6Server-5.0.2.x86_64
[root@oraclelinux6 ~]# rpm -qa rehat-release*
[root@oraclelinux6 ~]# rpm -qf /etc/oracle-release
oraclelinux-release-6Server-5.0.2.x86_64
[root@oraclelinux6 ~]# rpm -qf /etc/redhat-release
oraclelinux-release-6Server-5.0.2.x86_64
Not B —> tested with my laptop
booted in uek : rpm -qa oraclelinux* —> showed *uek6
boot oracle linux : rpm -qa oraclelinux* —> showed *el6
Correct answer should be A,E
C, E
[oracle@srvscm02 ~]$ cat /etc/oracle-release
Oracle Linux Server release 6.8
[oracle@srvscm02 ~]$ rpm -qa oraclelinux*
oraclelinux-release-6Server-8.0.3.x86_64
oraclelinux-release-notes-6Server-20.el6.x86_64
[oracle@srvscm02 ~]$ rpm -qa rehat-release*
[oracle@srvscm02 ~]$ rpm -qf /etc/oracle-release
oraclelinux-release-6Server-8.0.3.x86_64
[oracle@srvscm02 ~]$ rpm -qf /etc/redhat-release
oraclelinux-release-6Server-8.0.3.x86_64