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 18 ${hostname}:${port_https} -S Always raw GET 19 /redfish/v1/AccountService/Accounts 20 FILES: 21 - "REDFISH_bmc_user_accounts.json" 22 PROTOCOL: 23 - "REDFISH" 24 25 IPMI_LOGS: 26 COMMANDS: 27 - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H -p 28 ${port_ipmi} ${hostname} lan print 29 FILES: 30 - "IPMI_LAN_print.txt" 31 PROTOCOL: 32 - "IPMI" 33 34 SHELL_LOGS: 35 COMMANDS: 36 - plugin: 37 - plugin_name: plugins.ssh_execution 38 - plugin_function: ssh_execute_cmd 39 - plugin_args: 40 - ${hostname} 41 - ${username} 42 - ${password} 43 - cat /etc/os-release 44 - 3 45 - plugin_error: exit_on_error 46 FILES: 47 - plugin_release.txt 48 PROTOCOL: 49 - "SHELL" 50 51 DUMP_LOGS: 52 COMMANDS: 53 - "ls -AX /var/lib/systemd/coredump/core.*" 54 PROTOCOL: 55 - "SCP" 56