OpenLMI Tools documentation

OpenLMI Tools is a part of OpenLMI Project. It is a collection of client-side utilities for interacting with OpenLMI Providers.

It consists of and LMI metacommand and LMIShell.

LMI metacommand

Is a command line interface for OpenLMI Providers sitting on top of LMIShell. It provides an easy to use interface for system management through modular commands. These dynamically extend the functionality of LMI metacommand.

Short example:

$ lmi -h storage fs create --label=opt-root ext4 /dev/vda5


LMIShell provides a (non)interactive way how to access CIM objects provided by OpenPegasus or sblim-sfcb broker. The shell is based on a python interpreter and added logic, therefore what you can do in pure python, it is possible in LMIShell. There are classes added to manipulate with CIM classes, instance names, instances, etc. Additional classes are added to fulfill wrapper pattern and expose only those methods, which are necessary for the purpose of a shell.

Short example:

$ lmishell
> c = connect('localhost', 'root', 'password')
> for proc in c.root.cimv2.LMI_Processor.instances():
...   print "Name:\t%s, Clock Speed:\t%s" % (proc.Name, proc.MaxClockSpeed)
Name:   QEMU Virtual CPU version 1.6.2, Clock Speed:    2000
Name:   QEMU Virtual CPU version 1.6.2, Clock Speed:    2000

Indices and tables