Skip to main content

Dump the OpenManage database.

Project description

ECScmdb

Author:            $Id: Thomas R. Stevenson <aa0026@wayne.edu> $
Last Changed:      $Date: Wed Feb 8 18:51:00 2023 -0500 $
URL to git source: $URL: git@git.wayne.edu:ECS_Projects/ECScmdb.git $

Summary

cmdb:     Download the devices in the OpenManage database into a
          spreadsheet, one work sheet for each device.

cmdbdiff: Compare two cmdb spreadsheets for differences.

Installation

Use Python virtual environment and install package ecscmdb.

Version

cmdb --version

cmdb: ecscmdb(1.6.20), ecspylibs(1.1.14)

cmdbdiff --version

cmdbdiff: ecscmdb(1.6.20), ecspylibs(1.1.14)

Help

cmdb --help

Program to download the data from the OpenManage DB and build a spreadsheet.

Some default option values listed below can be overridden within the
configuration file.

Usage:
  cmdb [-v] [-L LEVEL] [--LOG=DIR] [-F] [-c CONFIG] [-s SECTION] [-o OUTPUT] [-p PWFILE] [-D] [-P SIZE]
  cmdb [-vl] [-L LEVEL] [--LOG=DIR] [-c CONFIG] [-s SECTION] [-a ID]... [-d ID]... [-p PWFILE] [-D]
  cmdb (-h | --help | -V | --version)

  There are no required options.

Options:
  -h, --help                     Show this help message and exit.
  -V, --version                  Show version information and exit.
  -F, --full                     Show all data, no filtering.
  -c CONFIG, --config=CONFIG     The configuration file.
                                 Default: "/home/tom/Run/ECScmdb/Testing/etc/ecscmdb/cmdb.yml"
  -s SECTION, --section=SECTION  The configuration file version (default
                                 defined within the configuration file).
  -o OUTPUT, --output=OUTPUT     Output file or directory.
                                 Default: "/home/tom/Run/ECScmdb/Testing/output/OpenManage-cmdb.2023-02-08-18-14-30.xlsx"
  -p PWFILE, --pw=PWFILE         The password file.  This file is used when a
                                 login to a website or webpage is required.
                                 Default: "/home/tom/Run/ECScmdb/Testing/etc/ecscmdb/cmdb.pw"
  -l, --list                     List all of the IDs in the password file and
                                 exit.  If both the --list and --verbose
                                 options are included, list both IDs and
                                 Passwords and exit.
  -a ID, --add=ID                Add (or update) an ID and Password and exit.
                                 Program will prompt for the Password to be
                                 saved to the password file.
  -d ID, --delete=ID             Delete an ID (if it exists) from the
                                 password file and exit.
  -v, --verbose                  Print verbose messages.
  -L LEVEL, --log=LEVEL          Print log messages at log value LEVEL.
                                 Valid levels are: TRACE, DEBUG, INFO, WARNING,
                                 ERROR, and CRITICAL.
                                 Default: WARNING
  --LOG=DIR                      Log directory.
                                 Default: "/home/tom/Run/ECScmdb/Testing/log/cmdb.log"
  -D, --dryrun                   Only print out what would be done.
  -P SIZE, --poolsize=SIZE       Call OpenManage using pools of size SIZE.
                                 Default: set by the OS.

cmdbdiff --help

Program to analyze two spreadsheets for differences.

Some default option values listed below can be overridden within the initialization file.

Usage:
  cmdbdiff [-v] [-L LEVEL] [--LOG=DIR] [-c CONFIG] [-s SECTION] [-r REPORT] [-D] SPREADSHEET1 SPREADSHEET2
  cmdbdiff (-h | --help | -V | --version)

  Variables SPREADSHEET1 and SPREADSHEET2 are required, all other parameters are optional.

Options:
  -h, --help                          Show this help message and exit.
  -V, --version                       Show version information and exit.
  -c CONFIG, --config=CONFIG          The configuration file.
                                      Default: "/home/tom/Run/ECScmdb/Testing/etc/ecscmdb/cmdbdiff.yml"
  -s SECTION, --section=SECTION       The configuration file version (default
                                      defined within the configuration file).
  -r REPORT, --report=REPORT          Report directory or file.
  -v, --verbose                       Print verbose messages.
  -L LEVEL, --log=LEVEL               Print log messages at log value LEVEL.
                                      Valid levels are: TRACE, DEBUG, INFO, WARNING,
                                      ERROR, and CRITICAL.
                                      Default: "WARNING"
  --LOG=DIR                           Log Directory,
                                      Default: "/home/tom/Run/ECScmdb/Testing/log/cmdbdiff.log"
  -D, --dryrun                        Only print out what would be done.

Git information

The GIT Home can be found [Here][CMDB].
The README file can be found [Here][README].
The LICENSE file can be found [Here][LICENSE].
The ChangeLog file can be found [Here][CHANGELOG].
The pyproject.toml file can be found [Here][PYPROJECT].

About me

My contact information can be found [Here][About Me].

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

ecscmdb-1.6.23.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

ecscmdb-1.6.23-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file ecscmdb-1.6.23.tar.gz.

File metadata

  • Download URL: ecscmdb-1.6.23.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.13 Linux/5.17.12-100.fc34.x86_64

File hashes

Hashes for ecscmdb-1.6.23.tar.gz
Algorithm Hash digest
SHA256 6526264bdce048332f725627ad0c011ee47e7e5f0ad3a3355ef0d66e64fc6ace
MD5 93e22d762ddd22ac896992ed6659188e
BLAKE2b-256 03098bd58bddad423ea3f290972be5caf4fd74c9d28d02590c3ec9a0a6441104

See more details on using hashes here.

File details

Details for the file ecscmdb-1.6.23-py3-none-any.whl.

File metadata

  • Download URL: ecscmdb-1.6.23-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.13 Linux/5.17.12-100.fc34.x86_64

File hashes

Hashes for ecscmdb-1.6.23-py3-none-any.whl
Algorithm Hash digest
SHA256 eb969273b958971f7ec2cbbbd5c2563ddb2b0190e0156cf081023012b5fec8ad
MD5 54cfcafe858a98c38ca5e9e32b49f003
BLAKE2b-256 c1bb849ef046392a92a1451a3dacc6d15ebe7026b743bda5769ee1d77fef004b

See more details on using hashes here.

Supported by

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