blob: 3d467f46e021a72c6195e61d2da79b86d5e0d41e [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:
George Keishing7bc5ce32025-05-19 19:15:20 +053037 - plugin_name: plugins.ssh_execution
38 - plugin_function: ssh_execute_cmd
Patrick Williams12e33522022-12-08 06:13:12 -060039 - plugin_args:
40 - ${hostname}
41 - ${username}
42 - ${password}
43 - cat /etc/os-release
44 - 3
45 - plugin_error: exit_on_error
George Keishingaf77d9c2021-08-13 15:12:55 -050046 FILES:
47 - plugin_release.txt
48 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060049 - "SHELL"
George Keishingaf77d9c2021-08-13 15:12:55 -050050
51 DUMP_LOGS:
52 COMMANDS:
Patrick Williams12e33522022-12-08 06:13:12 -060053 - "ls -AX /var/lib/systemd/coredump/core.*"
George Keishingaf77d9c2021-08-13 15:12:55 -050054 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060055 - "SCP"