Skip to content

Commit

Permalink
Extend server show-tech
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Capdevila <pau@githedgehog.com>
  • Loading branch information
pau-hedgehog committed Jan 28, 2025
1 parent c345fb0 commit dd2dfba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/hhfab/show-tech/server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ cat /etc/os-release >> "$OUTPUT_FILE"
echo -e "\n=== General Networkctl Status ===" >> "$OUTPUT_FILE"
networkctl status >> "$OUTPUT_FILE"

echo -e "\n=== Interface Networkctl Status ===" >> "$OUTPUT_FILE"
networkctl list | awk 'NR > 1 && $2 !~ /(^-|links|^\s*$)/ {print $2}' | while read -r IFACE; do
echo -e "\n--- Detailed Info for $IFACE ---" >> "$OUTPUT_FILE"
networkctl status "$IFACE" >> "$OUTPUT_FILE" 2>&1
done

echo -e "\n=== VLAN Configuration ===" >> "$OUTPUT_FILE"
ip -d link show type vlan >> "$OUTPUT_FILE"

Expand Down

0 comments on commit dd2dfba

Please sign in to comment.