OCI Utilities for Oracle Linux

Did you know that Oracle Linux platform images provide a set of utilities that allow instances to access information about infrastructure resources? These utilities include a service component and command-line tools that can help you automatically discover or provision resources. If you’re using Oracle Linux 7 or above, these utilities are pre-installed. However, if you’re using another Linux distribution, you’ll need to install the utility manually.

To install oci-utils, you can follow the instructions in the video titled: Enabling OCI Utilities in Oracle Linux on Oracle Cloud Infrastructure Instances

Once you’ve installed it, you’ll have access to several useful commands, including:

  • oci-growfs: This command expands the root filesystem of the instance to its configured size. Please note that it must be run as root.
  • oci-iscsi-config: This command lists and configures iSCSI devices attached to a compute instance.
  • oci-metadata: This command displays or sets metadata for a compute instance.
  • oci-network-config: This command configures network interfaces for a compute instance.
  • oci-network-inspector: This command displays a detailed network report for a given compartment or network.
  • oci-notify: This command sends a message to a Notifications service topic.
  • oci-public-ip: This command displays the public IP address of the current system in either human-readable or JSON format.

In addition to these commands, there are two more OCI utilities available:

  • oci-image-migrate utilities: These utilities are used to migrate on-premise physical or virtual machine images to Oracle Cloud Infrastructure.
  • oci-kvm utilities: These utilities are used to create and configure KVM guests on Oracle Cloud Infrastructure instances.

Stay tuned to see individual blog posts dedicated to each of these utilities.