usage: fcpc tag-intersect-by [-h] [--intersect.incremental {0,1}]
[--intersect.query Query]
[--intersect.runqueries {0,1}]
[--intersect.tag_prefix Tagprefix]
[--intersect.attribute Atribute]
attr tagprefix queries [queries ...]
positional arguments:
attr
tagprefix
queries
optional arguments:
-h, --help show this help message and exit
--intersect.incremental {0,1}
If set to 1, process is incremental and can be run
more times.[Defined:fcplib.cmd.tag_intersect]
(default: 0)
Choices:
0
1
--intersect.query Query
Queries to intersect[Defined:fcplib.cmd.tag_intersect]
(default: [])
--intersect.runqueries {0,1}
If set to 0, view will be generated only from tags
which were tagged
before.[Defined:fcplib.cmd.tag_intersect] (default: 1)
Choices:
0
1
--intersect.tag_prefix Tagprefix
Tag prefix for
intersect[Defined:fcplib.cmd.tag_intersect] (default:
None)
--intersect.attribute Atribute
Attribute for
intersect[Defined:fcplib.cmd.tag_intersect] (default:
None)
There are two ways of intersect data. Either tag-intersect-by or views intersect.
fcpc intersect-by <attr> <tagprefix> "A_query" "B_query" ...
Will tag duplicated names within query skyboxhost by linkageduplicated
Will tag duplicated names within query remedy by linkageduplicated
Will tag duplicated names within query ldaphost by linkage:c:duplicated
Next, it tags all objects within first query by linkage:a, second query linkage:b and third query linkage:c
If there are object found with same name within skyboxhost and remedy, they are tagged by linkage:ab
If there are object found with same name within remedy and ldaphost, they are tagged by linkage:bc
You need to define value tag for linkage before.
fcpc --intersect.tag_all=1 intersect-by name linkage/ skyboxhost remedyhost ldaphost
fcpc search + tag=linkage:a not_tag=linkage:ac,linkage:ab
fcpc search + tag=linkage:ab
fcpc search + tag=linkage:ab,linkage:ac
fcpc --intersect.query=skyboxhost --intersect.query=remedyhost --intersect.query=ldaphost --intersect.tag_prefix=linkage/ --intersect.attribute=name views execute intersect
fcpc --intersect.runqueries=0 --intersect.tag_prefix=linkage/ --intersect.attribute=name views execute intersect