Dump the OpenManage database.
Project description
-- coding: utf-8 --
Do NOT edit this system file by hand -- use git.
See "URL to git source" below.
Author: $Id: Thomas R. Stevenson aa0026@wayne.edu $
Last Changed: $Date: Thu Jan 19 16:19:24 2023 -0500 $
URL to git source: $URL: git@git.wayne.edu:aa0026/cmdb.git $
cmdb
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 cmdb.
Usage
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/Poetry/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/Poetry/output/OpenManage-cmdb.2023-01-19-16-14-32.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/Poetry/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/Poetry/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/Poetry/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/Poetry/log/cmdbdiff.log"
-D, --dryrun Only print out what would be done.
Documentation
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/Poetry/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/Poetry/log/cmdbdiff.log" -D, --dryrun Only print out what would be done.
The GIT Home can be found Here. The README file can be found Here. The LICENSE file can be found Here. The ChangeLog file can be found Here. The pyproject.toml file can be found Here. My contact information can be found Here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ecscmdb-1.6.19.tar.gz
.
File metadata
- Download URL: ecscmdb-1.6.19.tar.gz
- Upload date:
- Size: 21.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 462bb2281a97a5208210fd318e322771266d035d297583d126d9a1d8400772fc |
|
MD5 | 020d682064c088d8f80ed26e7a032cef |
|
BLAKE2b-256 | 7e723f13780a60ad70288e40e7fc3cd9d07ecb2eefef3a6446f6c5d86ec62a67 |
File details
Details for the file ecscmdb-1.6.19-py3-none-any.whl
.
File metadata
- Download URL: ecscmdb-1.6.19-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eeda9711b112d26c5dc3c3fcfbdd5c76eb8be72362a8947725b7086f7a50b95 |
|
MD5 | 5ae24692f9489fc69bd5c7e2df7cb012 |
|
BLAKE2b-256 | 54038f3962399c70b73de2e7fb35a5b26687e58c7d474789587a1a615c972f83 |