Main Menu

Search

Showing posts with label Oracle Linux. Show all posts
Showing posts with label Oracle Linux. Show all posts

ORACLE LINUX 8: How to Uninstall UEK Kernel and Make Redhat Compatible Kernel (RHCK) Default Boot Kernel?

Following are steps to Uninstall UEK Kernel and Make Redhat Compatible Kernel (RHCK) Default Boot Kernel in Oracle Linux 8 (OL8)

1) List the currently installed kernels using "rpm -qa" command as shown below.

As we can see we have both Oracle UEK7 kernel 5.15.x and RHCK kernel 4.18.x installed.

# rpm -qa | egrep -i kernel

kernel-tools-libs-4.18.0-553.34.1.el8_10.x86_64

kernel-core-4.18.0-553.34.1.el8_10.x86_64

kernel-uek-core-5.15.0-304.171.4.el8uek.x86_64

kernel-headers-4.18.0-553.34.1.el8_10.x86_64

kernel-tools-4.18.0-553.34.1.el8_10.x86_64

kernel-uek-5.15.0-304.171.4.el8uek.x86_64

kernel-uek-modules-5.15.0-304.171.4.el8uek.x86_64

kernel-modules-4.18.0-553.34.1.el8_10.x86_64

kernel-devel-4.18.0-553.34.1.el8_10.x86_64

kernel-uek-devel-5.15.0-304.171.4.el8uek.x86_64

kernel-4.18.0-553.34.1.el8_10.x86_64

2) List the grub order of the Kernels using grubby command as shown below. In below command it will show the ordering of the kernel, starting line with 0 and then increment. As you can see in below output boot order 0 is for UEK kernel 5.15.x and boot order 1 is for RHCK kernel 4.18.x

#sudo grubby --info=ALL | grep title | nl -v 0


0  title="Oracle Linux Server (5.15.0-304.171.4.el8uek.x86_64 with Unbreakable Enterprise Kernel) 8.10"

1  title="Oracle Linux Server (4.18.0-553.34.1.el8_10.x86_64) 8.10"

title="Oracle Linux Server 8 (0-rescue-b5bf925c42f4075a28da8441ac55fcdf) "

3) List default bootup kernel using grubby command as follows. As you can see default bootup kernel is UEK7 kernel 5.15.

#sudo grubby --default-kernel

/boot/vmlinuz-5.15.0-304.171.4.el8uek.x86_64

4) Change the default kernel to RHCK kernel using grubby command and order number corresponding to RHCK kernel from above step (2). In this case RHCK kernel boot order is 1.

# sudo grub2-set-default 1

5)  Verify that the default kernel changed to RHCK kernel.

# sudo grubby --default-kernel

/boot/vmlinuz-4.18.0-553.34.1.el8_10.x86_64

6) Now reboot the Node using reboot command.

#sudo reboot -n


7) After the reboot log back into the node and check the default kernel as follows. You should see default kernel as RHCK kernel.

#sudo grubby --default-kernel

/boot/vmlinuz-4.18.0-553.34.1.el8_10.x86_64

8) Check whether the currently active kernel is RHCK kernel using uname command as follows:

#uname -r

4.18.0-553.34.1.el8_10.x86_64

9) Now remove kernel-uek* packages to uninstall UEK kernel as follows:

#sudo dnf -y remove kernel-uek*

10) Backup /etc/sysconfig/kernel file. And update the file to change below DEFAULTKERNEL line

From

DEFAULTKERNEL=kernel-core

To

DEFAULTKERNEL=kernel

11) Reboot the VM again and log back in.


- - - 

Keywords added for Search:

uninstallation

ORACLE LINUX: Command To Check OSWatcher (OSW) Version?

Below command can be used to check OSWatcher version on Oracle Linux Node.

cat /usr/sbin/OSWatcher | grep -i version=

Below is sample output.

version="v7.3.3"

Products to which Article Applies

Oracle Linux 

Search Keywords: command commands to check checking version find finding osw oswatcher watcher os oswbb how to oraclelinux ol ol8 ol7 ol6 ol5

Article Author: Tarun Boyella

 

ORACLE LINUX DOC: How to Create Local Yum Repository For Oracle Linux 8 (OL8)?

Refer to below document which has steps. 

 

Products to which Article Applies

Oracle Linux 8 

Search Keywords: Oracle Linux OL OL8 repo yum repository repositories yumrepo local configure configuring document documentation create creating channel channels update updates install installs installation docs

