Wiki source code of Delete devices from Build-in Server
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
12.1 | 1 | (% class="wikigeneratedid" %) |
![]() |
14.2 | 2 | **Table of Contents:** |
![]() |
12.1 | 3 | |
4 | {{toc/}} | ||
5 | |||
![]() |
14.2 | 6 | |
7 | |||
8 | |||
![]() |
8.2 | 9 | = 1. Upgrade LPS8v2's TTS to HTTPS = |
10 | |||
11 | |||
![]() |
8.4 | 12 | (% style="color:blue" %)**1). Download the upgrade script** |
![]() |
8.2 | 13 | |
14 | wget http:~/~/repo.dragino.com/release/tool/ttnstack/upgrade_to_https.sh && chmod +x upgrade_to_https.sh | ||
15 | |||
16 | [[image:1690793819929-828.png]] | ||
17 | |||
18 | |||
![]() |
8.4 | 19 | (% style="color:blue" %)**2). Run the upgrade script** |
![]() |
8.2 | 20 | |
21 | ./upgrade_to_https.sh <step> <Local Ip Address> | ||
22 | |||
23 | [[image:1690793801312-653.png]] | ||
24 | |||
25 | |||
26 | (% style="color:red" %)**Note that:** | ||
27 | |||
28 | parameter 1 tells the script which steps it should start from. | ||
29 | |||
30 | parameter 2 is the configured local IP address. | ||
31 | |||
32 | |||
![]() |
8.4 | 33 | (% style="color:blue" %)**3). Check the TTS running status** |
![]() |
8.2 | 34 | |
35 | [[image:1690793877462-490.png]] | ||
36 | |||
37 | |||
38 | = 2. Install ttn-lw-cli = | ||
39 | |||
![]() |
12.2 | 40 | == 2.1 Download ttn-lw-cli == |
![]() |
8.2 | 41 | |
42 | |||
43 | [[https:~~/~~/www.thethingsindustries.com/docs/the-things-stack/interact/cli/installing-cli/#installing-using-pre-built-binaries>>url:https://www.thethingsindustries.com/docs/the-things-stack/interact/cli/installing-cli/#installing-using-pre-built-binaries]] | ||
44 | |||
45 | [[image:1690794001186-556.png]] | ||
46 | |||
47 | |||
48 | (% style="color:blue" %)**Login the lps8v2's tts via ttn-lw-cli** | ||
49 | |||
50 | [[image:1690794013040-498.png]] | ||
51 | |||
52 | |||
53 | (% style="color:blue" %)**Node:** | ||
54 | |||
55 | You need to configure a ca certificate for the cli, The ca certificate is inside the gateway and the directory path is : /usr/lib/ttn-stack/ca.pem | ||
56 | |||
57 | Manually modify the ttn-lw-cli configuration file .ttn-lw-cli.yml: | ||
58 | |||
![]() |
14.2 | 59 | [[image:image-20231106140006-2.png||height="509" width="823"]] |
![]() |
8.2 | 60 | |
61 | |||
62 | (% style="color:blue" %)**ttn-lw-cli directory tree structure:** | ||
63 | |||
![]() |
14.2 | 64 | [[image:image-20231106135912-1.png]] |
![]() |
8.2 | 65 | |
66 | |||
![]() |
12.2 | 67 | == 2.2 Delete End node == |
![]() |
8.2 | 68 | |
![]() |
12.2 | 69 | |
![]() |
8.2 | 70 | [[image:1690794073644-821.png]] |
![]() |
12.1 | 71 | |
72 | |||
73 | = 3. Delete devices from built-in ChirpStack = | ||
74 | |||
75 | |||
76 | Users need to access the Linux console of the gateway through SSH, and then enter the following command to clear the built-in ChirpStack: | ||
77 | |||
78 | (% class="box infomessage" %) | ||
79 | ((( | ||
![]() |
12.2 | 80 | **cd /usr/local/chirpstack/** |
![]() |
12.1 | 81 | |
![]() |
12.2 | 82 | **systemctl stop chirpstack** |
![]() |
12.1 | 83 | |
![]() |
12.2 | 84 | **docker-compose down** |
![]() |
12.1 | 85 | ))) |
86 | |||
87 | [[image:image-20231106094833-2.png]] | ||
88 | |||
89 | |||
90 | (% class="box infomessage" %) | ||
91 | ((( | ||
![]() |
12.2 | 92 | **docker volume rm chirpstack_postgresqldata** |
![]() |
12.1 | 93 | |
![]() |
12.2 | 94 | **docker volume rm chirpstack-redisdata** |
![]() |
12.1 | 95 | ))) |
96 | |||
97 | [[image:image-20231106095035-3.png]] | ||
98 | |||
99 | |||
![]() |
12.2 | 100 | **Re-run ChirpStack** |
![]() |
12.1 | 101 | |
102 | (% class="box infomessage" %) | ||
103 | ((( | ||
![]() |
12.2 | 104 | **systemctl start chirpstack** |
![]() |
12.1 | 105 | ))) |
106 | |||
107 |