gates / gates (push) Successful in 2m2s
Read-only review of every job on a timer and of everything that ends on a date, with measurements from the three test boxes. Nothing ends in the next 14 days. Register 236 -> 245 (R-1379..R-1387), pointer lines on twelve rows, D76-D79 in STATUS.md. Part C: felhom-agent's clone address holds no token now; the other clones wait for the operator's yes. R-1035's 4-week check moved to 2026-11-18 (operator read needed). Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
22 lines
3.1 KiB
Bash
22 lines
3.1 KiB
Bash
#!/bin/bash
|
|
# Clock list 2026-11-11 — guest 9201. READ-ONLY: date, systemctl list/show/cat, cron files, atq, docker ps/logs (read).
|
|
set -u
|
|
M() { sed -E 's/((token|password|passwd|secret|apikey|api_key|authorization)[=: ]+)[^ ,;"]+/\1***/Ig'; }
|
|
h() { echo; echo "=== $* ==="; }
|
|
h "clock"; date -u +'utc %FT%T.%NZ'; date +'local %FT%T %Z %z'; cat /etc/timezone 2>/dev/null; readlink /etc/localtime; timedatectl 2>&1 | head -8
|
|
for u in chrony systemd-timesyncd; do printf '%s: ' $u; systemctl is-active $u 2>/dev/null; done
|
|
h "boots"; uptime -s
|
|
h "timers"; systemctl list-timers --all --no-pager
|
|
h "timer units (all)"; for t in $(systemctl list-unit-files --type=timer --no-legend --no-pager | awk '{print $1}'); do echo "--- $t [$(systemctl is-enabled $t 2>/dev/null)/$(systemctl is-active $t 2>/dev/null)]"; systemctl cat $t 2>/dev/null | /usr/bin/grep -E '^(On|Persistent|RandomizedDelay|AccuracySec|Unit)'; systemctl show $t -p LastTriggerUSec -p NextElapseUSecRealtime -p Unit 2>/dev/null | tr '\n' ' '; echo; done
|
|
h "felhom units"; systemctl list-units --all --no-pager --no-legend 'felhom*' | awk '{print $1,$2,$3,$4}'
|
|
for s in $(systemctl list-unit-files --no-legend --no-pager 'felhom*.service' | awk '{print $1}'); do echo "--- $s"; systemctl show $s -p Restart -p RestartUSec -p TimeoutStartUSec -p Type -p ActiveEnterTimestamp -p NRestarts 2>/dev/null | tr '\n' ' '; echo; done
|
|
h "cron"; /usr/bin/grep -v -E '^\s*(#|$)' /etc/crontab 2>/dev/null | M; for f in /etc/cron.d/*; do [ -f "$f" ] && { echo "--- $f"; /usr/bin/grep -v -E '^\s*(#|$)' "$f" | M; }; done; for d in hourly daily weekly monthly; do echo "--- cron.$d: $(ls /etc/cron.$d 2>/dev/null | tr '\n' ' ')"; done
|
|
echo "--- user crontabs: $(ls /var/spool/cron/crontabs 2>/dev/null | tr '\n' ' ')"
|
|
h "at"; command -v atq >/dev/null && atq 2>&1 || echo "no at"
|
|
h "docker daemon timers"; /usr/bin/grep -v -E '^\s*$' /etc/docker/daemon.json 2>/dev/null | M
|
|
h "containers"; docker ps -a --format '{{.Names}}\t{{.Image}}\t{{.Status}}\t{{.RunningFor}}'
|
|
h "restart policies + healthcheck intervals"; for c in $(docker ps -q); do docker inspect --format '{{.Name}} restart={{.HostConfig.RestartPolicy.Name}} health={{if .Config.Healthcheck}}{{.Config.Healthcheck.Interval}}{{else}}none{{end}} started={{.State.StartedAt}}' $c; done
|
|
h "controller TZ"; docker exec felhom-controller sh -c 'printf "TZ=%s\n" "${TZ:-unset}"' 2>&1; docker exec felhom-controller date +'in-container %FT%T %Z %z' 2>&1
|
|
h "controller log: first line, line count per hour"; docker logs --timestamps felhom-controller 2>&1 | head -1 | cut -c1-200 | M; docker logs --timestamps --since 30h felhom-controller 2>&1 | cut -c1-13 | sort | uniq -c | tr '\n' ' '
|
|
h "controller log: schedule words (tail 320)"; docker logs --timestamps --since 72h felhom-controller 2>&1 | /usr/bin/grep -i -E 'schedul|night|backup (start|finish|complet|done|fail)|dump|restic|snapshot|prune|offbox|off-site|offsite|second.?drive|window|slot|missed|catch.?up|restore.?test|report (sent|fail)|heartbeat|sync(ed|ing)? |update check|self.?update|clock|skew|deadline|timed out|timeout|cron' | /usr/bin/grep -v -i -E 'GET /|POST /' | cut -c1-240 | M | tail -320
|