Skip to main content

Python client tools to work with WBEM Servers using the PyWBEM API.

Project description

Pywbemtools is a collection of command line tools that communicate with WBEM servers. The tools are written in pure Python and support Python 2 and Python 3.

At this point, pywbemtools includes a single command line tool named pywbemcli that uses the pywbem package on Pypi to issue operations to a WBEM server using the CIM/WBEM standards defined by the DMTF to perform system management tasks.

CIM/WBEM standards are used for a wide variety of systems management tasks in the industry including DMTF management standards and the SNIA Storage Management Initiative Specification (SMI-S).

Pywbemcli provides access to WBEM servers from the command line. It provides functionality to:

  • Explore the CIM data of WBEM servers. It can manage/inspect the CIM model components including CIM classes, CIM instances, and CIM qualifiers and execute CIM methods and queries on the WBEM server.

  • Execute specific CIM-XML operations on the WBEM server as defined in DMTF standard DSP0200 (CIM Operations over HTTP).

  • Inspect and manage WBEM server functionality including:

    • CIM namespaces

    • Advertised WBEM management profiles

    • WBEM server brand and version information

  • Capture detailed information on CIM-XML interactions with the WBEM server including time statistics and details of data flow.

  • Maintain a file with persisted WBEM connection definitions so that pywbemcli can access multiple WBEM servers by name.

  • Provide both a command line mode and an interactive mode where multiple pywbemcli commands can be executed within the context of a WBEM server.

  • Use an integrated mock WBEM server to try out commands. The mock server can be loaded with CIM objects defined in MOF files or via Python scripts.

Installation

Requirements:

  1. Python 2.7, 3.4 and higher

  2. Operating Systems: Linux, OS-X, native Windows, UNIX-like environments on Windows (e.g. Cygwin)

  3. On Python 2, the following OS-level packages are needed:

    • On native Windows:

      • choco - Chocolatey package manager. The pywbemtools package installation uses Chocolatey to install OS-level software. See https://chocolatey.org/ for the installation instructions for Chocolatey.

      • wget - Download tool. Can be installed with: choco install wget.

    • On Linux, OS-X, UNIX-like environments on Windows (e.g. Cygwin):

      • wget - Download tool. Can be installed using the OS-level package manager for the platform.

Installation:

  • On Python 2, install OS-level packages needed by the pywbem package:

    • On native Windows:

      > wget -q https://raw.githubusercontent.com/pywbem/pywbem/master/pywbem_os_setup.bat
      > pywbem_os_setup.bat
    • On Linux, OS-X, UNIX-like environments on Windows (e.g. Cygwin):

      $ wget -q https://raw.githubusercontent.com/pywbem/pywbem/master/pywbem_os_setup.sh
      $ chmod 755 pywbem_os_setup.sh
      $ ./pywbem_os_setup.sh

      The pywbem_os_setup.sh script uses sudo internally, so your userid needs to have sudo permission.

  • Install the pywbemtools Python package:

    $ pip install pywbemtools

For more details, including how to install the needed OS-level packages manually, see Installation.

Documentation and change history

For the latest version of pywbemtools released on Pypi:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywbemtools-0.5.1.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywbemtools-0.5.1-py2.py3-none-any.whl (77.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pywbemtools-0.5.1.tar.gz.

File metadata

  • Download URL: pywbemtools-0.5.1.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.16

File hashes

Hashes for pywbemtools-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b2629e5de48b6e8a924a11a553176573be30005222d63675cd191278d8d5dfe2
MD5 d686e82f4d975383f30556ec2fafd947
BLAKE2b-256 23e22769d6480e3c01a5fc9118a3570b9682bb1dd33870de513665de4d9bd6d3

See more details on using hashes here.

File details

Details for the file pywbemtools-0.5.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pywbemtools-0.5.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 77.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/2.7.16

File hashes

Hashes for pywbemtools-0.5.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c95d986788a49b13e22ad666d45317568373f316b763fdac4f074bf9f7e8df8d
MD5 6d25307a21b808d1d4f76bc82317bff1
BLAKE2b-256 c029c76f3c5b4bdbeb87f04a92c4b9c87f6873bcc695f5e349e0c384ecce81fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page