provision_new_scs - bruno-beloff/scs_mfr GitHub Wiki

docs > software repositories > scs_mfr > commands > configuration


DESCRIPTION

The provision_new_scs utility is used to configure a device, together with its AWS Greengrass presence. This utility should be run as the scs user, the provision_new_root utility should be run simultaneously as the root user.

The project location ID may be an integer or an alphanumeric string. Alternatively, the location may be the underscore character "_", indicating that the project location ID should be set as the device serial number.

The provision_new_scs utility should only be used for new device tasks. Servicing / update tasks should be configured using the provision_service_scs utility.

SYNOPSIS

provision_new_scs.py -i INVOICE -p ORG GROUP LOCATION [-f] [-g DEVICE_GENUS] [-u] [{ -a AFE | -d DSI DATE }] [-c] [-s PSU_MODEL] [-m MODEL_MAP] [-t TIMEZONE] [-x] [-v]

Options
--version show program's version number and exit
-h, --help show this help message and exit
-i INVOICE_NUMBER, --invoice-number=INVOICE_NUMBER invoice number
-p PROJECT, --project=PROJECT AWS project (LOCATION may be '_')
-f, --force do not check for pre-existing topics
-g DEVICE_GENUS, --device-genus=DEVICE_GENUS device group / model
-u, --upgrade-pips upgrade pip and requests
-a AFE_SERIAL, --afe-serial=AFE_SERIAL AFE serial number
-d DSI, --dsi=DSI DSI serial number and YYYY-MM-DD
-c, --co2-scd30 SCD30 is present
-s PSU_MODEL, --psu-model=PSU_MODEL PSU model { MobileV1 | MobileV2 | OPCubeV1 | OPCubeV1.1 | OsloV1 | PrototypeV1 }
-m MODEL_MAP, --model-map=MODEL_MAP model map { oE.1 | oM.2 | uE.1 } (default uE.1 / oE.1)
-t TIMEZONE, --timezone=TIMEZONE timezone name
-x, --exclude-tests do not perform OS checks or hardware tests
-v, --verbose report narrative to stderr

EXAMPLES

./provision_new_scs.py -v -i INV-0000 -p south-coast-science-dev development _ -a 26-000345 -m OPCubeV1

SEE ALSO

scs_mfr/provision_new_root
scs_mfr/provision_service_scs