Article Author: Tarun Boyella

 

LINUX: How To Create New Sudo User And Give Sudo Root Access To Newly Created User?

Following are steps for creating new sudo user and give sudo root access to newly created user.
1. If you want to add new sudo root user and group with same name for e.g. ss1 user and ss1 group, run below command.
useradd -d /home/ss1 -s /bin/bash -m ss1
In case you want to use different group for newly added user (with group name different than user name), Run groupadd command to create new group followed by useradd command to add new user to the newly created group.
2. Change password of newly created sudo root user as follows. In this example the user is ss1.
passwd ss1
3. Add newly created user to /etc/sudoers files. For this make below changes to /etc/sudoers file and save it.
(a) visudo
(b)  Search for below line
username ALL=(ALL) NOPASSWD: ALL
Just below above line add below line. Replace ss1 username as needed. With this we are giving sudo root access to ss1 user (without being prompted for password when running sudo command)
ss1 ALL=(ALL) NOPASSWD: ALL
4. Now login to Linux node using newly created sudo user, in this example ss1.
5. sudo to root as follows
sudo su -
You should be logged into root user without being prompted for password.

Products to which Article Applies
Oracle Linux. Steps in this Article also works on other flavors of Linux other.


Article Author: Tarun Boyella

LINUX: How To Install Ansible On Linux Machines?

Below command can be executed to install Python on Linux machines.
yum install ansible

Below is example snippet you would be seeing when installing ansible on Oracle Linux 7 Host.
--> Running transaction check
---> Package ansible.noarch 0:2.7.9-1.el7 will be installed
--> Processing Dependency: sshpass for package: ansible-2.7.9-1.el7.noarch
--> Processing Dependency: python-setuptools for package: ansible-2.7.9-1.el7.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.7.9-1.el7.noarch
--> Processing Dependency: python-jinja2 for package: ansible-2.7.9-1.el7.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.7.9-1.el7.noarch
--> Processing Dependency: python-six for package: ansible-2.7.9-1.el7.noarch
--> Processing Dependency: python-crypto for package: ansible-2.7.9-1.el7.noarch
--> Processing Dependency: python2-jmespath for package: ansible-2.7.9-1.el7.noarch
--> Processing Dependency: python-keyczar for package: ansible-2.7.9-1.el7.noarch
--> Running transaction check
---> Package python-httplib2.noarch 0:0.9.2-0.1.el7 will be installed
---> Package python-jinja2.noarch 0:2.8-5.el7 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.8-5.el7.noarch
--> Processing Dependency: python-markupsafe for package: python-jinja2-2.8-5.el7.noarch
---> Package python-keyczar.noarch 0:0.71c-2.el7 will be installed
--> Processing Dependency: python-pyasn1 for package: python-keyczar-0.71c-2.el7.noarch
---> Package python-paramiko.noarch 0:2.1.1-9.el7 will be installed
--> Processing Dependency: python-cryptography for package: python-paramiko-2.1.1-9.el7.noarch
---> Package python-setuptools.noarch 0:18.0.1-2.el7 will be installed
---> Package python2-crypto.x86_64 0:2.6.1-13.el7 will be installed
--> Processing Dependency: libtomcrypt.so.0()(64bit) for package: python2-crypto-2.6.1-13.el7.x86_64
---> Package python2-jmespath.noarch 0:0.9.3-1.el7 will be installed
---> Package python2-six.noarch 0:1.10.0-9.el7 will be installed
---> Package sshpass.x86_64 0:1.06-1.el7 will be installed
--> Running transaction check
---> Package libtomcrypt.x86_64 0:1.17-25.el7 will be installed
--> Processing Dependency: libtommath >= 0.42.0 for package: libtomcrypt-1.17-25.el7.x86_64
--> Processing Dependency: libtommath.so.0()(64bit) for package: libtomcrypt-1.17-25.el7.x86_64
---> Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed
---> Package python2-babel.noarch 0:2.3.4-1.el7 will be installed
--> Processing Dependency: pytz for package: python2-babel-2.3.4-1.el7.noarch
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed
--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64
--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64
--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64
--> Processing Dependency: python-ipaddress for package: python2-cryptography-1.7.2-2.el7.x86_64
---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed
--> Running transaction check
---> Package libtommath.x86_64 0:0.42.0-5.el7 will be installed
---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
---> Package python2-cffi.x86_64 0:1.9.1-1.el7 will be installed
--> Processing Dependency: python-pycparser for package: python2-cffi-1.9.1-1.el7.x86_64
---> Package python2-idna.noarch 0:2.5-1.el7 will be installed
---> Package pytz.noarch 0:2016.10-2.el7 will be installed
--> Running transaction check
---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed
--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch
--> Running transaction check
---> Package python-ply.noarch 0:3.4-11.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


