Skip to main content

No project description provided

Project description

# iTop CLI

Utility to interact with iTop

## Features

Usage:
itop.py delete <class> <query> (--env=<env>|--config=<config>)
itop.py export <class> [<query>] (--env=<env>|--config=<config>)
itop.py import <class> --input=<input_file> [--search_keys=<search_keys>] (--env=<env>|--config=<config>)
itop.py create <class> [FIELDS]... (--env=<env>|--config=<config>)
itop.py -h | --help | --version

Arguments:
FIELDS Key value pairs. Ex : "description=Ceci est une description". If not overridden, the script will use the org_id of the config file

Options:
--env=<env> Will search ~/.itop/<venv>.json as configuration file
--search_keys=<search_keys> Key(s) to search objects, comma separated [default: name]

Examples:
itop.py delete Person 'SELECT Person WHERE status="inactive"' --env=dev
itop.py export SynchroDataSource --env=dev
itop.py export Server "SELECT Server WHERE name LIKE 'SRVTEST'" --env=dev
itop.py import SynchroDataSource --input=/tmp/out.json --search_keys=database_table_name
itop.py create Server "name=SRVTEST" "description=Serveur de test" --env=dev

## Configuration file

{
"url": "http://myhost.example.com/itop_dev/webservices/rest.php",
"version": "1.3",
"user": "user",
"password": "password",
"org_name": "My org"
}

Project details


Download files

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

Files for itop-cli, version 1.3.3
Filename, size File type Python version Upload date Hashes
Filename, size itop_cli-1.3.3.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page