forked from industrial-edge/iectl-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
activate-iem.sh
27 lines (23 loc) · 973 Bytes
/
activate-iem.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
# Set configuration variables
export HUB_USER="<hub-email>" # Email of the user with API access granted
export HUB_API_KEY="<hub-api-key>" # HUB API key
export IEM_USER="<iem-email>" # Email adress of the IEM user
export IEM_PASSWORD="<iem-password>" # Password of the IEM user
export IEM_URL="https://<iem-ip>" # IP adress of the IEM before activating (Use without port 9443)
export IEM_NAME="<iem-name>" # Name of your IEM instance
export IEM_COMMON_NAME="<iem-common-name>" # IEM common name
# Set environmental variables
export EDGE_SKIP_TLS=1
# Configuration for IE HUB
iectl config add iehub \
--name "configname" \
--url "https://iehub.eu1.edge.siemens.cloud/" \
--user $HUB_USER \
--password $HUB_API_KEY
# Activate IEM in HUB
iectl iem system onboard \
--username $IEM_USER \
--password $IEM_PASSWORD \
--iem-url $IEM_URL \
--cn $IEM_COMMON_NAME \
--name $IEM_NAME \