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