usage: fcpc link [-h]
left
{~gcore,~is-dns-client-of,~is,~is-owner,~remediated-by,~is-dns-server-of,~grefers,~gdepends,~Missing,~greferenced-by,~impacts,~refers,~referenced-by,~on-is,~in-is,~contains,~depends,~owned-by,~gdependant-of,~CCore,~missing,~remediates,~is-on,~is-related,~managed-by,~is-in,~ccore,~GCore,~is-admin,~has-vulnerability,~gis-related}
right [attributes ...]
positional arguments:
left Left object type to link
{~gcore,~is-dns-client-of,~is,~is-owner,~remediated-by,~is-dns-server-of,~grefers,~gdepends,~Missing,~greferenced-by,~impacts,~refers,~referenced-by,~on-is,~in-is,~contains,~depends,~owned-by,~gdependant-of,~CCore,~missing,~remediates,~is-on,~is-related,~managed-by,~is-in,~ccore,~GCore,~is-admin,~has-vulnerability,~gis-related}
Type of the link
Choices:
~gcore
~is-dns-client-of
~is
~is-owner
~remediated-by
~is-dns-server-of
~grefers
~gdepends
~Missing
~greferenced-by
~impacts
~refers
~referenced-by
~on-is
~in-is
~contains
~depends
~owned-by
~gdependant-of
~CCore
~missing
~remediates
~is-on
~is-related
~managed-by
~is-in
~ccore
~GCore
~is-admin
~has-vulnerability
~gis-related
right Right object type to link
attributes Attributes in form attribute=value [attribute=value]
to add (default: None)
optional arguments:
-h, --help show this help message and exit
fcpc link leftobj "~link" rightobj
fcpc add person/somebody name="Person"
fcpc add person/someone name="Person2"
fcpc add host/somehost name="Host"
fcpc link person/somebody "~is-owner" host/somehost
fcpc link person/someone "~is-admin" host/somehost
¶ To link host and interfaces
fcpc add host/fw name="Firewall"
fcpc add l2interface/fw_eth0 name="Eth0 on Firewall" mac="00:a0:b0:c0:d0:e0"
fcpc add l2interface/fw_eth1 name="Eth1 on Firewall" mac="10:a0:b0:c0:d0:e0"
fcpc add l3interface/fw_eth0 name="Eth0 on Firewall" ip="192.168.1.1"
fcpc add l3interface/fw_eth1 name="Eth1 on Firewall" ip="192.168.200.1"
fcpc link l2interface/fw_eth0 "~is-on" host/fw
fcpc link l2interface/fw_eth1 "~is-on" host/fw
fcpc link l3interface/fw_eth0 "~is-on" host/fw
fcpc link l4interface/fw_eth1 "~is-on" host/fw
fcpc add host/fw name="Firewall"
fcpc add QualysHost/fw name="Firewall"
fcpc link host/fw "~is" QualysHost/fw