blob: a418a8c522e84176a41a0f2846b35e4af1ea9daf [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:
Patrick Williams12e33522022-12-08 06:13:12 -060017 - redfishtool -u ${username} -p ${password} -r ${hostname} -S Always
18 raw GET /redfish/v1/AccountService/Accounts
George Keishingaf77d9c2021-08-13 15:12:55 -050019 FILES:
Patrick Williams12e33522022-12-08 06:13:12 -060020 - "REDFISH_bmc_user_accounts.json"
George Keishingaf77d9c2021-08-13 15:12:55 -050021 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060022 - "REDFISH"
George Keishingaf77d9c2021-08-13 15:12:55 -050023
24 IPMI_LOGS:
25 COMMANDS:
Patrick Williams12e33522022-12-08 06:13:12 -060026 - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H
27 ${hostname} lan print
George Keishingaf77d9c2021-08-13 15:12:55 -050028 FILES:
Patrick Williams12e33522022-12-08 06:13:12 -060029 - "IPMI_LAN_print.txt"
George Keishingaf77d9c2021-08-13 15:12:55 -050030 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060031 - "IPMI"
George Keishingaf77d9c2021-08-13 15:12:55 -050032
33 SHELL_LOGS:
34 COMMANDS:
35 - plugin:
Patrick Williams12e33522022-12-08 06:13:12 -060036 - 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 Keishingaf77d9c2021-08-13 15:12:55 -050044 FILES:
45 - plugin_release.txt
46 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060047 - "SHELL"
George Keishingaf77d9c2021-08-13 15:12:55 -050048
49 DUMP_LOGS:
50 COMMANDS:
Patrick Williams12e33522022-12-08 06:13:12 -060051 - "ls -AX /var/lib/systemd/coredump/core.*"
George Keishingaf77d9c2021-08-13 15:12:55 -050052 PROTOCOL:
Patrick Williams12e33522022-12-08 06:13:12 -060053 - "SCP"