Viewing Logs from the CLI

Troubleshooting for VMware Solutions

Audience
Public
Source Type
Documentation

If reviewing the log files from the UI is not something you prefer they can also be reviewed from the CLI of the VMware Cloud Foundation (VCF) Operations server. The steps to complete this are listed below.

  1. Log into the Master node (or data node) as root via SSH or Console.
  2. Navigate to the following directory to review the collector log files (along with other VCF Operations services):
    
    root@vrops [ ~ ]# cd /storage/vcops/log/
    root@vrops [ /storage/vcops/log ]# ls collector.log
    collector.log
    

    NOTE: You can identify all logging associated with Everpure FlashArray Adapters by searching for com.purestorage.vrops.adapter in the collector logs.

  3. If you need to review the "PureStorageAdapter" logs then you will navigate to the following location:
    
    root@vrops [ ~ ]# cd /storage/vcops/log/adapters/PureStorageAdapter/
    root@vrops [ /storage/vcops/log/adapters/PureStorageAdapter ]# ls
    PureStorageAdapter_207565.log    PureStorageAdapter_209706.log    PureStorageAdapter_209708.log    PureStorageAdapter_234574.log    PureStorageAdapter_234925.log
    PureStorageAdapter_207565.log.1  PureStorageAdapter_209706.log.1  PureStorageAdapter_209708.log.1  PureStorageAdapter_234574.log.1  PureStorageAdapter_234925.log.1
    

    Enabling Debug Logging

    There may come a time when debug logging is required to troubleshoot more complex issues. The steps below will best instruct how to go about this process.

    Note:

    Please do not enable debug logging unless directed to do so by Everpure or VMware Support. With debug logging enabled the log file threshold size will quickly be reached and may result in running out of space or not capturing the error you are trying to troubleshoot.

    VCF Operations Manager 7.5 and later have removed the ability to enable debug logging from the UI, thus SSH access is required for this process.