Configuration

lmi meta-command has the main configuration file located in:

/etc/openlmi/scripts/lmi.conf

User can have his own configuration file overriding anything in global one above:

$HOME/.lmirc

Configuration is written in MS Windows INI files fashion. Please refer to corresponding RFC 822 and to ConfigParser for python specific interpretation language.

Follows a list of sections with their list of options. Most of the options listed here can be overriden with command line parameters.

See also

configuration

Section [Main]

CommandNamespace : string

Python namespace, where command entry points will be searched for.

Defaults to lmi.scripts.cmd.

Trace : boolean

Whether the exceptions should be logged with tracebacks.

Defaults to False.

Verbosity: integer

A number within 0-2 range saying, how verbosive the output shall be. This differs from log_level, which controls the logging messages. This option is recognized by commands alone making them print more information on stdout.

Defaults to 0.

Section [CIM]

Namespace : string

Allows to override default CIM namespace, which will be passed to script library functions.

Defaults to root/cimv2.

Section [SSL]

VerifyServerCertificate : boolean

Whether to verify server-side certificate, when making secured connection over https.

Defaults to True.

Section [Format]

HumanFriendly : boolean

Whether to print values in human readable forms (e.g. with units).

Defaults to False.

ListerFormat : one of {csv, table}

What format to use, when listing tabular data. csv format allows for easy machine parsing, the second one is more human friendly.

Defaults to table.

NoHeadings : boolean

Whether to suppress headings (column names) when printing tables.

Defaults to False.

Section [Log]

Level : one of {DEBUG, INFO, WARNING, ERROR, CRITICAL}

Minimal serverity level of messages to log. Affects only logging to a file.

Defaults to ERROR.

ConsoleFormat : string

Format string used when logging to a console.

Defaults to %(levelname)s: %(message)s.

FileFormat : string

Format string used, when logging to a console. This applies only when OutputFile is set (see below).

Defaults to
%(asctime)s:%(levelname)-8s:%(name)s:%(lineno)d - %(message)s
OutputFile : string

Allows to set a path to file, where messages will be logged. No log file is written at default.

Defaults to empty string.

Table Of Contents

Previous topic

lmi meta-command usage

Next topic

Script Development

This Page