poc
Commands to manipulate PoCs and devices
poc bulk poweroff
Poweroff all devices.
poc bulk poweron
Power on all devices.
poc bulk shutdown
poc bulk shutdown <KILL_TIMEOUT>
Shutdown all devices, poweroff when kill_timeout second is reached (0: default no poweroff)
poc clone
poc clone <POC> <NAME>
poc config purge
poc config purge <POC>
Purge config files not associated to any device in the poc.
poc controlled launch
poc controlled launch <POC>
poc device config list
poc device config list <DEVICE>
poc device config load
poc device config load <DEVICE> <CONF>
poc device list
List running PoC devices.
poc device poweroff
poc device poweroff <DEVICE>
Power-off device in the running PoC (kill VM process).
Danger
may corrupt disks
poc device rebuild
poc device rebuild <DEVICE>
Rebuild device in the running PoC.
Warning
any modification done to the device is lost.
poc eject
Eject the running PoC.
poc evoke import
poc evoke import <FILENAME> <ARGS>+
Create PoC from an Evoke YAML description.
File must be stored in the local repository.
- options:
–overwrite: to erase existing poc with same name
poc hwaddr cleanup
poc hwaddr cleanup <POC> <HWADDR>
When importing in labsetup FortiPoC, OUI is on 4 bytes, that may lead to HWADDR conflict. This command allows to reassign new unique HWADDR to all ports.
Warning
original HWADDRs are lost except for manual HWADDR that are left unchanged.
poc import
Import a poc from stdin.
poc list
List defined PoCs.
poc local import
poc local import <FILENAME>
poc network connect
poc network connect <NETNAME> <PRTNAME>
Connect a port to a network, “poc<NUMBER>” name for network name and the “prt<ID>” name for device’s link
poc network disconnect
poc network disconnect <PRTNAME>
Disconnect a device’s link from the network, use the “prt” name
poc network list
List running poc’s networks
poc prefetch
poc prefetch <POC>
Prefetch a specific poc PoC by index (see poc list
) or
all
for all PoCs.
poc repository define
poc repository define <POC> <REFRESH>
Define a PoC from the repository definition, when you refresh an
existing PoC (as named in the PoC), the actual PoC is
destroyed (including its resources). Use poc repository
list
to get list of available PoCs.
Ex:
poc repository define 1
poc repository define poc/two-networks.fpoc refresh
poc repository list
List PoCs available in repositories.
poc set boot
poc set boot <POC> <STATE> <DEVICES>+
Change “Start on FortiPoC boot” state of devices in the poc
poc set launch
poc set launch <POC> <STATE> <DEVICES>+
Change “Start on PoC run” state of devices in the poc
poc validate fpoc
Danger
DO NOT USE !
Internal test command to a fpoc from stdin, decode and encode on stdout.