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
left
{~referenced-by,~GCore,~is-related,~Missing,~missing,~is-owner,~managed-by,~gdependant-of,~in-is,~dependant-of,~is-on,~is-patched-by,~owned-by,~gcore,~greferenced-by,~refers,~gis-related,~is-admin,~gdepends,~is-vulnerable-by,~grefers,~is-dns-server-of,~is-in,~depends,~is,~is-dns-client-of,~contains,~on-is}
right [attributes ...]
positional arguments:
left Left object type to link
{~referenced-by,~GCore,~is-related,~Missing,~missing,~is-owner,~managed-by,~gdependant-of,~in-is,~dependant-of,~is-on,~is-patched-by,~owned-by,~gcore,~greferenced-by,~refers,~gis-related,~is-admin,~gdepends,~is-vulnerable-by,~grefers,~is-dns-server-of,~is-in,~depends,~is,~is-dns-client-of,~contains,~on-is}
Type of the link
Choices:
~referenced-by
~GCore
~is-related
~Missing
~missing
~is-owner
~managed-by
~gdependant-of
~in-is
~dependant-of
~is-on
~is-patched-by
~owned-by
~gcore
~greferenced-by
~refers
~gis-related
~is-admin
~gdepends
~is-vulnerable-by
~grefers
~is-dns-server-of
~is-in
~depends
~is
~is-dns-client-of
~contains
~on-is
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