1af77d9c4SGeorge Keishing# Template example on how you can create you own customize YAML to drive the 2af77d9c4SGeorge Keishing# log collection for your system 3af77d9c4SGeorge Keishing# Except for COMMAND, FILES and PROTOCOL, rest depends on how you want to 4af77d9c4SGeorge Keishing# name the block, sub block, commands construct and file name. 5af77d9c4SGeorge Keishing 6af77d9c4SGeorge KeishingMY_BLOCK: 7af77d9c4SGeorge Keishing MY_LOGS: 8af77d9c4SGeorge Keishing COMMANDS: 912e33526SPatrick Williams - "dmesg >/tmp/dmesg.txt" 10af77d9c4SGeorge Keishing FILES: 1112e33526SPatrick Williams - "/tmp/dmesg.txt" 12af77d9c4SGeorge Keishing PROTOCOL: 1312e33526SPatrick Williams - "SSH" 14af77d9c4SGeorge Keishing 15af77d9c4SGeorge Keishing REDFISH_LOGS: 16af77d9c4SGeorge Keishing COMMANDS: 17*82d98093SGeorge Keishing - redfishtool -u ${username} -p ${password} -r 18*82d98093SGeorge Keishing ${hostname}:${port_https} -S Always raw GET 19*82d98093SGeorge Keishing /redfish/v1/AccountService/Accounts 20af77d9c4SGeorge Keishing FILES: 2112e33526SPatrick Williams - "REDFISH_bmc_user_accounts.json" 22af77d9c4SGeorge Keishing PROTOCOL: 2312e33526SPatrick Williams - "REDFISH" 24af77d9c4SGeorge Keishing 25af77d9c4SGeorge Keishing IPMI_LOGS: 26af77d9c4SGeorge Keishing COMMANDS: 27*82d98093SGeorge Keishing - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H -p 28*82d98093SGeorge Keishing ${port_ipmi} ${hostname} lan print 29af77d9c4SGeorge Keishing FILES: 3012e33526SPatrick Williams - "IPMI_LAN_print.txt" 31af77d9c4SGeorge Keishing PROTOCOL: 3212e33526SPatrick Williams - "IPMI" 33af77d9c4SGeorge Keishing 34af77d9c4SGeorge Keishing SHELL_LOGS: 35af77d9c4SGeorge Keishing COMMANDS: 36af77d9c4SGeorge Keishing - plugin: 37af77d9c4SGeorge Keishing - plugin_name: plugin.ssh_execution.ssh_execute_cmd 38af77d9c4SGeorge Keishing - plugin_args: 39af77d9c4SGeorge Keishing - ${hostname} 40af77d9c4SGeorge Keishing - ${username} 41af77d9c4SGeorge Keishing - ${password} 42af77d9c4SGeorge Keishing - cat /etc/os-release 43af77d9c4SGeorge Keishing - 3 44af77d9c4SGeorge Keishing - plugin_error: exit_on_error 45af77d9c4SGeorge Keishing FILES: 46af77d9c4SGeorge Keishing - plugin_release.txt 47af77d9c4SGeorge Keishing PROTOCOL: 4812e33526SPatrick Williams - "SHELL" 49af77d9c4SGeorge Keishing 50af77d9c4SGeorge Keishing DUMP_LOGS: 51af77d9c4SGeorge Keishing COMMANDS: 5212e33526SPatrick Williams - "ls -AX /var/lib/systemd/coredump/core.*" 53af77d9c4SGeorge Keishing PROTOCOL: 5412e33526SPatrick Williams - "SCP" 55