forked from industrial-edge/iectl-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
activate-ied.sh
26 lines (20 loc) · 962 Bytes
/
activate-ied.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Device Configuration variables
export DEVICE_USER="<ied-username>" # User name of the Edge device
export DEVICE_PASSWORD="<ied-password>" # Password for the Edge device
export DEVICE_URL="<ied-url>" # Edge device URL before onboarding
# IECTL environmental variables
export IE_SKIP_CERTIFICATE=true # Skips certificate check - do this in trusted environment only!
export EDGE_SKIP_TLS=1 # Disable TLS verification
# Project environmental variables
export PROJECT_PATH_PREFIX="<project-path-prefix>" # Prefix of the absolute path where the project is inside of your development environment
cd workspace
iectl publisher workspace init
# Creating Edge Device configuration
iectl config add ied \
--name "device-config-dev" \
--url $DEVICE_URL \
--user $DEVICE_USER \
--password $DEVICE_PASSWORD
# Activating device in IEM
iectl ied system activate \
--files "$PROJECT_PATH_PREFIX/onboarding-file/device.txt"