blob: 6ccd4fb30a97c9a58a5ab8b76631a8a1d4361695 [file] [log] [blame]
George Keishingaf77d9c2021-08-13 15:12:55 -05001# 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:
Patrick Williams12e33522022-12-08 06:13:12 -06009 - "dmesg >/tmp/dmesg.txt"
George Keishingaf77d9c2021-08-13 15:12:55 -050010 FILES:
Patrick Williams12e33522022-12-08 06:13:12 -060011 - "/tmp/dmesg.txt"
George Keishingaf77d9c2021-08-13 15:12:55 -050012 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060013 - "SSH"
George Keishingaf77d9c2021-08-13 15:12:55 -050014
15 REDFISH_LOGS:
16 COMMANDS:
George Keishing82d98092023-06-28 09:24:21 +053017 - redfishtool -u ${username} -p ${password} -r
18 ${hostname}:${port_https} -S Always raw GET
19 /redfish/v1/AccountService/Accounts
George Keishingaf77d9c2021-08-13 15:12:55 -050020 FILES:
Patrick Williams12e33522022-12-08 06:13:12 -060021 - "REDFISH_bmc_user_accounts.json"
George Keishingaf77d9c2021-08-13 15:12:55 -050022 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060023 - "REDFISH"
George Keishingaf77d9c2021-08-13 15:12:55 -050024
25 IPMI_LOGS:
26 COMMANDS:
George Keishing82d98092023-06-28 09:24:21 +053027 - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H -p
28 ${port_ipmi} ${hostname} lan print
George Keishingaf77d9c2021-08-13 15:12:55 -050029 FILES:
Patrick Williams12e33522022-12-08 06:13:12 -060030 - "IPMI_LAN_print.txt"
George Keishingaf77d9c2021-08-13 15:12:55 -050031 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060032 - "IPMI"
George Keishingaf77d9c2021-08-13 15:12:55 -050033
34 SHELL_LOGS:
35 COMMANDS:
36 - plugin:
Patrick Williams12e33522022-12-08 06:13:12 -060037 - 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 Keishingaf77d9c2021-08-13 15:12:55 -050045 FILES:
46 - plugin_release.txt
47 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060048 - "SHELL"
George Keishingaf77d9c2021-08-13 15:12:55 -050049
50 DUMP_LOGS:
51 COMMANDS:
Patrick Williams12e33522022-12-08 06:13:12 -060052 - "ls -AX /var/lib/systemd/coredump/core.*"
George Keishingaf77d9c2021-08-13 15:12:55 -050053 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060054 - "SCP"