Python reference for OpenLMI client scripts
Main interface function wrapped with lmi command is:
It accepts ns object as the first argument,
an instance of lmi.shell.LMINamespace.
System Module API
LMI system client library.
-
lmi.scripts.system.format_memory_size(size)[source]
Returns formatted memory size.
Parameters: | size (Number) – Size in bytes |
Returns: | Formatted size string. |
Return type: | String |
-
lmi.scripts.system.get_all_instances(ns, class_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.system.get_hostname(ns)[source]
Returns: | Tabular data of system hostname. |
Return type: | List of tuples |
-
lmi.scripts.system.get_hwinfo(ns)[source]
Returns: | Tabular data of system hw info. |
Return type: | List of tuples |
-
lmi.scripts.system.get_networkinfo(ns)[source]
Returns: | Tabular data of networking status. |
Return type: | List of tuples |
-
lmi.scripts.system.get_osinfo(ns)[source]
Returns: | Tabular data of system OS info. |
Return type: | List of tuples |
-
lmi.scripts.system.get_servicesinfo(ns)[source]
Returns: | Tabular data of some system services. |
Return type: | List of tuples |
-
lmi.scripts.system.get_single_instance(ns, class_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.system.get_system_info(ns)[source]
Returns: | Tabular data of all general system information. |
Return type: | List of tuples |