$ systemctl is-system-running --wait [rc=0] running $ systemctl --failed --no-legend [rc=0] $ systemctl is-enabled aidecheck.timer dailyaidecheck.timer 2>&1; systemctl list-timers --all --no-legend 2>/dev/null | grep -i aide [rc=1] not-found not-found $ systemctl is-active ttn-firstboot.service; sudo test -f /var/lib/ttn/firstboot.done && echo firstboot.done [rc=0] active firstboot.done $ sudo test -s /boot/grub2/user.cfg && echo user.cfg-OK; G=/boot/grub2; sudo test -f $G/grub.cfg || G=/boot/grub; echo grubdir=$G; sudo grep -c '^\s*set superusers=' $G/grub.cfg [rc=0] user.cfg-OK grubdir=/boot/grub2 1 $ findmnt /tmp [rc=0] TARGET SOURCE FSTYPE OPTIONS /tmp tmpfs tmpfs rw,nosuid,nodev,noexec,relatime,seclabel,inode64 $ if command -v getenforce >/dev/null; then getenforce; else sudo aa-status --enabled && echo apparmor-enabled; sudo aa-status 2>/dev/null | head -4; fi [rc=0] Enforcing $ if command -v firewall-cmd >/dev/null; then sudo firewall-cmd --state; sudo firewall-cmd --list-all; else sudo ufw status verbose; fi [rc=0] running public (default, active) target: default ingress-priority: 0 egress-priority: 0 icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client ssh ports: protocols: forward: yes masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: $ id ttnadmin [rc=0] uid=1001(ttnadmin) gid=1008(ttnadmin) groups=1008(ttnadmin),4(adm),39(video),1000(google-sudoers),1001(dip),1004(plugdev),1007(sshusers) $ sudo sshd -T | grep -Ei '^(permitrootlogin|passwordauthentication|allowgroups)' [rc=0] permitrootlogin no passwordauthentication no allowgroups sshusers $ sudo passwd -S root; sudo chage -l root | head -3 [rc=0] root P 2026-11-19 0 365 7 -1 Last password change : Nov 19, 2026 Password expires : Nov 19, 2027 Password inactive : never $ systemctl is-active rsyslog; journalctl --disk-usage [rc=0] inactive Archived and active journals take up 16M in the file system. $ sudo ls /etc/ssh/ssh_host_*_key.pub [rc=0] /etc/ssh/ssh_host_ecdsa_key.pub /etc/ssh/ssh_host_ed25519_key.pub /etc/ssh/ssh_host_rsa_key.pub $ cat /etc/machine-id [rc=0] 1143c6a9e1604d1db502cb96346572bf $ for c in ttn-audit ttn-cis-audit; do sudo test -x /usr/local/sbin/$c && echo $c-OK || echo $c-MISSING; sudo sh -c "command -v $c" >/dev/null && echo $c-sudo-path-OK || echo $c-sudo-path-MISSING; done [rc=0] ttn-audit-OK ttn-audit-sudo-path-OK ttn-cis-audit-OK ttn-cis-audit-sudo-path-OK $ systemctl is-active google-guest-agent; if command -v rpm >/dev/null; then rpm -q google-guest-agent google-compute-engine-oslogin 2>&1; else dpkg-query -W google-guest-agent google-compute-engine-oslogin 2>&1; fi [rc=0] inactive google-guest-agent-20261021.00-g1.el10.x86_64 google-compute-engine-oslogin-20260924.00-g1.el10.x86_64 $ systemctl is-active google-osconfig-agent; sudo journalctl -u google-osconfig-agent -b --no-pager 2>&1 | tail -3; head -3 /usr/share/doc/ttn-hardened/osconfig-rebuild.txt 2>&1 [rc=0] active Nov 19 01:54:02 ttn-boottest-1795053115-71db systemd[1]: Started google-osconfig-agent.service - Google OSConfig Agent. Nov 19 01:54:10 ttn-boottest-1795053115-71db OSConfigAgent[982]: 2026-11-19T01:54:10.1763Z OSConfigAgent Info: OSConfig Agent (version 20261112.01-ttn1) started. google_osconfig_agent rebuilt by ToTheNOC 2026-11-19T01:42:35Z source: https://github.com/GoogleCloudPlatform/osconfig tag 20261112.01 commit 0814dfd3fe9aa1b71546409a748616bd1aeedb44 toolchain: go1.27.4 CGO_ENABLED=0 -ldflags "-s -w" $ systemctl is-active google-guest-agent-manager google-guest-compat-manager google-guest-agent 2>&1; head -4 /usr/share/doc/ttn-hardened/guest-agent-rebuild.txt 2>&1; for f in /usr/bin/google_guest_agent /usr/bin/google_guest_agent_manager /usr/bin/google_guest_compat_manager /usr/bin/ggactl_plugin /usr/lib/google/guest_agent/GuestAgentCorePlugin/core_plugin /usr/bin/google_osconfig_agent; do echo "$f $(LC_ALL=C grep -aoE 'go1\.[0-9]+\.[0-9]+' $f | sort | uniq -c | sort -rn | head -1 | awk '{print $2}')"; done [rc=0] active active inactive google-guest-agent 20261021.00 binaries rebuilt by ToTheNOC 2026-11-19T01:47:31Z source: https://github.com/GoogleCloudPlatform/guest-agent.git tag 20261021.00 commit b08d494b439c8ed3b521745438c43dd0662444f5 source: https://github.com/GoogleCloudPlatform/google-guest-agent.git tag 20261021.00 commit 600c09b54df10e1c6dddc9566befff1ed8a1516f toolchain: go1.27.4 CGO_ENABLED=0 -trimpath (ldflags as in packaging/google-guest-agent.spec) /usr/bin/google_guest_agent go1.27.4 /usr/bin/google_guest_agent_manager go1.27.4 /usr/bin/google_guest_compat_manager go1.27.4 /usr/bin/ggactl_plugin go1.27.4 /usr/lib/google/guest_agent/GuestAgentCorePlugin/core_plugin go1.27.4 /usr/bin/google_osconfig_agent go1.27.4 $ id -nG ttnadmin; getent group docker lxd 2>&1; command -v docker lxc 2>&1 || echo no-docker-no-lxd [rc=0] ttnadmin adm video google-sudoers dip plugdev sshusers no-docker-no-lxd $ sed -n '/^\[Accounts\]/,/^\[/p' /etc/default/instance_configs.cfg [rc=0] [Accounts] groups = adm,dip,plugdev,video,sshusers deprovision_remove = false gpasswd_add_cmd = gpasswd -a {user} {group} gpasswd_remove_cmd = gpasswd -d {user} {group} groupadd_cmd = groupadd {group} useradd_cmd = useradd -m -s /bin/bash -p * {user} userdel_cmd = userdel -r {user} [Daemons] $ id packer 2>&1; sudo passwd -S packer 2>&1; sudo ls -la /home/packer/.ssh 2>&1 | head -5 [rc=0] uid=1000(packer) gid=1005(packer) groups=1005(packer),4(adm),39(video),1001(dip),1004(plugdev),1007(sshusers) packer L 2026-11-19 0 99999 7 -1 total 0 drwx------. 2 packer packer 6 Nov 19 01:47 . drwx------. 3 packer packer 74 Nov 19 01:47 .. $ curl -s -H 'Metadata-Flavor: Google' http://169.254.169.254/computeMetadata/v1/instance/zone; echo [rc=0] projects/888617657/zones/us-central1-a $ free -m; sudo journalctl -k -b --no-pager | grep -iE 'out of memory|oom-kill|killed process' || echo no-oom-in-kernel-log [rc=0] total used free shared buff/cache available Mem: 1702 502 789 0 548 1200 Swap: 0 0 0 no-oom-in-kernel-log $ systemd-analyze 2>&1 | head -3; for u in $(systemctl list-units 'ttn-*' --all --no-legend --plain | awk '{print $1}'); do echo "$u $(systemctl show $u -p ActiveState -p Result -p ExecMainStartTimestamp -p ExecMainExitTimestamp --value | tr '\n' ' ')"; done [rc=0] Startup finished in 2.562s (kernel) + 8.460s (initrd) + 50.703s (userspace) = 1min 1.726s multi-user.target reached after 20.485s in userspace. ttn-gce-oslogin.path success active ttn-firstboot.service success Thu 2026-11-19 01:54:01 UTC Thu 2026-11-19 01:54:02 UTC active ttn-gce-oslogin.service success Thu 2026-11-19 01:54:11 UTC Thu 2026-11-19 01:54:11 UTC inactive