From 127c142c0ba39c037ac6df1d8fabd8148956f114 Mon Sep 17 00:00:00 2001 From: wyc <1104749580@qq.com> Date: Thu, 6 Aug 2026 11:08:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/rsync.bash | 38 ++++++++++++++++++++++++++++++ doc/异地组网配置文件.md | 52 +++++++++++++++++------------------------ 2 files changed, 60 insertions(+), 30 deletions(-) create mode 100644 doc/rsync.bash diff --git a/doc/rsync.bash b/doc/rsync.bash new file mode 100644 index 0000000..f4f300f --- /dev/null +++ b/doc/rsync.bash @@ -0,0 +1,38 @@ +source_dir="/c/tiles/" +destination="/home/heco/tiles/" +targets=( + "202 王家山|192.168.101.7|35024" + "203 灵山岛|192.168.101.7|35022" + # "204 乳山口|192.168.204.116|22" + # "215 沙子口2|192.168.215.116|22" + # "208 烟台宜尚|192.168.208.116|22" +) +test -d "$source_dir" || { + echo "源目录不存在:$source_dir" >&2 + exit 1 +} +for target in "${targets[@]}"; do + IFS='|' read -r name host port <<<"$target" + echo "========== 开始传输:$name,$host:$port ==========" + ssh -p "$port" \ + -o ConnectTimeout=15 \ + -o ServerAliveInterval=30 \ + -o ServerAliveCountMax=10 \ + "heco@$host" \ + "command -v rsync >/dev/null && mkdir -p '$destination'" || { + echo "连接失败或远端没有安装 rsync:$name" >&2 + continue + } + rsync -rtvh \ + --partial \ + --partial-dir=.rsync-partial \ + --info=progress2 \ + -e "ssh -p $port -o ConnectTimeout=15 -o ServerAliveInterval=30 -o ServerAliveCountMax=10" \ + "$source_dir" \ + "heco@$host:$destination" + if [ "$?" -eq 0 ]; then + echo "========== 传输完成:$name ==========" + else + echo "========== 传输失败:$name ==========" >&2 + fi +done diff --git a/doc/异地组网配置文件.md b/doc/异地组网配置文件.md index bafd2d0..3e9bc14 100644 --- a/doc/异地组网配置文件.md +++ b/doc/异地组网配置文件.md @@ -1,10 +1,9 @@ # 物理专线 -116:22(ssh) 192.168.101.7:35024 -116:10003 192.168.101.7:35025 +116:22 (ssh) 192.168.101.7:35024 116:10003 192.168.101.7:35025 | 202 王家山(王台山) | 物理专线 PTN | 端口映射 | -| -------------------- | ------------------------------- | ----------------------------------- | +|----------------------|---------------------------------|-------------------------------------| | 电源管理TCPServer | 192.168.202.235:12345 | | | Radarcape | http://192.168.202.113/map.html | http://192.168.101.7:35027/map.html | | Radarcape:10003 | 192.168.202.113:10003 | 192.168.101.7:35027 | @@ -12,11 +11,10 @@ | Ecape:ADS-B | http://192.168.202.116:9081/map | http://192.168.101.7:35039/map | | Ecape:10003 | 192.168.202.116:10003 | 192.168.101.7:35025 | -116:22(ssh) 192.168.101.7:35022 -116:10003 192.168.101.7:35023 +116:22 (ssh) 192.168.101.7:35022 116:10003 192.168.101.7:35023 | 203 灵山岛 | 物理专线 PTN | 端口映射 | -| ----------------- | ------------------------------- | ------------------------------ | +|-------------------|---------------------------------|--------------------------------| | 电源管理TCPServer | ~~192.168.203.235:12345~~ | | | Radarcape | http://192.168.203.113/map.html | | | Radarcape:10003 | 192.168.203.113:10003 | 192.168.101.7:35029 | @@ -24,20 +22,16 @@ | Ecape:ADS-B | http://192.168.203.116:9081/map | http://192.168.101.7:35038/map | | Ecape:10003 | 192.168.203.116:10003 | 192.168.101.7:35023 | - - # 异地组网 -抚顺路服务端:PepLink ES-1201 加密数据200Mb/S -厂家建议型号:PepLink ES-5201 加密数据300Mb/S +抚顺路服务端:PepLink ES-1201 加密数据200Mb/S 厂家建议型号:PepLink ES-5201 加密数据300Mb/S 中心端: http://192.168.101.1 -账密:admin/admin -虚拟IP:10.5.0.1:6098 +账密:admin/admin 虚拟IP:10.5.0.1:6098 | 214 **乳山口**(还没换现在是204) | 虚拟IP:**10.5.0.2** | -| --------------------------------- | ------------------------------------------- | +|-----------------------------------|---------------------------------------------| | SD-WAN | http://192.168.214.1(192.168.1.102) | | 组网管理 | http://120.224.100.134:10000/ | | 电源管理TCPServer | 192.168.214.235:12345 | @@ -47,7 +41,7 @@ http://192.168.101.1 | Ecape:10003 | 192.168.204.116:10003 | | 205 沙子口(崂山顶) | 虚拟IP:10.5.0.3 | -| -------------------- | ------------------------------------------- | +|----------------------|---------------------------------------------| | SD-WAN | http://192.168.205.1(192.168.1.103) | | 电源管理TCPServer | 192.168.215.235:12345 | | Radarcape | http://192.168.205.113/map.html | @@ -55,28 +49,26 @@ http://192.168.101.1 | Ecape:ADS-B | http://192.168.205.116:9081/map | | Ecape:10003 | 192.168.205.116:10003 | -| 215 沙子口(崂山顶) | 虚拟IP:10.5.0.3 | -| -------------------- | ------------------------------------------- | -| SD-WAN | http://192.168.215.1(192.168.1.103) | -| 电源管理TCPServer | 192.168.215.235:12345 | -| Radarcape | http://192.168.215.113/map.html | -| Ecape:短波段 | http://192.168.215.116:8090/#/home/c1/12000 | -| Ecape:ADS-B | http://192.168.215.116:9081/map | -| Ecape:10003 | 192.168.215.116:10003 | +| 215 沙子口(崂山顶)2 | 虚拟IP:10.5.0.3 | +|-----------------------|---------------------------------------------| +| SD-WAN | http://192.168.215.1(192.168.1.103) | +| 电源管理TCPServer | 192.168.215.235:12345 | +| Radarcape | http://192.168.215.113/map.html | +| Ecape:短波段 | http://192.168.215.116:8090/#/home/c1/12000 | +| Ecape:ADS-B | http://192.168.215.116:9081/map | +| Ecape:10003 | 192.168.215.116:10003 | -208 烟台宜尚 -虚拟IP:10.5.0.4 -SD-WAN:192.168.208.1 +208 烟台宜尚 虚拟IP:10.5.0.4 SD-WAN:192.168.208.1 # 电源管理 1. 安装异地组网客户端:`迅博sdwan客户端_v8.22.zip`。 2. 使用配置文件接入网络。 3. 打开TCP助手,进行电源管理 - - 选择TCP Client - - 远程主机地址及端口号填写,电源TCPServer。比如192.168.215.235:12345 - - 发送ASCII带回车换行符 - - 开启设备电源:`AT+STACH0=0` - - 关闭设备电源:`AT+STACH0=1` + - 选择TCP Client + - 远程主机地址及端口号填写,电源TCPServer。比如192.168.215.235:12345 + - 发送ASCII带回车换行符 + - 开启设备电源:`AT+STACH0=0` + - 关闭设备电源:`AT+STACH0=1`   \ No newline at end of file