Repquota - command repquota
¶
Parser contains in this module is:
RepquotaAGNPUV - command repquota -agnpuv
¶
-
class
insights.parsers.repquota.
RepquotaAGNPUV
(context, extra_bad_lines=None)[source]¶ Bases:
insights.core.CommandParser
repquota -agnpuv prints a summary of the disc usage and quotas information for the specified file systems.
Typical content looks like:
*** Report for user quotas on device /dev/sdb Block grace time: 7days; Inode grace time: 7days Block limits File limits User used soft hard grace used soft hard grace ---------------------------------------------------------------------- #0 -- 5120 0 0 0 4 0 0 0 #1009 +- 61440 51200 102400 1679983770 1 0 0 0 #1010 -- 0 51200 102400 0 0 0 0 0 #1011 +- 107520 51200 307200 1680640819 2 0 0 0 #1012 -- 51200 0 0 0 1 0 0 0 #1013 -- 0 51200 102400 0 0 0 0 0 *** Status for user quotas on device /dev/sdb Accounting: ON; Enforcement: ON Inode: #131 (2 blocks, 2 extents) *** Report for group quotas on device /dev/sdb Block grace time: 7days; Inode grace time: 7days Block limits File limits Group used soft hard grace used soft hard grace ---------------------------------------------------------------------- #0 -- 5120 0 0 0 4 0 0 0 #1004 -- 61440 0 0 0 1 0 0 0 #1005 -- 51200 972800 1048576 0 1 0 0 0 #1011 -- 107520 0 0 0 2 0 0 0 *** Status for group quotas on device /dev/sdb Accounting: ON; Enforcement: ON Inode: #132 (2 blocks, 2 extents)
Examples
>>> type(repquota) <class 'insights.parsers.repquota.RepquotaAGNPUV'> >>> 'enforcement' in repquota.user_quota['/dev/sdb'] True >>> repquota.group_quota['/dev/sdb']['quota_info'][0] == {'group': '0', 'status': '--', 'block_used': '5120', 'block_soft': '0', 'block_hard': '0', 'block_grace': '0', 'file_used': '4', 'file_soft': '0', 'file_hard': '0', 'file_grace': '0'} True
Raises: insights.core.exceptions.SkipComponent
-- if the output of therepquota -agnpuv
command is empty.