=======================================================================================================================================================

 Package                                  Arch                       Version                              Repository                              Size
=======================================================================================================================================================
Installing:
 ansible                                  noarch                     2.7.9-1.el7                          ol7_developer                           11 M
Installing for dependencies:
 libtomcrypt                              x86_64                     1.17-25.el7                          ol7_developer_EPEL                     224 k
 libtommath                               x86_64                     0.42.0-5.el7                         ol7_developer_EPEL                      35 k
 python-enum34                            noarch                     1.0.4-1.el7                          ol7_latest                              52 k
 python-httplib2                          noarch                     0.9.2-0.1.el7                        ol7_developer_EPEL                     115 k
 python-ipaddress                         noarch                     1.0.16-2.el7                         ol7_latest                              34 k
 python-jinja2                            noarch                     2.8-5.el7                            ol7_openstack30                        450 k
 python-keyczar                           noarch                     0.71c-2.el7                          ol7_developer_EPEL                     217 k
 python-markupsafe                        x86_64                     0.11-10.el7                          ol7_latest                              25 k
 python-paramiko                          noarch                     2.1.1-9.el7                          ol7_latest                             268 k
 python-ply                               noarch                     3.4-11.el7                           ol7_latest                             122 k
 python-pycparser                         noarch                     2.14-1.el7                           ol7_latest                             104 k
 python-setuptools                        noarch                     18.0.1-2.el7                         ol7_developer                          417 k
 python2-babel                            noarch                     2.3.4-1.el7                          ol7_openstack50                        4.8 M
 python2-cffi                             x86_64                     1.9.1-1.el7                          ol7_developer                          220 k
 python2-crypto                           x86_64                     2.6.1-13.el7                         ol7_developer_EPEL                     476 k
 python2-cryptography                     x86_64                     1.7.2-2.el7                          ol7_latest                             498 k
 python2-idna                             noarch                     2.5-1.el7                            ol7_developer                           95 k
 python2-jmespath                         noarch                     0.9.3-1.el7                          ol7_developer                           40 k
 python2-pyasn1                           noarch                     0.1.9-7.el7                          ol7_latest                              99 k
 python2-six                              noarch                     1.10.0-9.el7                         ol7_openstack50                         31 k
 pytz                                     noarch                     2016.10-2.el7                        ol7_latest                              46 k
 sshpass                                  x86_64                     1.06-1.el7                           ol7_developer_EPEL                      21 k

Transaction Summary

=======================================================================================================================================================
Install  1 Package (+22 Dependent packages)

Total download size: 20 M

