Main interface functions wrapped with lmi commands are:
- get_all_info()
- get_system_info()
- get_motherboard_info()
- get_cpu_info()
- get_memory_info()
- get_disks_info()
All of these accept ns object as the first argument, an instance of lmi.shell.LMINamespace.
LMI hardware provider client library.
Returns formatted memory size.
Parameters: | size (Number) – Size in bytes |
---|---|
Returns: | Formatted size string. |
Return type: | String |
Returns: | Tabular data of all available info. |
---|---|
Return type: | List of tuples |
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 |
Returns colored message with ANSI escape sequences for terminal.
Parameters: |
|
---|---|
Returns: | Colored message. |
Return type: | String |
Returns: | Tabular data of processor info. |
---|---|
Return type: | List of tuples |
Returns: | Tabular data of system hostname. |
---|---|
Return type: | List of tuples |
Returns: | Tabular data of memory info. |
---|---|
Return type: | List of tuples |
Returns: | Tabular data of motherboard info. |
---|---|
Return type: | List of tuples |
Returns single instance of instance_name.
Parameters: | instance_name (String) – Instance name |
---|---|
Returns: | Instance of instance_name |
Return type: | lmi.shell.LMIInstance |