docs: converge trans shell examples
This commit is contained in:
+11
-11
@@ -8,18 +8,18 @@ Use UniDesk SSH passthrough for PK01 host operations:
|
||||
|
||||
```bash
|
||||
trans PK01 argv hostname
|
||||
trans PK01 script <<'SCRIPT'
|
||||
trans PK01 sh <<'SH'
|
||||
df -h /
|
||||
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}'
|
||||
SCRIPT
|
||||
SH
|
||||
```
|
||||
|
||||
Before closing an operation, verify both the provider channel and host workload state:
|
||||
|
||||
```bash
|
||||
bun scripts/cli.ts debug health
|
||||
trans PK01 argv bash -lc 'docker inspect --format "name={{.Name}} restart={{.HostConfig.RestartPolicy.Name}} pid={{.HostConfig.PidMode}} state={{.State.Status}} image={{.Config.Image}}" unidesk-provider-gateway-pk01'
|
||||
trans PK01 argv bash -lc 'docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"'
|
||||
trans PK01 sh -- 'docker inspect --format "name={{.Name}} restart={{.HostConfig.RestartPolicy.Name}} pid={{.HostConfig.PidMode}} state={{.State.Status}} image={{.Config.Image}}" unidesk-provider-gateway-pk01'
|
||||
trans PK01 sh -- 'docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"'
|
||||
```
|
||||
|
||||
PK01 has no k3s control plane. `trans PK01:k3s ...` is not an operating truth. If a future PK01 k3s lane is introduced, it must get a separate runtime-lane reference and must not reuse the current pikanode host-data policy as a Kubernetes retention policy.
|
||||
@@ -130,9 +130,9 @@ PK01 has node-local retention controls installed so that pikanode temp output an
|
||||
Operational checks:
|
||||
|
||||
```bash
|
||||
trans PK01 argv bash -lc 'systemctl status unidesk-pk01-pikanode-temp-gc.timer --no-pager'
|
||||
trans PK01 argv bash -lc 'sudo systemctl start unidesk-pk01-pikanode-temp-gc.service && tail -n 40 /var/log/unidesk-pk01/pikanode-temp-gc.log'
|
||||
trans PK01 argv bash -lc 'sudo logrotate -d /etc/logrotate.d/unidesk-pk01-pikanode'
|
||||
trans PK01 sh -- 'systemctl status unidesk-pk01-pikanode-temp-gc.timer --no-pager'
|
||||
trans PK01 sh -- 'sudo systemctl start unidesk-pk01-pikanode-temp-gc.service && tail -n 40 /var/log/unidesk-pk01/pikanode-temp-gc.log'
|
||||
trans PK01 sh -- 'sudo logrotate -d /etc/logrotate.d/unidesk-pk01-pikanode'
|
||||
```
|
||||
|
||||
The timer and logrotate configuration are node-local operational state. If a future UniDesk CLI subcommand manages PK01 retention centrally, it must first render a dry-run plan, show the same protected paths, and then install/update these node-local files through a confirmed operation.
|
||||
@@ -142,10 +142,10 @@ The timer and logrotate configuration are node-local operational state. If a fut
|
||||
PK01 space attribution should use short, bounded commands. Recommended probes:
|
||||
|
||||
```bash
|
||||
trans PK01 argv bash -lc 'df -h / && df -i /'
|
||||
trans PK01 argv bash -lc 'sudo timeout 20 du -xhd1 /var /home/ubuntu/pikanode /home/ubuntu/.vscode-server /var/lib/docker /var/log 2>/dev/null | sort -h | tail -80'
|
||||
trans PK01 argv bash -lc 'docker system df -v | sed -n "1,220p"'
|
||||
trans PK01 argv bash -lc 'sudo find /home/ubuntu/pikanode/html/temp -xdev -mindepth 1 -maxdepth 1 -printf "%TY-%Tm-%Td %TH:%TM %p\n" | sort | tail -40'
|
||||
trans PK01 sh -- 'df -h / && df -i /'
|
||||
trans PK01 sh -- 'sudo timeout 20 du -xhd1 /var /home/ubuntu/pikanode /home/ubuntu/.vscode-server /var/lib/docker /var/log 2>/dev/null | sort -h | tail -80'
|
||||
trans PK01 sh -- 'docker system df -v | sed -n "1,220p"'
|
||||
trans PK01 sh -- 'sudo find /home/ubuntu/pikanode/html/temp -xdev -mindepth 1 -maxdepth 1 -printf "%TY-%Tm-%Td %TH:%TM %p\n" | sort | tail -40'
|
||||
```
|
||||
|
||||
Interpretation guide:
|
||||
|
||||
Reference in New Issue
Block a user