wbemcli.py(1)

wbemcli.py1

Utility to wrap up a pywbem session in a python interactive console

Usage

wbemcli.py HOSTNAME [-u USERNAME -p PASSWORD] [-n NAMESPACE] [--no-ssl] [--port PORT]

Overview

This manual page documents briefly the wbemcli.py command.

This manual page was written for the Debian distribution because the original program does not have a manual page.

wbemcli.py is small utility to wrap up a PyWBEM session in a Python interactive console.

CIM operations can be executed by using the PyWBEM connection object called 'cli' in the global scope. There are two sets of aliases available for usage in the interpreter. For example the following three commands are equivalent:

>>> cli.EnumerateInstanceNames('SMX_ComputerSystem')
>>> EnumerateInstanceNames('SMX_ComputerSystem')
>>> ein('SMX_ComputerSystem')

Pretty-printing of results is also available using the 'pp' function. For example:

>>> cs = ei('SMX_ComputerSystem')[0]
>>> pp(cs.items())
[(u'RequestedState', 12L),
(u'Dedicated', [1L]),
(u'StatusDescriptions', [u'System is Functional']),
(u'IdentifyingNumber', u'6F880AA1-F4F5-11D5-8C45-C0116FBAE02A'),
..

Releases

Unchanged in 3 releases since Debian 8 (Jessie).

  1. 8–10

Author

Bernd Zeimetz <[email protected]>

Wrote this manpage for the Debian system.

From python-pywbem 0.8.0~dev650-1 in Debian 10 (Buster). Parsed by carta from the page's man source.