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 list

poc config list <POC>

List config files from the poc.

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 delete

poc delete <POC>

Delete poc PoC

poc device config list

poc device config list <DEVICE>

poc device config load

poc device config load <DEVICE> <CONF>

poc device console

poc device console <DEVICE>

Connect to device serial console

poc device license

poc device license <DEVICE>

Reload device license.

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 poweron

poc device poweron <DEVICE>

Power-on (start) device in the running PoC.

poc device rebuild

poc device rebuild <DEVICE>

Rebuild device in the running PoC.

Warning

any modification done to the device is lost.

poc device shutdown

poc device shutdown <DEVICE>

Gracefully shutdown device in the running PoC.

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 export fpoc

poc export fpoc <POC> <CONTENT>

Print saving export format.

poc export json

poc export json <POC> <OPTIONS>+

Print internal PoC export format for tool.

poc export unittest

poc export unittest <POC>

Do NOT use (export a poc for unittest)

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 launch

poc launch <POC>

Launch a PoC.

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 down

poc network down <NETWORKS>+

Set a network down

poc network list

List running poc’s networks

poc network restart

poc network restart <NETWORKS>+

Restart PoC network(s) or all if ‘*’ specified

poc network up

poc network up <NETWORKS>+

Set a network up

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.