-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Details: * Added a new 'pywbemlistener' command that manages WBEM indication listeners. (see issue #430) * Removed Python 3.4 on Windows from GitHub Actions tests, because this environment does not have the Microsoft Visual C++ 10.0 compiler needed for building the 'psutils' package. Signed-off-by: Andreas Maier <[email protected]>
- Loading branch information
1 parent
50dd089
commit 714bfc1
Showing
12 changed files
with
1,474 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,226 @@ | ||
|
||
.. _`pywbemlistener Help Command Details`: | ||
|
||
pywbemlistener Help Command Details | ||
=================================== | ||
|
||
|
||
This section shows the help text for each pywbemlistener command group and command. | ||
|
||
|
||
|
||
Help text for ``pywbemlistener``: | ||
|
||
|
||
:: | ||
|
||
Usage: pywbemlistener [GENERAL-OPTIONS] COMMAND [ARGS] [COMMAND-OPTIONS] | ||
|
||
The pywbemlistener command can run and manage WBEM listeners. | ||
|
||
Each listener is a process that executes the `pywbemlistener run` command to receive WBEM indications sent from a | ||
WBEM server. | ||
|
||
A listener process can be started with the `pywbemlistener start` command and stopped with the `pywbemlistener stop` | ||
command. | ||
|
||
There is no central registration of the currently running listeners. Instead, the currently running processes | ||
executing the `pywbemlistener run` command are by definition the currently running listeners. Because of this, there | ||
is no notion of a stopped listener nor does a listener have an operational status. | ||
|
||
The general options shown below can also be specified on any of the commands, positioned right after the | ||
'pywbemlistener' command name. | ||
|
||
The width of help texts of this command can be set with the PYWBEMTOOLS_TERMWIDTH environment variable. | ||
|
||
For more detailed documentation, see: | ||
|
||
https://pywbemtools.readthedocs.io/en/stable/ | ||
|
||
General Options: | ||
-o, --output-format FORMAT Output format for the command result. The default and allowed output formats are | ||
command specific. The default output_format is None so that each command selects its | ||
own default format. Use "" to set default in interactive mode. FORMAT is: table | ||
formats: [table|plain|simple|grid|psql|rst|html]; CIM object formats: | ||
[mof|xml|repr|txt]]; TEXT formats: [text]. | ||
|
||
-l, --log COMP[=DEST[:DETAIL]],... | ||
Enable logging of the WBEM operations, defined by a list of log configuration strings | ||
with: COMP: [api|http|all]; DEST: [file|stderr|off], default: file; DETAIL: | ||
[all|paths|summary], default: all. Use "" to set default in interactive modeDefault: | ||
EnvVar PYWBEMCLI_LOG, or all. | ||
|
||
-v, --verbose / --no-verbose Display extra information about the processing. | ||
--pdb Pause execution in the built-in pdb debugger just before executing the command within | ||
pywbemcli. Ignored in interactive mode, but can be specified on each interactive | ||
command. Default: EnvVar PYWBEMCLI_PDB, or false. | ||
|
||
--warn / --no-warn Warnings control: True enables display of all Python warnings; False leaves warning | ||
control to the PYHONWARNINGS env var, which by default displays no warnings. Default: | ||
False. | ||
|
||
--version Show the version of this command and the pywbem package. | ||
-h, --help Show this help message. | ||
|
||
Commands: | ||
list List the currently running named WBEM indication listeners. | ||
run Run as a named WBEM indication listener. | ||
show Show a named WBEM indication listener. | ||
start Start a named WBEM indication listener in the background. | ||
stop Stop a named WBEM indication listener. | ||
|
||
|
||
.. _`pywbemlistener list --help`: | ||
|
||
pywbemlistener list --help | ||
-------------------------- | ||
|
||
|
||
|
||
Help text for ``pywbemlistener list`` (see :ref:`list command group`): | ||
|
||
|
||
:: | ||
|
||
Usage: pywbemlistener [GENERAL-OPTIONS] list [COMMAND-OPTIONS] | ||
|
||
List the currently running named WBEM indication listeners. | ||
|
||
This is done by listing the currently running `pywbemlistener run` commands. | ||
|
||
Command Options: | ||
-h, --help Show this help message. | ||
|
||
|
||
.. _`pywbemlistener run --help`: | ||
|
||
pywbemlistener run --help | ||
------------------------- | ||
|
||
|
||
|
||
Help text for ``pywbemlistener run`` (see :ref:`run command group`): | ||
|
||
|
||
:: | ||
|
||
Usage: pywbemlistener [GENERAL-OPTIONS] run NAME [COMMAND-OPTIONS] | ||
|
||
Run as a named WBEM indication listener. | ||
|
||
Run this command as a named WBEM indication listener until it gets terminated, e.g. by a keyboard interrupt, break | ||
signal (e.g. kill), or the `pywbemlistener stop` command. | ||
|
||
A listener with that name must not be running, otherwise the command fails. | ||
|
||
Examples: | ||
|
||
pywbemlistener run lis1 | ||
|
||
Command Options: | ||
--port PORT The port number the listener will open to receive indications. This can be any available port. | ||
Default: 25989 | ||
|
||
--protocol PROTOCOL The protocol used by the listener (http, https). Default: https | ||
-c, --certfile FILE Path name of a PEM file containing the certificate that will be presented as a server certificate | ||
during SSL/TLS handshake. Required when using https. The file may in addition contain the private | ||
key of the certificate. | ||
|
||
-k, --keyfile FILE Path name of a PEM file containing the private key of the server certificate. Required when using | ||
https and when the certificate file does not contain the private key. Default: Certificate file. | ||
|
||
-h, --help Show this help message. | ||
|
||
|
||
.. _`pywbemlistener show --help`: | ||
|
||
pywbemlistener show --help | ||
-------------------------- | ||
|
||
|
||
|
||
Help text for ``pywbemlistener show`` (see :ref:`show command group`): | ||
|
||
|
||
:: | ||
|
||
Usage: pywbemlistener [GENERAL-OPTIONS] show NAME [COMMAND-OPTIONS] | ||
|
||
Show a named WBEM indication listener. | ||
|
||
A listener with that name must be running, otherwise the command fails. | ||
|
||
Examples: | ||
|
||
pywbemlistener stop lis1 | ||
|
||
Command Options: | ||
-h, --help Show this help message. | ||
|
||
|
||
.. _`pywbemlistener start --help`: | ||
|
||
pywbemlistener start --help | ||
--------------------------- | ||
|
||
|
||
|
||
Help text for ``pywbemlistener start`` (see :ref:`start command group`): | ||
|
||
|
||
:: | ||
|
||
Usage: pywbemlistener [GENERAL-OPTIONS] start NAME [COMMAND-OPTIONS] | ||
|
||
Start a named WBEM indication listener in the background. | ||
|
||
A listener with that name must not be running, otherwise the command fails. | ||
|
||
A listener is identified by its hostname or IP address and a port number. It can be started with any free port. | ||
|
||
Examples: | ||
|
||
pywbemlistener start lis1 | ||
|
||
Command Options: | ||
--port PORT The port number the listener will open to receive indications. This can be any available port. | ||
Default: 25989 | ||
|
||
--protocol PROTOCOL The protocol used by the listener (http, https). Default: https | ||
-c, --certfile FILE Path name of a PEM file containing the certificate that will be presented as a server certificate | ||
during SSL/TLS handshake. Required when using https. The file may in addition contain the private | ||
key of the certificate. | ||
|
||
-k, --keyfile FILE Path name of a PEM file containing the private key of the server certificate. Required when using | ||
https and when the certificate file does not contain the private key. Default: Certificate file. | ||
|
||
-h, --help Show this help message. | ||
|
||
|
||
.. _`pywbemlistener stop --help`: | ||
|
||
pywbemlistener stop --help | ||
-------------------------- | ||
|
||
|
||
|
||
Help text for ``pywbemlistener stop`` (see :ref:`stop command group`): | ||
|
||
|
||
:: | ||
|
||
Usage: pywbemlistener [GENERAL-OPTIONS] stop NAME [COMMAND-OPTIONS] | ||
|
||
Stop a named WBEM indication listener. | ||
|
||
The listener will shut down gracefully. | ||
|
||
A listener with that name must be running, otherwise the command fails. | ||
|
||
Examples: | ||
|
||
pywbemlistener stop lis1 | ||
|
||
Command Options: | ||
-h, --help Show this help message. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
.. Copyright 2021 Inova Development Inc. | ||
.. | ||
.. Licensed under the Apache License, Version 2.0 (the "License"); | ||
.. you may not use this file except in compliance with the License. | ||
.. You may obtain a copy of the License at | ||
.. | ||
.. http://www.apache.org/licenses/LICENSE-2.0 | ||
.. | ||
.. Unless required by applicable law or agreed to in writing, software | ||
.. distributed under the License is distributed on an "AS IS" BASIS, | ||
.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
.. See the License for the specific language governing permissions and | ||
.. limitations under the License. | ||
.. | ||
.. _`Pywbemlistener command`: | ||
|
||
Pywbemlistener command | ||
====================== | ||
|
||
The pywbemlistener command can run and manage WBEM listeners. | ||
|
||
Each listener is a process that executes the `pywbemlistener run` | ||
command to receive WBEM indications sent from a WBEM server. | ||
|
||
A listener process can be started with the `pywbemlistener start` | ||
command and stopped with the `pywbemlistener stop` command. | ||
|
||
There is no central registration of the currently running listeners. | ||
Instead, the currently running processes executing the | ||
`pywbemlistener run` command are by definition the currently running | ||
listeners. Because of this, there is no notion of a stopped listener nor | ||
does a listener have an operational status. | ||
|
||
.. The maxdepth attribute overrides the maxdepth attribute of the | ||
.. mastertoc if used. | ||
.. The numbered attribute intentionally is not set, because the numbering | ||
.. on sub-TOCs is created automatically when set on the top-level TOC. | ||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Table of Contents in this Section: | ||
|
||
cmdshelp.rst | ||
|
||
.. # TODO: Write these sections: | ||
cmdlineinterface.rst | ||
generaloptions.rst | ||
features.rst | ||
commands.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.