Installed size: 96 M
Is this ok [y/d/N]: y
Downloading packages:
(1/23): python-enum34-1.0.4-1.el7.noarch.rpm                                                                                    |  52 kB  00:00:00
(2/23): libtommath-0.42.0-5.el7.x86_64.rpm                                                                                      |  35 kB  00:00:01
(3/23): python-ipaddress-1.0.16-2.el7.noarch.rpm                                                                                |  34 kB  00:00:00
(4/23): libtomcrypt-1.17-25.el7.x86_64.rpm                                                                                      | 224 kB  00:00:02
(5/23): python-jinja2-2.8-5.el7.noarch.rpm                                                                                      | 450 kB  00:00:00
(6/23): python-markupsafe-0.11-10.el7.x86_64.rpm                                                                                |  25 kB  00:00:00
(7/23): python-paramiko-2.1.1-9.el7.noarch.rpm                                                                                  | 268 kB  00:00:00
(8/23): python-ply-3.4-11.el7.noarch.rpm                                                                                        | 122 kB  00:00:00
(9/23): python-pycparser-2.14-1.el7.noarch.rpm                                                                                  | 104 kB  00:00:00
(10/23): python-httplib2-0.9.2-0.1.el7.noarch.rpm                                                                               | 115 kB  00:00:01
(11/23): python-setuptools-18.0.1-2.el7.noarch.rpm                                                                              | 417 kB  00:00:00
(12/23): python2-cffi-1.9.1-1.el7.x86_64.rpm                                                                                    | 220 kB  00:00:00
(13/23): python-keyczar-0.71c-2.el7.noarch.rpm                                                                                  | 217 kB  00:00:01
(14/23): python2-idna-2.5-1.el7.noarch.rpm                                                                                      |  95 kB  00:00:00
(15/23): python2-cryptography-1.7.2-2.el7.x86_64.rpm                                                                            | 498 kB  00:00:00
(16/23): python2-pyasn1-0.1.9-7.el7.noarch.rpm                                                                                  |  99 kB  00:00:00
(17/23): python2-six-1.10.0-9.el7.noarch.rpm                                                                                    |  31 kB  00:00:00
(18/23): pytz-2016.10-2.el7.noarch.rpm                                                                                          |  46 kB  00:00:00
(19/23): python2-crypto-2.6.1-13.el7.x86_64.rpm                                                                                 | 476 kB  00:00:01
(20/23): python2-jmespath-0.9.3-1.el7.noarch.rpm                                                                                |  40 kB  00:00:01
(21/23): sshpass-1.06-1.el7.x86_64.rpm                                                                                          |  21 kB  00:00:01
(22/23): python2-babel-2.3.4-1.el7.noarch.rpm                                                                                   | 4.8 MB  00:00:06
(23/23): ansible-2.7.9-1.el7.noarch.rpm                                                                                         |  11 MB  00:00:12
-------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                  1.5 MB/s |  20 MB  00:00:12
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-setuptools-18.0.1-2.el7.noarch                                                                                              1/23
  Installing : python2-pyasn1-0.1.9-7.el7.noarch                                                                                                  2/23
  Installing : python2-six-1.10.0-9.el7.noarch                                                                                                    3/23
  Installing : python-ipaddress-1.0.16-2.el7.noarch                                                                                               4/23
  Installing : libtommath-0.42.0-5.el7.x86_64                                                                                                     5/23
  Installing : libtomcrypt-1.17-25.el7.x86_64                                                                                                     6/23
  Installing : python2-crypto-2.6.1-13.el7.x86_64                                                                                                 7/23
  Installing : python-keyczar-0.71c-2.el7.noarch                                                                                                  8/23
  Installing : python-ply-3.4-11.el7.noarch                                                                                                       9/23
  Installing : python-pycparser-2.14-1.el7.noarch                                                                                                10/23
  Installing : python2-cffi-1.9.1-1.el7.x86_64                                                                                                   11/23
  Installing : python-markupsafe-0.11-10.el7.x86_64                                                                                              12/23
  Installing : sshpass-1.06-1.el7.x86_64                                                                                                         13/23
  Installing : pytz-2016.10-2.el7.noarch                                                                                                         14/23
  Installing : python2-babel-2.3.4-1.el7.noarch                                                                                                  15/23
  Installing : python-jinja2-2.8-5.el7.noarch                                                                                                    16/23
  Installing : python-httplib2-0.9.2-0.1.el7.noarch                                                                                              17/23
  Installing : python2-jmespath-0.9.3-1.el7.noarch                                                                                               18/23
  Installing : python2-idna-2.5-1.el7.noarch                                                                                                     19/23
  Installing : python-enum34-1.0.4-1.el7.noarch                                                                                                  20/23
  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                                           21/23
  Installing : python-paramiko-2.1.1-9.el7.noarch                                                                                                22/23
  Installing : ansible-2.7.9-1.el7.noarch                                                                                                        23/23
  Verifying  : python-jinja2-2.8-5.el7.noarch                                                                                                     1/23
  Verifying  : python-keyczar-0.71c-2.el7.noarch                                                                                                  2/23
  Verifying  : ansible-2.7.9-1.el7.noarch                                                                                                         3/23
  Verifying  : python-enum34-1.0.4-1.el7.noarch                                                                                                   4/23
  Verifying  : python2-crypto-2.6.1-13.el7.x86_64                                                                                                 5/23
  Verifying  : python2-idna-2.5-1.el7.noarch                                                                                                      6/23
  Verifying  : python2-jmespath-0.9.3-1.el7.noarch                                                                                                7/23
  Verifying  : python-httplib2-0.9.2-0.1.el7.noarch                                                                                               8/23
  Verifying  : pytz-2016.10-2.el7.noarch                                                                                                          9/23
  Verifying  : python2-six-1.10.0-9.el7.noarch                                                                                                   10/23
  Verifying  : sshpass-1.06-1.el7.x86_64                                                                                                         11/23
  Verifying  : python2-cffi-1.9.1-1.el7.x86_64                                                                                                   12/23
  Verifying  : python-markupsafe-0.11-10.el7.x86_64                                                                                              13/23
  Verifying  : python-ply-3.4-11.el7.noarch                                                                                                      14/23
  Verifying  : python-paramiko-2.1.1-9.el7.noarch                                                                                                15/23
  Verifying  : libtomcrypt-1.17-25.el7.x86_64                                                                                                    16/23
  Verifying  : python2-babel-2.3.4-1.el7.noarch                                                                                                  17/23
  Verifying  : libtommath-0.42.0-5.el7.x86_64                                                                                                    18/23
  Verifying  : python-pycparser-2.14-1.el7.noarch                                                                                                19/23
  Verifying  : python-setuptools-18.0.1-2.el7.noarch                                                                                             20/23
  Verifying  : python-ipaddress-1.0.16-2.el7.noarch                                                                                              21/23
  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                                                                                                 22/23
  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                                           23/23

