Chapter 6. Installing Red Hat OpenShift 3.11 on IBM PowerVC 147
On Red Hat Enterprise Linux (RHEL), the oc tool is available as an RPM file and installable by 
using the yum install command:
After the oc CLI tool is installed, use the oc help command to display help information.
You can use the oc login command to log in interactively, which prompts you for a server 
name, a user name, and a password. You also can include the required information about the 
command line:
After successful authentication from a client, OpenShift saves an authorization token in the 
user’s home folder. 
To check your current credentials, run the oc whoami command:
To log out of the OpenShift cluster, use the oc logout command:
As an administrator, the oc get RESOURCE_TYPE [RESOURCE_NAME] command is used most 
frequently. This command helps to get information about resources in the cluster. Generally, 
this command displays only the most important characteristics of the resources and omits 
more detailed information. 
yum install -y atomic-openshift-clients
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package atomic-openshift-clients.ppc64le 0:3.11.153-1.git.0.aaf3f71.el7 will be 
installed
--> Finished Dependency Resolution
...
Output truncated
...
Complete!
oc login https://ocp.domain.example.com:8443 -u admin
The server uses a certificate signed by an unknown authority.
You can bypass the certificate check, but any data you send to the server could be 
intercepted by others.
Use insecure connections? (y/n): y
Authentication required for https://ocp.domain.example.com:8443 (openshift)
Username: admin
Password: 
Login successful.
Important: It is possible to log in as the OpenShift cluster administrator from any master 
node without a password by connecting by way of ssh to the master node.
oc whoami
admin
oc logout
Logged "admin" out on "https://ocp.domain.example.com:8443"