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