152 Red Hat OpenShift and IBM Cloud Paks on IBM Power Systems: Volume 1
Use the oc exec POD_NAME COMMAND command to execute commands against a Pod:
Use the oc rsh POD_NAME command to start a remote shell connection to the Pod. This is 
useful for logging in and investigating issues in a running Pod:
Use the oc status command to get a high-level status of the current project:
The oc command-line client is the primary tool used by administrators to detect and 
troubleshoot issues in an OpenShift cluster. It has a number of options that enable you to 
detect, diagnose, and fix issues on the master and worker nodes, services, and resources 
that are managed by the cluster.
Events allow OpenShift to record information about lifecycle events in a cluster. They help 
developers and administrators to view information about OpenShift components in an unified 
way. The oc get events command provides information about events in an OpenShift 
namespace. The following events are captured and reported:
/SM590000Master and worker nodes status
/SM590000Pod creation and deletion
/SM590000Pod placement scheduling
Events are useful during troubleshooting. You can get high-level information about failures 
and issues in the cluster, and then proceed to investigate by using log files and other oc 
subcommands.
oc exec docker-registry-3-4flql hostname
docker-registry-3-4flq
oc rsh docker-registry-3-4flql
sh-4.2$ hostname
docker-registry-3-4flql
sh-4.2$ ls /
bin  boot  config.yml  dev  etc  home  lib  lib64  media  mnt  opt  proc  registry  root  
run  sbin  srv  sys  tmp  usr  var
sh-4.2$ exit
exit
oc status
In project default on server https://ocp.domain.example.com:8443
svc/docker-registry - 172.30.26.207:5000
  dc/docker-registry deploys registry.redhat.io/openshift3/ose-docker-registry:v3.11.153 
    deployment #3 deployed 2 days ago - 1 pod
    deployment #2 deployed 2 days ago
    deployment #1 deployed 2 days ago
svc/kubernetes - 172.30.0.1 ports 443->8443, 53->8053, 53->8053
svc/router - 172.30.1.163 ports 80, 443, 1936
  dc/router deploys registry.redhat.io/openshift3/ose-haproxy-router:v3.11.153 
    deployment #2 deployed 2 days ago - 3 pods
    deployment #1 deployed 2 days ago
1 warning identified, use 'oc status --suggest' to see details.