我要评分
获取效率
正确性
完整性
易理解

Collecting HAF Logs with One Click

The one-click log collection function is used to pack all logs in log_directory. The packed logs are stored in /home/omm/haf-install/haf-target/logs/log_collection.tar by default.

The log collection function is not supported on host nodes or those offload nodes with the HAF library.

The log_directory configuration for offload nodes with the HAF service is in the etc/haf_offload.conf file in the installation path, for example, /home/omm/haf-install/haf-target/etc/haf_offload.conf.

To collect logs on offload nodes with the HAF service, run the following command:

/home/omm/haf-install/haf-target/tools/haf-tool collect

Collect successfully, the output package is /home/omm/haf-install/haf-target/logs/log_collection.tar

The following uses SmartKit log collection on an offload node as an example.

  1. Select Command Execution and click Add a Task.
  2. Edit the task content and click Save.

    Parameter

    Description

    Task Name

    Collecting logs

    Task Description

    Collecting and packaging logs with one click

    Run Directory

    /

    Run Command

    /home/omm/haf-install/haf-target/tools/haf-tool collect

  3. Select File Transfer and click Add a Task.
  4. Edit the task content and click Save.

    Parameter

    Description

    Task Name

    Collecting and packing logs to the local PC.

    Transfer Direction

    From Remote to Local

    Local Path

    Directory where the local installation package is stored

    Remote Path

    /home/omm/haf-install/haf-target/logs/log_collection.tar

    The root directory of logs stored in the remote path is the value of the log_directory field in the haf_target_install.conf file during installation. The default value is haf-target/logs.