1# Template example on how you can create you own customize YAML to drive the 2# log collection for your system 3# Except for COMMAND, FILES and PROTOCOL, rest depends on how you want to 4# name the block, sub block, commands construct and file name. 5 6MY_BLOCK: 7 MY_LOGS: 8 COMMANDS: 9 - "dmesg >/tmp/dmesg.txt" 10 FILES: 11 - "/tmp/dmesg.txt" 12 PROTOCOL: 13 - "SSH" 14 15 REDFISH_LOGS: 16 COMMANDS: 17 - redfishtool -u ${username} -p ${password} -r ${hostname} -S Always 18 raw GET /redfish/v1/AccountService/Accounts 19 FILES: 20 - "REDFISH_bmc_user_accounts.json" 21 PROTOCOL: 22 - "REDFISH" 23 24 IPMI_LOGS: 25 COMMANDS: 26 - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H 27 ${hostname} lan print 28 FILES: 29 - "IPMI_LAN_print.txt" 30 PROTOCOL: 31 - "IPMI" 32 33 SHELL_LOGS: 34 COMMANDS: 35 - plugin: 36 - plugin_name: plugin.ssh_execution.ssh_execute_cmd 37 - plugin_args: 38 - ${hostname} 39 - ${username} 40 - ${password} 41 - cat /etc/os-release 42 - 3 43 - plugin_error: exit_on_error 44 FILES: 45 - plugin_release.txt 46 PROTOCOL: 47 - "SHELL" 48 49 DUMP_LOGS: 50 COMMANDS: 51 - "ls -AX /var/lib/systemd/coredump/core.*" 52 PROTOCOL: 53 - "SCP" 54