Enabling the debug mode

To enable the debug mode, edit the hws-config.yaml file and add the loggerLevel parameter just before the targets section:

loggerLevel: debug
targets:
- target:
    hostname: myhost
    type: linux
  snmp:
    version: v1
    community: public
    port: 161
    timeout: 120s

Possible values are: all, trace, debug, info, warn, error, fatal, off.

By default, the debug output file is saved in the hardware-logs directory under the temporary directory of the local machine, which is:

  • C:\Users\<username>\AppData\Local\Temp\hardware-logs on Windows
  • /tmp/hardware-logs on Linux.

If you want to specify another output directory, edit the hws-config.yaml file and add the outputDirectory parameter just before the targets section:

loggerLevel: debug
outputDirectory: C:\\Users\\<username>\\AppData\\Local\\Temp\\hardware-logs2021
targets:
- target:
    hostname: myhost
    type: linux
  snmp:
    version: v1
    community: public
    port: 161
    timeout: 120s
No results.