Filter out integrated devices and firewall interfaces
- PCI: Exclude USB controller, Audio device, Encryption controller, Multimedia controller (integrated motherboard devices) - Network: Also filter fwbr*, fwln*, fwpr*, tap* interfaces (firewall bridges and VM tap devices) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
12
proxDoc.sh
12
proxDoc.sh
@@ -152,8 +152,8 @@ get_network_info() {
|
||||
|
||||
get_detailed_network() {
|
||||
echo -e "\n${GREEN}=== Network Interface Statistics ===${NC}"
|
||||
# Show only physical interfaces and bridges, skip veth* (container interfaces)
|
||||
for iface in $(ls /sys/class/net | grep -v lo | grep -v "^veth"); do
|
||||
# Show only physical interfaces and bridges, skip virtual/firewall interfaces
|
||||
for iface in $(ls /sys/class/net | grep -v lo | grep -v -E "^veth|^fwbr|^fwln|^fwpr|^tap"); do
|
||||
ip -s link show "$iface" 2>/dev/null
|
||||
done
|
||||
echo -e "\n${GREEN}=== Network Statistics ===${NC}"
|
||||
@@ -169,8 +169,8 @@ get_detailed_network() {
|
||||
get_hardware_info() {
|
||||
echo -e "${GREEN}BIOS Version:${NC} $(dmidecode -s bios-version)"
|
||||
echo -e "\n${GREEN}=== PCI Devices ===${NC}"
|
||||
# Show all interesting devices, exclude bridges and internal infrastructure
|
||||
lspci | grep -v -E "Host bridge|PCI bridge|ISA bridge|SMBus|IOMMU|Dummy"
|
||||
# Show interesting devices, exclude bridges, infrastructure, and integrated motherboard devices
|
||||
lspci | grep -v -E "Host bridge|PCI bridge|ISA bridge|SMBus|IOMMU|Dummy|USB controller|Audio device|Encryption controller|Multimedia controller"
|
||||
}
|
||||
|
||||
get_motherboard_info() {
|
||||
@@ -225,8 +225,8 @@ get_memory_details() {
|
||||
|
||||
get_nic_details() {
|
||||
echo -e "\n${GREEN}=== Network Interface Details ===${NC}"
|
||||
# Show only physical interfaces and bridges, skip veth* (container interfaces)
|
||||
for iface in $(ls /sys/class/net | grep -v lo | grep -v "^veth"); do
|
||||
# Show only physical interfaces and bridges, skip virtual/firewall interfaces
|
||||
for iface in $(ls /sys/class/net | grep -v lo | grep -v -E "^veth|^fwbr|^fwln|^fwpr|^tap"); do
|
||||
echo -e "\n${GREEN}Interface: $iface${NC}"
|
||||
|
||||
# Get driver info
|
||||
|
||||
Reference in New Issue
Block a user