xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/diskusage (revision e110762f865fe1d1b2dee65b86099d885a2af547)
103409cf6SJayanth Othayoth#!/bin/bash
203409cf6SJayanth Othayoth#
303409cf6SJayanth Othayoth# config: 123 10
403409cf6SJayanth Othayoth# @brief: Collect disk usage information.
503409cf6SJayanth Othayoth#
603409cf6SJayanth Othayoth
7*e110762fSWilliam de Abreu Pinho# shellcheck source=tools/dreport.d/include.d/functions
8*e110762fSWilliam de Abreu Pinho. "$DREPORT_INCLUDE"/functions
903409cf6SJayanth Othayoth
1003409cf6SJayanth Othayothdesc="disk usage"
1103409cf6SJayanth Othayothfile_name="disk-usage.log"
1203409cf6SJayanth Othayothcommand="df -hT"
1303409cf6SJayanth Othayoth
1403409cf6SJayanth Othayothadd_cmd_output "$command" "$file_name" "$desc"
15