IBM Proc Files

Parsers for parsing the following proc files of IBM system:

IBMPpcLparCfg - file /proc/powerpc/lparcfg

IBMFirmwareLevel - file /proc/device-tree/openprom/ibm,fw-vernum_encoded

class insights.parsers.ibm_proc.IBMFirmwareLevel(context)[source]

Bases: Parser

Class for parsing the /proc/device-tree/openprom/ibm,fw-vernum_encoded file.

Typical content looks like:

FW950.30 (VL950_092)
raw

The RAW content of the ibm,fw-vernum_encoded file.

Type

str

firmware_level

The firmware level required by FLRT.

Type

str

Examples

>>> ibm_fwl.firmware_level
'VL950_092'
Raises

SkipException -- If nothing need to parse

parse_content(content)[source]

This method must be implemented by classes based on this class.

class insights.parsers.ibm_proc.IBMPpcLparCfg(context)[source]

Bases: Parser, dict

Class for parsing the /proc/powerpc/lparcfg file to a dictionary.

Typical content looks like:

serial_number=IBM,123456789
system_type=IBM,8247-22L

Examples

>>> ibm_mtm['system_type']
'8247-22L'
Raises

SkipException -- If nothing need to parse

parse_content(content)[source]

This method must be implemented by classes based on this class.