xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/procfd (revision e110762f865fe1d1b2dee65b86099d885a2af547)
1#!/usr/bin/env bash
2#
3# config: 123 60
4# @brief: List the open file descriptors
5#
6
7# shellcheck source=tools/dreport.d/include.d/functions
8. "$DREPORT_INCLUDE"/functions
9
10file_name="procfd.log"
11desc="proc fd"
12cmd="ls -Al /proc/*/fd/ 2> /dev/null || true"
13add_cmd_output "$cmd" "$file_name" "$desc"
14