Installed:

  ansible.noarch 0:2.7.9-1.el7

Dependency Installed:

  libtomcrypt.x86_64 0:1.17-25.el7                   libtommath.x86_64 0:0.42.0-5.el7                python-enum34.noarch 0:1.0.4-1.el7
  python-httplib2.noarch 0:0.9.2-0.1.el7             python-ipaddress.noarch 0:1.0.16-2.el7          python-jinja2.noarch 0:2.8-5.el7
  python-keyczar.noarch 0:0.71c-2.el7                python-markupsafe.x86_64 0:0.11-10.el7          python-paramiko.noarch 0:2.1.1-9.el7
  python-ply.noarch 0:3.4-11.el7                     python-pycparser.noarch 0:2.14-1.el7            python-setuptools.noarch 0:18.0.1-2.el7
  python2-babel.noarch 0:2.3.4-1.el7                 python2-cffi.x86_64 0:1.9.1-1.el7               python2-crypto.x86_64 0:2.6.1-13.el7
  python2-cryptography.x86_64 0:1.7.2-2.el7          python2-idna.noarch 0:2.5-1.el7                 python2-jmespath.noarch 0:0.9.3-1.el7
  python2-pyasn1.noarch 0:0.1.9-7.el7                python2-six.noarch 0:1.10.0-9.el7               pytz.noarch 0:2016.10-2.el7
  sshpass.x86_64 0:1.06-1.el7

Complete!

Once ansible is installed, you can verify the ansible version installed using below command.
ansible --version

Products to which Article Applies

Steps in this Article for installing ansible were tested on Oracle Linux 7. But the same steps should on other Linux Operating Systems as well using yum setup.
Additional Reference

ORACLE LINUX: How To Install Python on Oracle Linux Machine? (yum command)

Below command can be executed to install Python on Oracle Linux machines.
yum install python

Below is snippet seen on console as an example when yum command is executed for installing python.
==========================================================================================================================================================
 Package                              Arch                            Version                                   Repository                           Size
==========================================================================================================================================================
Updating:
 python                               x86_64                          2.7.5-86.0.1.el7                          ol7_latest                           95 k
Updating for dependencies:
 python-libs                          x86_64                          2.7.5-86.0.1.el7                          ol7_latest                          5.6 M

Transaction Summary
==========================================================================================================================================================
Upgrade  1 Package (+1 Dependent package)

Total download size: 5.7 M
Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): python-2.7.5-86.0.1.el7.x86_64.rpm                                                                                          |  95 kB  00:00:00
(2/2): python-libs-2.7.5-86.0.1.el7.x86_64.rpm                                                                                     | 5.6 MB  00:00:06
----------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                     922 kB/s | 5.7 MB  00:00:06
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : python-libs-2.7.5-86.0.1.el7.x86_64                                                                                                    1/4
  Updating   : python-2.7.5-86.0.1.el7.x86_64                                                                                                         2/4
  Cleanup    : python-2.7.5-58.0.1.el7.x86_64                                                                                                         3/4
  Cleanup    : python-libs-2.7.5-58.0.1.el7.x86_64                                                                                                    4/4
  Verifying  : python-2.7.5-86.0.1.el7.x86_64                                                                                                         1/4
  Verifying  : python-libs-2.7.5-86.0.1.el7.x86_64                                                                                                    2/4
  Verifying  : python-libs-2.7.5-58.0.1.el7.x86_64                                                                                                    3/4
  Verifying  : python-2.7.5-58.0.1.el7.x86_64                                                                                                         4/4

