Installing the Cloud Infrastructure CLI

Procedure for installing the Cloud Infrastructure CLI.

The cloud infrastructure CLI is delivered as a separate package with the Oracle Enterprise Manager Ops Center product. You can install this standalone package on a system that has a connection to the Enterprise Controller.


Package Name Operating System

ORCLsysman-iaas-cli.pkg

Oracle Solaris

orcl-sysman-iaas-cli.rpm

Linux


To install this package, enter the following commands as root user:

  • For Oracle Solaris:

    # cd <repo>/src/dvd/SunOS_i386/Product/components/packages/
    # pkgadd -d ORCLsysman-iaas-cli.pkg
    
  • For Linux:

    # cd <repo>/src/dvd/Linux_i686/Product/components/packages/
    # rpm -i orcl-sysman-iaas-cli.rpm
    

The files from the package are stored at /opt/oracle/iaas/cli. To execute the CLI commands, the user must have permissions to access this directory.

Before using the cloud infrastructure CLI:

  1. Set the JAVA_HOME environment variable and ensure that the environment variable is part of your PATH:
    • Korn and bash shells:

      export JAVA_HOME=<jdk-install-dir>
      export PATH=$JAVA_HOME/bin:$PATH
      
    • Bourne shell:

      JAVA_HOME=<jdk-install-dir>
      export JAVA_HOME
      PATH=$JAVA_HOME/bin:$PATH
      export PATH
      
    • C shell:

      setenv JAVA_HOME <jdk-install-dir>
      setenv PATH $JAVA_HOME/bin:$PATH
      export PATH=$JAVA_HOME/bin:$PATH
      
  2. Set the IAAS_HOME environment variable:
    • Korn and bash shells:

      export IAAS_HOME=/opt/oracle/iaas/cli
      
    • Bourne shell:

      IAAS_HOME=/opt/oracle/iaas/cli
      export IAAS_HOME
      
    • C shell:

      setenv IAAS_HOME /opt/oracle/iaas/cli