Python reference for OpenLMI client scripts

Main interface functions wrapped with lmi commands are:

All of these accept ns object as the first argument. It is an instance of lmi.shell.LMINamespace.

Hardware Module API

LMI hardware provider client library.

lmi.scripts.hardware.get_all_info(ns)[source]
Returns:Tabular data of all available info.
Return type:List of tuples
lmi.scripts.hardware.get_all_instances(ns, instance_name)[source]

Returns all instances of instance_name.

Parameters:instance_name (String) – Instance name
Returns:List of instances of instance_name
Return type:List of lmi.shell.LMIInstance
lmi.scripts.hardware.get_chassis_info(ns)[source]
Returns:Tabular data from LMI_Chassis instance.
Return type:List of tuples
lmi.scripts.hardware.get_cpu_info(ns)[source]
Returns:Tabular data of processor info.
Return type:List of tuples
lmi.scripts.hardware.get_memory_info(ns)[source]
Returns:Tabular data of memory info.
Return type:List of tuples
lmi.scripts.hardware.get_single_instance(ns, instance_name)[source]

Returns single instance of instance_name.

Parameters:instance_name (String) – Instance name
Returns:Instance of instance_name
Return type:lmi.shell.LMIInstance
lmi.scripts.hardware.get_system_info(ns)[source]
Returns:Tabular data of system info.
Return type:List of tuples

Table Of Contents

Previous topic

LMI command line reference

This Page