Updated:
  python.x86_64 0:2.7.5-86.0.1.el7

Dependency Updated:
  python-libs.x86_64 0:2.7.5-86.0.1.el7

Complete!

Once python installation is completed, run below command to check the version of Python installed.

python -V


Products to which Article Applies

Steps in this Article for installing Python were tested on Oracle Linux. But the same steps should on other Linux Operating Systems as well using yum setup.

Additional Reference
https://yum.oracle.com/oracle-linux-python.html#InstallPython

ORACLE LINUX: How To Check Exact Oracle Linux (OL) Version on Oracle Linux Machine?

Below command can be executed to check the exact Oracle Linux Version.
cat /etc/oracle-release

Below is example snippet of above command.
# cat /etc/oracle-release
Oracle Linux Server release 7.6

Products to which Article Applies


Oracle Linux Operating System

 

Additional Reference


https://www.oracle.com/technetwork/server-storage/linux/el7-cert-ds-11272018-2267371.pdf



ORACLE LINUX: How To Check BIOS Settings on Linux Server without Rebooting and Going to BIOS Screen? ("ubiosconfig" Command)

Below ubiosconfig command can be used to check the BIOS Settings.

ubiosconfig export all>>/tmp/`hostname -s`_bios-settings.xml

Above command will export all the BIOS settings into /tmp/<hostname>_bios-settings.xml file.


Products to which Article Applies

Oracle Linux Operating System.

Additional References

ORACLE LINUX: How To Check And Export BIOS Settings In Linux From Operation System Command Line? ("ubiosconfig" Command)

Below ubiosconfig command can be used to print all the BIOS related settings from Operation System Command line.

ubiosconfig export all

Please note that oracle-hmp-tools-ubiosconfig Oracle Hardware Management Pack package should be installed for running above ubiosconfig command.


In case if you want to export all the BIOS settings into a file, below command can be used.
ubiosconfig export all > /tmp/bios-config.xml

Above command will save the output inside /tmp/bios-config.xml file.

Below is example snippet of BIOS configurations shown from above ubiosconfig command.
      <Processor_Configuration>
        <!-- Hyper-Threading ALL -->
        <!-- Description: Enables Hyper Threading (Software Method to Enable/Disable Logical Processor threads. -->
        <!-- Possible Values: "Disabled", "Enabled" -->
        <Hyper-Threading_ALL>Enabled</Hyper-Threading_ALL>

        <!-- Active Processor Cores -->
        <!-- Description: Number of cores to enable in each processor package. Must not exceed number of cores available. See Main > CPU Information >
Processor Cores. -->
        <!-- Possible Values: "All", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21
" -->
        <Active_Processor_Cores>All</Active_Processor_Cores>

        <!-- Execute Disable Bit -->
        <!-- Description: When disabled, forces the XD feature flag to always return 0. -->
        <!-- Possible Values: "Disabled", "Enabled" -->
        <Execute_Disable_Bit>Enabled</Execute_Disable_Bit>

        <!-- Hardware Prefetcher -->
        <!-- Description: = MLC Streamer Prefetcher (MSR 1A4h Bit[0]) -->
        <!-- Possible Values: "Enabled", "Disabled" -->
        <Hardware_Prefetcher>Enabled</Hardware_Prefetcher>

        <!-- Adjacent Cache Prefetch -->
        <!-- Description: = MLC Spatial Prefetcher (MSR 1A4h Bit[1]) -->
        <!-- Possible Values: "Enabled", "Disabled" -->
        <Adjacent_Cache_Prefetch>Enabled</Adjacent_Cache_Prefetch>

        <!-- DCU Streamer Prefetcher -->
        <!-- Description: DCU streamer prefetcher is an L1 data cache prefetcher (MSR 1A4h [2]). -->
        <!-- Possible Values: "Enabled", "Disabled" -->
        <DCU_Streamer_Prefetcher>Enabled</DCU_Streamer_Prefetcher>

        <!-- DCU IP Prefetcher -->


Products to which Article Applies


Oracle Linux


Additional References

https://docs.oracle.com/cd/E72066_01/html/E72072/glscq.html