IBM DB2 Sever details¶
Module for the processing of output from the db2licm -l
command.
-
class
insights.parsers.db2licm.
DB2Info
(context, extra_bad_lines=[])[source]¶ Bases:
insights.core.CommandParser
,dict
This parser processes the output of the command db2licm_l and provides the information as a dictionary.
Sample input:
Product name: "DB2 Enterprise Server Edition" License type: "CPU Option" Expiry date: "Permanent" Product identifier: "db2ese" Version information: "9.7" Enforcement policy: "Soft Stop" Features: DB2 Performance Optimization ESE: "Not licensed" DB2 Storage Optimization: "Not licensed" DB2 Advanced Access Control: "Not licensed" IBM Homogeneous Replication ESE: "Not licensed" Product name: "DB2 Connect Server" Expiry date: "Expired" Product identifier: "db2consv" Version information: "9.7" Concurrent connect user policy: "Disabled" Enforcement policy: "Soft Stop"
Example
>>> list(parser_result.keys()) ['DB2 Enterprise Server Edition', 'DB2 Connect Server'] >>> parser_result['DB2 Enterprise Server Edition']["Version information"] '9.7'
Override the base class parse_content to parse the output of the ‘’’db2licm -l’’’ command. Information that is stored in the object is made available to the rule plugins.
- Raises
ParseException -- raised if data is not parsable.