System Script python reference¶
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)¶
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)¶
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)¶
Returns: Tabular data of system hostname. Return type: List of tuples
- lmi.scripts.system.get_hwinfo(ns)¶
Returns: Tabular data of system hw info. Return type: List of tuples
- lmi.scripts.system.get_networkinfo(ns)¶
Returns: Tabular data of networking status. Return type: List of tuples
- lmi.scripts.system.get_osinfo(ns)¶
Returns: Tabular data of system OS info. Return type: List of tuples
- lmi.scripts.system.get_servicesinfo(ns)¶
Returns: Tabular data of some system services. Return type: List of tuples
- lmi.scripts.system.get_single_instance(ns, class_name)¶
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)¶
Returns: Tabular data of all general system information. Return type: List of tuples