George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 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 | |
| 6 | MY_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 raw GET /redfish/v1/AccountService/Accounts |
| 18 | FILES: |
| 19 | - 'REDFISH_bmc_user_accounts.json' |
| 20 | PROTOCOL: |
| 21 | - 'REDFISH' |
| 22 | |
| 23 | IPMI_LOGS: |
| 24 | COMMANDS: |
| 25 | - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H ${hostname} lan print |
| 26 | FILES: |
| 27 | - 'IPMI_LAN_print.txt' |
| 28 | PROTOCOL: |
| 29 | - 'IPMI' |
| 30 | |
| 31 | SHELL_LOGS: |
| 32 | COMMANDS: |
| 33 | - plugin: |
| 34 | - plugin_name: plugin.ssh_execution.ssh_execute_cmd |
| 35 | - plugin_args: |
| 36 | - ${hostname} |
| 37 | - ${username} |
| 38 | - ${password} |
| 39 | - cat /etc/os-release |
| 40 | - 3 |
| 41 | - plugin_error: exit_on_error |
| 42 | FILES: |
| 43 | - plugin_release.txt |
| 44 | PROTOCOL: |
| 45 | - 'SHELL' |
| 46 | |
| 47 | DUMP_LOGS: |
| 48 | COMMANDS: |
| 49 | - 'ls -AX /var/lib/systemd/coredump/core.*' |
| 50 | PROTOCOL: |
| 51 | - 'SCP' |