I need to find out how many total physical ports my server has, and how many of them are in use and how many free. Can you kindly help how to find it:
This is what i find from dmidecode output:
# dmidecode | egrep -i "PCI|Available|in use"
PCI is supported
ESCD support is available
Designation: PCI-E Slot 1
Type: x8 PCI Express
Current Usage: In Use
Designation: PCI-E Slot 2
Type: x8 PCI Express
Current Usage: Available
Designation: PCI-E Slot 3
Type: x4 PCI Express
Current Usage: Available
Designation: PCI-E Slot 4
Type: x8 PCI Express
Current Usage: In Use
Designation: PCI-E Slot 5
Type: x8 PCI Express
Current Usage: In Use
# dmidecode | grep -i "NIC"
HP BIOS NIC PCI and MAC Information
NIC 1: PCI device 04:00.0, MAC address 00:1E:0B:C0:F4:92
NIC 2: PCI device 42:00.0, MAC address 00:1E:0B:C0:F4:90
HP BIOS iSCSI NIC PCI and MAC Information
NIC 1: PCI device 04:00.0, MAC address 00:1E:0B:C0:F4:93
NIC 2: PCI device 42:00.0, MAC address 00:1E:0B:C0:F4:91
[root@eir1 network-scripts]# cat ifcfg-eth[0123] | grep -i HWADDR
HWADDR=00:1E:0B:C0:F4:92
HWADDR=00:1E:0B:C0:F4:90
HWADDR=00:26:55:e6:75:5c
HWADDR=00:26:55:e6:75:5d
How do I conclude from this that how many physical ports are in use, and how many available ? kindly help