Cisco Catalyst Switch - Duplex Status Reporting Tool. This tool will check an individual or group of Cisco Catalyst switches for any ports negotiating at half duplex and provide a detailed report.
Script written in Python2
PySNMP Required
Debian/Ubuntu based install:
sudo apt-get install python-pip
sudo pip install pysnmp
Print Report to Terminal:
cisco_duplex_check.py -c 'COMMUNITY STRING' -l 'PATH TO DEVICE LIST'
Email Report:
cisco_duplex_check.py -c 'COMMUNITY STRING' -l 'PATH TO DEVICE LIST' -e 'EMAIL_FROM' 'EMAIL_TO' -s 'SMTP_SERVER'
Switches with Half-Duplex Ports: ['US-SW-01', 'US-SW-02']
US-SW-01 Half-Duplex Ports:
[('FastEthernet0/21', 'DEV-SERV1')]
US-SW-01 Full Duplex Ports:
[('FastEthernet0/16', 'PRD-SERV1'), ('FastEthernet0/15', 'PRD-SERV2')]
US-SW-02 - No Half Duplex Ports
US-SW-02 Full Duplex Ports:
[('FastEthernet0/33', 'PRD-SERV3'), ('GigabitEthernet0/2', 'PRD-SERV4')]
US-SW-03 - SNMP Failure