Parsers for falconctl
command outputs¶
This module provides the following parsers:
FalconctlBackend - command /opt/CrowdStrike/falconctl -g --backend
¶
FalconctlRfm - command /opt/CrowdStrike/falconctl -g --rfm-state
¶
- class insights.parsers.falconctl.FalconctlBackend(context, extra_bad_lines=None)[source]¶
Bases:
CommandParser
This parser reads the output of
/opt/CrowdStrike/falconctl -g --backend
, return the back-end mode as a string.Example output:
backend is not set. or backend=auto.
Examples
>>> type(falconctlbackend) <class 'insights.parsers.falconctl.FalconctlBackend'> >>> falconctlbackend.backend 'auto'
- class insights.parsers.falconctl.FalconctlRfm(context, extra_bad_lines=None)[source]¶
Bases:
CommandParser
This parser reads the output of
/opt/CrowdStrike/falconctl -g --rfm-state
, return the Reduced Functionality Mode as boolean.Example output:
rfm-state=false.
Examples
>>> type(falconctlrfm) <class 'insights.parsers.falconctl.FalconctlRfm'> >>> falconctlrfm.rfm False