first commit

This commit is contained in:
Mateusz Gruszczyński
2026-01-15 14:10:13 +01:00
commit af5fe5074c
8 changed files with 168 additions and 0 deletions

25
motd-qdevice.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
set -eu
echo "=== Proxmox qdevice (corosync-qnetd) ==="
echo
echo "IPs:"
ip -br addr show scope global 2>/dev/null | awk '{print " - " $1 " " $3}'
echo
echo "sshd_config Ports:"
grep -E '^[[:space:]]*Port[[:space:]]+[0-9]+' /etc/ssh/sshd_config 2>/dev/null \
| awk '{print " - TCP " $2}' || true
echo
echo "Listening sockets (ss):"
ss -H -lntup 2>/dev/null | awk '{print " - " $1 " " $5 " " $7}' || true
echo
echo "qnetd process:"
ps -ef 2>/dev/null | grep -E '[c]orosync-qnetd' || echo " - corosync-qnetd: not running"
echo
echo "Notes:"
echo " - corosync-qnetd typically uses TCP/5403 (unless started with -p)."