- Organized 252 files across project - Root directory: 187 → 2 files (98.9% reduction) - Moved configuration guides to docs/04-configuration/ - Moved troubleshooting guides to docs/09-troubleshooting/ - Moved quick start guides to docs/01-getting-started/ - Moved reports to reports/ directory - Archived temporary files - Generated comprehensive reports and documentation - Created maintenance scripts and guides All files organized according to established standards.
41 lines
1.5 KiB
Bash
Executable File
41 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# Comprehensive search for device using 192.168.11.14
|
|
|
|
IP="192.168.11.14"
|
|
MAC="bc:24:11:ee:a6:ec"
|
|
|
|
echo "=== Comprehensive Device Search for $IP ==="
|
|
echo "MAC Address: $MAC"
|
|
echo ""
|
|
|
|
echo "1. Checking Proxmox cluster containers..."
|
|
for host in 192.168.11.10 192.168.11.11 192.168.11.12; do
|
|
echo " Checking $host..."
|
|
ssh -o ConnectTimeout=3 root@$host "pct list --all 2>/dev/null | while read line; do
|
|
vmid=\$(echo \$line | awk '{print \$1}')
|
|
[ -n \"\$vmid\" ] && [ \"\$vmid\" != \"VMID\" ] && pct config \$vmid 2>/dev/null | grep -q '$IP\|$MAC' && echo \" Found in VMID \$vmid\" && pct config \$vmid 2>/dev/null | grep -E 'name=|net0=' | head -2
|
|
done" 2>/dev/null
|
|
done
|
|
|
|
echo ""
|
|
echo "2. Checking network interfaces..."
|
|
for host in 192.168.11.10 192.168.11.11 192.168.11.12; do
|
|
echo " Checking $host..."
|
|
ssh -o ConnectTimeout=3 root@$host "ip addr show | grep -A 2 '$IP' && echo ' Found interface with $IP'" 2>/dev/null || echo " No interface found"
|
|
done
|
|
|
|
echo ""
|
|
echo "3. Checking ARP/neighbor tables..."
|
|
for host in 192.168.11.10 192.168.11.11 192.168.11.12; do
|
|
echo " Checking $host..."
|
|
ssh -o ConnectTimeout=3 root@$host "ip neigh show $IP 2>/dev/null || arp -n $IP 2>/dev/null || echo ' No ARP entry'" 2>/dev/null
|
|
done
|
|
|
|
echo ""
|
|
echo "4. Omada Controller (192.168.11.20:8043)"
|
|
echo " Note: Requires web interface or API access to query devices"
|
|
echo " Access: https://192.168.11.20:8043"
|
|
|
|
echo ""
|
|
echo "=== Search Complete ==="
|