summaryrefslogtreecommitdiffstats
path: root/commands/hardware/doc/python.rst
blob: 5a11d43dbafed20e673573a8f013555b9b7c6a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Python reference for OpenLMI client scripts
===========================================

Main interface functions wrapped with ``lmi`` commands are:

    * :py:func:`~lmi.scripts.hardware.get_all_info`
    * :py:func:`~lmi.scripts.hardware.get_system_info`
    * :py:func:`~lmi.scripts.hardware.get_motherboard_info`
    * :py:func:`~lmi.scripts.hardware.get_cpu_info`
    * :py:func:`~lmi.scripts.hardware.get_memory_info`
    * :py:func:`~lmi.scripts.hardware.get_disks_info`

All of these accept :abbr:`ns (namespace)` object as the first argument,
an instance of :py:class:`lmi.shell.LMINamespace`.

Hardware Module API
-------------------
.. automodule:: lmi.scripts.hardware
    :members: