Changes for page Delete devices from Build-in Server
Last modified by Xiaoling on 2023/11/21 09:50
From version 22.2
edited by Xiaoling
on 2023/11/21 09:50
on 2023/11/21 09:50
Change comment:
There is no comment for this version
To version 12.1
edited by Kilight Cao
on 2023/11/06 09:57
on 2023/11/06 09:57
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 7 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Kilight - Content
-
... ... @@ -1,18 +1,11 @@ 1 1 (% class="wikigeneratedid" %) 2 - **Table of Contents :**2 + **Table of Contents:** 3 3 4 4 {{toc/}} 5 5 6 += 1. Upgrade LPS8v2's TTS to HTTPS = 6 6 7 7 8 -= 1. Delete devices from built-in TTS = 9 - 10 - 11 -== Method 1: == 12 - 13 -=== 1.1 Upgrade LPS8v2's TTS to HTTPS === 14 - 15 - 16 16 (% style="color:blue" %)**1). Download the upgrade script** 17 17 18 18 wget http:~/~/repo.dragino.com/release/tool/ttnstack/upgrade_to_https.sh && chmod +x upgrade_to_https.sh ... ... @@ -39,10 +39,10 @@ 39 39 [[image:1690793877462-490.png]] 40 40 41 41 42 -= ==1.2 Install ttn-lw-cli ===35 += 2. Install ttn-lw-cli = 43 43 44 -==== 1.2.1 Download ttn-lw-cli ==== 45 45 38 +== **2.1 Download ttn-lw-cli** == 46 46 47 47 [[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]] 48 48 ... ... @@ -60,65 +60,32 @@ 60 60 61 61 Manually modify the ttn-lw-cli configuration file .ttn-lw-cli.yml: 62 62 63 -[[image: image-20231106140006-2.png||height="509" width="823"]]56 +[[image:1690794039057-792.png]] 64 64 65 65 66 66 (% style="color:blue" %)**ttn-lw-cli directory tree structure:** 67 67 68 -[[image: image-20231106135912-1.png]]61 +[[image:1690794060552-527.png]] 69 69 70 70 71 -== ==1.2.2 Delete End node ====64 +== **2.2 Delete End node** == 72 72 73 - 74 74 [[image:1690794073644-821.png]] 75 75 76 76 77 -== Method 2:Delete devices through the API == 78 78 70 += 3. Delete devices from built-in ChirpStack = 79 79 80 -=== 1.1 Generate API Keys === 81 81 82 -[[image:image-20231120163713-1.png||height="547" width="1060"]] 83 - 84 -[[image:image-20231120163955-2.png||height="545" width="1056"]] 85 - 86 -[[image:image-20231120164209-3.png||height="546" width="1058"]] 87 - 88 - 89 -=== 1.2 Delete End node === 90 - 91 -[[image:image-20231120164944-4.png||height="550" width="1067"]] 92 - 93 -For example, to delete the devices eui-5ce8824bad98531d in the applications 11111: 94 - 95 -Users need to access the Linux console of the gateway through SSH, and then enter the following command 96 - 97 -(% class="box infomessage" %) 98 -((( 99 -curl ~-~-location \ 100 - ~-~-header "Authorization: Bearer NNSXS.XXXXXXXXX" \ 101 - ~-~-request DELETE \ 102 - 'https:~/~/built-in_ttn_IP_Address:8080/api/v3/applications/{Application_ID}/devices/{device_id}' 103 -))) 104 - 105 -[[image:image-20231120165357-5.png]] 106 - 107 -When the command succeeds, the output {} is displayed. 108 - 109 - 110 -= 2. Delete devices from built-in ChirpStack = 111 - 112 - 113 113 Users need to access the Linux console of the gateway through SSH, and then enter the following command to clear the built-in ChirpStack: 114 114 115 115 (% class="box infomessage" %) 116 116 ((( 117 - **cd /usr/local/chirpstack/**77 +cd /usr/local/chirpstack/ 118 118 119 - **systemctl stop chirpstack**79 +systemctl stop chirpstack 120 120 121 - **docker-compose down**81 +docker-compose down 122 122 ))) 123 123 124 124 [[image:image-20231106094833-2.png]] ... ... @@ -126,19 +126,19 @@ 126 126 127 127 (% class="box infomessage" %) 128 128 ((( 129 - **docker volume rm chirpstack_postgresqldata**89 +docker volume rm chirpstack_postgresqldata 130 130 131 - **docker volume rm chirpstack-redisdata**91 +docker volume rm chirpstack-redisdata 132 132 ))) 133 133 134 134 [[image:image-20231106095035-3.png]] 135 135 136 136 137 - **Re-run ChirpStack**97 +Re-run ChirpStack 138 138 139 139 (% class="box infomessage" %) 140 140 ((( 141 - **systemctl start chirpstack**101 +systemctl start chirpstack 142 142 ))) 143 143 144 144
- image-20231106135912-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -84.9 KB - Content
- image-20231106140006-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -292.6 KB - Content
- image-20231120163713-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Kilight - Size
-
... ... @@ -1,1 +1,0 @@ 1 -90.6 KB - Content
- image-20231120163955-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Kilight - Size
-
... ... @@ -1,1 +1,0 @@ 1 -102.8 KB - Content
- image-20231120164209-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Kilight - Size
-
... ... @@ -1,1 +1,0 @@ 1 -129.4 KB - Content
- image-20231120164944-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Kilight - Size
-
... ... @@ -1,1 +1,0 @@ 1 -117.2 KB - Content
- image-20231120165357-5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Kilight - Size
-
... ... @@ -1,1 +1,0 @@ 1 -21.7 KB - Content