---
# System prepended metadata

title: 20231130 CP ALL 正式佈署專用 (Formal deploy use)
tags: [IEI_IOT, Report]

---

# 20231130 CP ALL 正式佈署專用 (Formal deploy use)
## edgeServer_V2.1.09A7_DB_V1.0.21A0 & DeviceImg_V1.0.19A9
###### tags: `Report` `IEI_IOT`
## version:

| EdgeServerZipName| DEVICE_TAG| EdgeServerAPI_TAG| CONSOLE_TAG |UI_TAG|
| --- | --- | ---  | --- | --- |
| edgeServer_V2.1.09A7_DB_V1.0.21A0 | V1.0.19A9 | V2.1.09A7  | V2.1.08A7 | V2.1.08A6 |

|DBZipName |DB_TAG| DEVIMGZipName|
|---  | --- | --- |
|DB_V1.0.21A0  | V1.0.21A0 | 20231130_CP_V1.0.19A9.zip |

[StationIP](https://hackmd.io/@viyahuang/StationIP)

### Jumper 172.16.2.126
# <font color="red">Deoply Factory or D-Tool Start From HERE</font>
跳板(Jumper Server)
- [ ] Jumper 172.16.2.126

RMA (IEI-8F)

七堵(Factory Qidu) 5F
- [ ]     DB Server 10.9.250.16


七堵(Factory Qidu) 3F

七堵(Factory Qidu) 2F PCBA

QNAP 5F PUZZLE
- [ ]     DB Server 10.29.71.51

### Web Device Tool -更新(Update) Device USB Image Version
跳板(Jumper Server)
- [ ] Jumper 172.16.2.126

七堵(Factory Qidu) 5F

七堵(Factory Qidu) 3F

### Rename: /home/test/release_USB_SD
USB Version check
`cat /home/test/release_USB_SD/releaseNote.txt | grep VersionTarget`

V1.0.19A9

```
sudo ssh admin@10.10.80.56
(pw:888888)

cd /share/Public/CP/SW_ReleaseImg/IEI/production

# Device image version update in make device image PC
## 傳USB檔案至 跳板 & HUB & Factory (pw:8888)
scp -r 20231130_CP_V1.0.19A9.zip.zip test@IP:/home/test/SW_releaseImg

ssh to EdgeServer IP(test/8888)

cd /home/test/release_USB_SD
cp /home/test/SW_releaseImg/20231130_CP_V1.0.19A9.zip.zip ./
rm -rf ./*
unzip ./20231130_CP_V1.0.19A9.zip.zip
```

## Factory and HUB DB 更新(Update), first check support mongo command
### Prepare DB
```
sudo ssh test@172.16.2.126
sudo su
cd /home/test/deployproject/dbDeploy
bash prepare.sh DB_V1.0.21A0.zip V1.0.21A0

```
### PASS DB
#### CP DB
```
# Factory 5F DB
bash pass.sh DB_V1.0.21A0.zip 10.9.250.17 10.9.250.16 27017

# Factory 3F HUB DB
# Factory Zhongli BTC
bash pass.sh DB_V1.0.21A0.zip 10.100.1.8 127.0.0.1 27017

## HUB DB use 127.0.0.1 27017
# Factory 3F HUB
# Israel HUB DB
# US HUB DB
# IEI RMA DB

# you can see the version in DB dbversion collection is tag_commitID
V1.0.21A0_xxxxxxx
```
#### PUZZLE DB
```
# QNAP 5F PUZZLE

bash pass.sh DB_V1.0.21A0.zip 10.29.71.52 10.29.71.51 27017

# you can see the version in DB dbversion collection is tag_commitID
V1.0.21A0_xxxxxxx
```


# <font color="red">SETUP EdgeServer </font>

## Edge Server (FT1/FT2, BI, FT3, D-Tool(HUB) Server)

## use deployProject create zip file step:
## config detail is
### sudo ssh test@172.16.2.126
### cat /home/test/deployproject/edgeServerDeploy/stationIP.json
```
sudo ssh test@172.16.2.126
sudo su
cd /home/test/deployproject/edgeServerDeploy

bash prepare.sh ZIPFILENAME API_TAG/BRANCH CONSOLE_TAG UI_TAG
bash prepare.sh edgeServer_V2.1.09A7_DB_V1.0.21A0.zip V2.1.09A7 V2.1.08A7 V2.1.08A6

```
## use deployProject deploy zip file step:
### zip file in backup folder
### deploy IP: cat backup/config/edgeServer_V2.1.09A7_DB_V1.0.21A0/map.txt
#### CP
```
sudo ssh test@172.16.2.126
sudo su
cd /home/test/deployproject/edgeServerDeploy

bash autoPass.sh edgeServer_V2.1.09A7_DB_V1.0.21A0.zip

# factory 5F

# Factory Zhongli BTC

# RMA

# factory hub

# Israe hub

# US hub

```
#### CP PCBA
```
sudo ssh test@172.16.2.126
sudo su
cd /home/test/deployproject/edgeServerDeploy

# all
bash autoPass.sh edgeServer_V2.1.09A7_DB_V1.0.21A0.zip FactoryPCBA-BT-A.js/FactoryPCBA-BT-B.js/FactoryPCBA-BT-C.js

```
#### PUZZLE
```
sudo ssh test@172.16.2.126
sudo su
cd /home/test/deployproject/edgeServerDeploy

# all
bash autoPass.sh edgeServer_V2.1.09A7_DB_V1.0.21A0.zip FactoryPUZZLE-BI-B.js/FactoryPUZZLE-FT1-TEST1.js
```
# <font color="pink">------ SETUP EdgeServer FINISH ------</font>
