Itop module is managed by Itop command
You need to ba aware of core objects configuration Config command
Itop collection is designed to enrich model by owners, admins, locations and organizations.
Every object in model can belong to specific organization/location. There is an possibility to set fallback location and organization.
Before adding any object to location or organization, their corresponding core objects must exists.
This is needed only one time or when organization/location is added into itop.
Simplest way how to make all required core objects from itop is:
fcpc itop fetch-orgs
fcpc config to-core itoporganization
fcpc itop fetch-locations
fcpc config to-core itoplocation
usage: fcpc module/itop [-h] [--itop.url ITOP.URL] [--itop.user ITOP.USER] [--itop.password ITOP.PASSWORD]
[--itop.fallback_location ITOP.FALLBACK_LOCATION]
[--itop.fallback_organization ITOP.FALLBACK_ORGANIZATION]
[--itop.related.depth ITOP.RELATED.DEPTH] [--itop.name_prefix ITOP.NAME_PREFIX]
[--itop.query.persons ITOP.QUERY.PERSONS] [--itop.query.hosts ITOP.QUERY.HOSTS]
itop
optional arguments:
-h, --help show this help message and exit
--itop.url ITOP.URL Itop base URL[Defined:fcplib.module.itop.cmd] (default: None)
--itop.user ITOP.USER
Itop API username[Defined:fcplib.module.itop.cmd] (default: None)
--itop.password ITOP.PASSWORD
Itop API password[Defined:fcplib.module.itop.cmd] (default: None)
--itop.fallback_location ITOP.FALLBACK_LOCATION
Itop fallback location if object location is not found. Default is to throw
error[Defined:fcplib.module.itop.cmd] (default: None)
--itop.fallback_organization ITOP.FALLBACK_ORGANIZATION
Itop fallback organization if object organization is not found[Defined:fcplib.module.itop.cmd]
(default: None)
--itop.related.depth ITOP.RELATED.DEPTH
Itop depth for searching related objects[Defined:fcplib.module.itop.cmd] (default: 1)
--itop.name_prefix ITOP.NAME_PREFIX
Itop name prefix to extract name from[Defined:fcplib.module.itop.cmd] (default: None)
--itop.query.persons ITOP.QUERY.PERSONS
Itop query to search persons[Defined:fcplib.module.itop.cmd] (default: SELECT Person)
--itop.query.hosts ITOP.QUERY.HOSTS
Itop query to search hosts[Defined:fcplib.module.itop.cmd] (default: SELECT Server UNION
SELECT VirtualHost UNION SELECT VirtualMachine UNION SELECT PC UNION SELECT NAS UNION SELECT
NetworkDevice UNION SELECT Printer )