WcProc1Mountinfo - Command /usr/bin/wc -l /proc/1/mountinfo
¶
Parser for parsing the output of command /usr/bin/wc -l /proc/1/mountinfo
.
-
class
insights.parsers.wc_proc_1_mountinfo.
WcProc1Mountinfo
(context)[source]¶ Bases:
insights.core.Parser
Provides the line counts of file
/proc/1/mountinfo
by parsing the output of command/usr/bin/wc -l /proc/1/mountinfo
.-
line_count
¶ the line counts of file
/proc/1/mountinfo
Type: int
Typical content looks like:
37 /proc/1/mountinfo
Examples
>>> type(wc_info) <class 'insights.parsers.wc_proc_1_mountinfo.WcProc1Mountinfo'> >>> wc_info.line_count 37
Raises: SkipComponent
-- if the command output is empty or missing fileParseException
-- if the command output is unparsable
-