grubby - command /usr/sbin/grubby
¶
This is a collection of parsers that all deal with the command grubby
.
Parsers included in this module are:
GrubbyDefaultIndex - command grubby --default-index
¶
GrubbyDefaultKernel - command grubby --default-kernel
¶
-
class
insights.parsers.grubby.
GrubbyDefaultIndex
(context, extra_bad_lines=[])[source]¶ Bases:
insights.core.CommandParser
This parser parses the output of command
grubby --default-index
.The typical output of this command is:
0
Examples
>>> grubby_default_index.default_index 0
- Raises
SkipException -- When output is empty
ParseException -- When output is invalid
-
default_index
¶ the numeric index of the current default boot entry, count from 0
- Type
int
-
class
insights.parsers.grubby.
GrubbyDefaultKernel
(context, extra_bad_lines=[])[source]¶ Bases:
insights.core.CommandParser
This parser parses the output of command
grubby --default-kernel
.The typical output of this command is:
/boot/vmlinuz-2.6.32-573.el6.x86_64
Examples
>>> grubby_default_kernel.default_kernel '/boot/vmlinuz-2.6.32-573.el6.x86_64'
- Raises
SkipException -- When output is empty
ParseException -- When output is invalid
-
default_kernel
¶ The default kernel name for next boot
- Type
str