Skip to content

Pantavisor Commands

Pantavisor commands at run time. It enables communication between the containers and Pantavisor.

The following subsections describe the behaviour of the commands, how to test them using our pvtoolbox tools, and the expected format from the socket endpoint.

Upload metadata

A metadata pair can be send from Pantavisor to Pantahub from your container at any time.

To test it, you can use the pvmeta command, changing KEY and VALUE with the metadata pair you want to send:

pvmeta update KEY=VALUE

The format of the command that has to be sent to /pantavisor/pv-ctrl socket is:

3 {"op":"UPDATE_METADATA","payload":{"KEY":"VALUE"}}"

Reboot

A device reboot can be performed with this command. This command will be ignored if a new revision of the device is being installed or tested.

To test this command, you can use the pvreboot command, with an optional message that will be displayed in Pantavisor log:

pvreboot "optional message"

The format of the command that is sent to /pantavisor/pv-ctrl socket is:

3 "{"op":"REBOOT_DEVICE","payload":"optional message"}

Power Off

A device poweroff can be performed with this command. This command will be ignored if a new revision of the device is being installed or tested.

To test this command, you can use the pvpoweroff command, with an optional message that will be displayed in Pantavisor log:

pvpoweroff "optional message"

The format of the command that is sent to /pantavisor/pv-ctrl socket is:

3 "{"op":"POWEROFF_DEVICE","payload":"optional message"}