Issues with Collecting Diagnostic Information

In the current product version of the stack, there is a known issue with the diagnostic capture script.

The workaround is to execute the following steps.

  1. Connect to VM and then change user to "oracle".
    sudo su - oracle
  2. Make a copy of common_tools/env_props.py file.
    cp /u01/vmtools/common_tools/env_props.py /u01/vmtools/common_tools/env_props.py.backup
  3. In env_props.py, replace ret string in return str(ret) of get911Password() and get911UserName() functions with real Essbase admin user name and password, as shown below.

    For example, Essbase admin user/password is ess6admin/password7.

    vi /u01/vmtools/common_tools/env_props.py
    def get911UserName():
      ret = ''
      config = pyhocon.ConfigFactory.parse_file(essbaseConfigJSON, resolve=False)
      ret = config['system']['adminUsername']
      return str('ess6admin')
    
    def get911Password():
      ret = ''
      config = pyhocon.ConfigFactory.parse_file(essbaseConfigJSON, resolve=False)
      ret = config['system']['adminPassword']
      return str('password7')
    

To create diagnostics and get them from VM:

  1. run /u01/vmtools/collect-diagnostics.sh <path to file without extension>

    For example:

    /u01/vmtools/collect-diagnostics.sh /tmp/diagnostics
    Note: /tmp/diagnostics.zip will be created
  2. Copy private key from laptop to Bastion.
    For example:
    scp -i
            '/cygdrive/c/OracleCloud/sshkey/cloud_private_key'
              '/cygdrive/c/OracleCloud/sshkey/cloud_private_key'
            opc@<Bastion_IP>:/tmp/
  3. Connect to Bastion.
    For example:
    ssh -i '/cygdrive/c/OracleCloud/sshkey/cloud_private_key' opc@<Bastion_IP>
  4. Copy diagnostics from VM to Bastion.
    For example:
    scp -i /tmp/cloud_private_key opc@<VM_IP>:/tmp/diagnostics.zip /tmp/
  5. Copy diagnostics from Bastion (or VM, when there is no Bastion) to laptop.
    For example:
    scp -i '/cygdrive/c/OracleCloud/sshkey/cloud_private_key' opc@<Bastion|VM_IP>:/tmp/diagnostics.zip /cygdrive/c/temp/
  6. Send the diagnostics file /cygdrive/c/temp/diagnostics.zip to Oracle Support.