jetson-orin-poe-ethernet-monitor-6.ino
Checks the status and link speed of the Gigabit Ethernet RJ45 interface, crucial for PoE-powered deployments.
The Xerxes Nano board uses the native Ethernet controller of the Jetson module. Run this script after connecting an RJ45 cable to the PoE-compatible port. Ensure the power jumper is configured for PoE if USB is not connected. The script reads sysfs files directly for a quick response without external dependencies.
jetson-orin-poe-ethernet-monitor-6.ino
#!/bin/bash
# Script de surveillance Ethernet pour Xerxes Nano (Jetson Orin Nano Super)
# Vérifie l'interface eth0 (RJ45) et affiche la vitesse/état du lien.
IFACE="eth0"
echo "--- Surveillance Réseau Xerxes Nano ---"
if [ -d "/sys/class/net/${IFACE}" ]; then
OPER=$(cat /sys/class/net/${IFACE}/operstate)
SPEED=$(cat /sys/class/net/${IFACE}/speed 2>/dev/null || echo "N/A")
echo "Interface: ${IFACE}"
echo "État Opérationnel: ${OPER}"
echo "Vitesse Lien: ${SPEED} Mbps"
if [ "$OPER" == "up" ]; then
echo "[OK] Lien actif. Test de ping rapide..."
ping -c 3 8.8.8.8
else
echo "[KO] Lien inactif. Vérifiez le câble RJ45 ou l'alimentation PoE."
fi
else
echo "[ERREUR] Interface ${IFACE} introuvable."
ip link show
fi