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: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 9 | - "dmesg >/tmp/dmesg.txt" |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 10 | FILES: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 11 | - "/tmp/dmesg.txt" |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 12 | PROTOCOL: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 13 | - "SSH" |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 14 | |
| 15 | REDFISH_LOGS: |
| 16 | COMMANDS: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 17 | - redfishtool -u ${username} -p ${password} -r ${hostname} -S Always |
| 18 | raw GET /redfish/v1/AccountService/Accounts |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 19 | FILES: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 20 | - "REDFISH_bmc_user_accounts.json" |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 21 | PROTOCOL: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 22 | - "REDFISH" |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 23 | |
| 24 | IPMI_LOGS: |
| 25 | COMMANDS: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 26 | - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H |
| 27 | ${hostname} lan print |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 28 | FILES: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 29 | - "IPMI_LAN_print.txt" |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 30 | PROTOCOL: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 31 | - "IPMI" |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 32 | |
| 33 | SHELL_LOGS: |
| 34 | COMMANDS: |
| 35 | - plugin: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 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 |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 44 | FILES: |
| 45 | - plugin_release.txt |
| 46 | PROTOCOL: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 47 | - "SHELL" |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 48 | |
| 49 | DUMP_LOGS: |
| 50 | COMMANDS: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 51 | - "ls -AX /var/lib/systemd/coredump/core.*" |
George Keishing | af77d9c | 2021-08-13 15:12:55 -0500 | [diff] [blame] | 52 | PROTOCOL: |
Patrick Williams | 12e3352 | 2022-12-08 06:13:12 -0600 | [diff] [blame] | 53 | - "SCP" |