Skip to main content
Version: v1.1

aos-prov

Aos CLI Tool aos-prov is the unit provisioning tool using gRPC protocol.

The tool can:

  • provision a Unit
  • create, remove, and start VM group Units
  • create and provision new VM group Units in one step
  • add or remove dynamical nodes to VM group Units
  • download images
  • check version information
sub-command, optiondescription
-V, --versionShows installed version.
-h, --helpShows general help or help for a selected command.
provisionProvisions a Unit.
vm-newCreates a new VMs group Unit.
vm-removeRemoves the VMs group Unit.
vm-startStarts the VMs group Unit.
unit-newCreates and provisions a new VMs group Unit.
unit-node-addAdds dynamical node to the already presented VMs group Unit.
unit-node-removeRemoves dynamical node from the already presented VMs group Unit. Only "secondary-N" nodes can be removed.
downloadDownloads image.
check-versionChecks current version and latest available version.

-V, --version

Shows installed version.

~/.aos/venv/Scripts/python -m aos_prov -V

-h, --help

Shows general help or help for a selected command.

~/.aos/venv/Scripts/python -m aos_prov -h
~/.aos/venv/Scripts/python -m aos_prov provision -h

provision

Provision a Unit.

provision [-h] [-u UNIT] [-p PKCS] [--register-port REGISTER_PORT] [-w N] [--nodes NODES] [--skip-check-version] [--retry-count RETRY_COUNT] [--retry-delay RETRY_DELAY] [--check-software]
OptionsRequiredDescriptionDefault
-u, --unitUnit address in format IP_ADDRESS or IP_ADDRESS:PORT (e.g., "localhost:8089")
-p, --pkcs12Path to user certificate in pkcs12 format~/.aos/security/aos-user-oem.p12
--register-portCloud port10000
-w, --wait-unitWait for unit to respond for the first time in seconds0
--nodesCount of nodes for the VMs group Unit2
--retry-countNumber of retries for Cloud operations5
--retry-delayDelay between retries in seconds5.0
--check-softwareChecking for current software version supportFalse
--skip-check-versionSkip checking for newest version of the package
~/.aos/venv/Scripts/python -m aos_prov provision

vm-new

Create a new VMs group Unit.

vm-new [-h] -N NAME [-D DISK] [--nodes NODES] [--skip-check-version]
OptionsRequiredDescriptionDefault
-N, --name+Name of the VMs group Unit
-D, --diskFull path to the AosCore-powered disk
--nodesCount of nodes for the VMs group Unit2
--skip-check-versionSkip checking for newest version of the package
~/.aos/venv/Scripts/python -m aos_prov vm-new -N [NAME]

vm-remove

Remove the VMs group Unit.

vm-remove [-h] -N NAME [--skip-check-version]
OptionsRequiredDescriptionDefault
-N, --name+Name of the VMs group Unit
--skip-check-versionSkip checking for newest version of the package
~/.aos/venv/Scripts/python -m aos_prov vm-remove -N [NAME]

vm-start

Start the VMs group Unit.

vm-start [-h] -N NAME [-H] [--skip-check-version]
OptionsRequiredDescriptionDefault
-N, --name+Name of the VMs group Unit
-H, --headlessStart the VMs group Unit in headless mode
--skip-check-versionSkip checking for newest version of the package
~/.aos/venv/Scripts/python -m aos_prov vm-start -N [NAME]

unit-new

Create and provision a new VMs group Unit.

unit-new [-h] -N NAME [--disk DISK] [--nodes NODES] [-H] [-w N] [-p PKCS] [--skip-check-version] [--retry-count RETRY_COUNT] [--retry-delay RETRY_DELAY] [--check-software]
OptionsRequiredDescriptionDefault
-N, --name+Name of the VMs group Unit
--diskFull path to the AosCore-powered disk
--nodesCount of nodes for the Unit2
-H, --headlessStart created VMs group Unit in headless mode
-w, --wait-unitWait for the Unit to respond in seconds300
-p, --pkcs12Path to user certificate in pkcs12 format~/.aos/security/aos-user-oem.p12
--retry-countNumber of retries for Cloud operations5
--retry-delayDelay between retries in seconds5.0
--check-softwareChecking for current software version supportFalse
--skip-check-versionSkip checking for newest version of the package
~/.aos/venv/Scripts/python -m aos_prov unit-new -N [NAME]

unit-node-add

Add dynamical node to the already presented VMs group Unit.

unit-node-add [-h] -N NAME --disk DISK [-S [START]] [-H] [--skip-check-version]
OptionsRequiredDescriptionDefault
-N, --name+Name of the VMs group Unit
--disk+Full path to the AosCore-powered dynamical disk
-S, --startStart Node of the VMs group UnitTrue
-H, --headlessStart Node of the VMs group Unit in headless mode
--skip-check-versionSkip checking for newest version of the package
~/.aos/venv/Scripts/python -m aos_prov unit-node-add -N [NAME] --disk [DISK_PATH]

unit-node-remove

Remove dynamical node from the already presented VMs group Unit. Only "secondary-N" nodes can be removed.

unit-node-remove [-h] -N NAME --node NODE [-r [REBOOT]] [--skip-check-version]
OptionsRequiredDescriptionDefault
-N, --name+Name of the VMs group Unit
--node+Node of the VMs group Unit (starts with "secondary")
-r, --rebootReboot all nodes into VM GroupTrue
--skip-check-versionSkip checking for newest version of the package
~/.aos/venv/Scripts/python -m aos_prov unit-node-remove -N [NAME] --node [NODE_NAME]

download

Download image.

download [-h] [-a DOWNLOAD_ADDRESS] [-f] [--skip-check-version]
OptionsRequiredDescriptionDefault
-a, --addressAddress to download image
-f, --forceForce overwrite existing file
--skip-check-versionSkip checking for newest version of the package
~/.aos/venv/Scripts/python -m aos_prov download

check-version

Check current version and latest available version.

check-version [-h]
~/.aos/venv/Scripts/python -m aos_prov check-version