Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.07 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.07 KB

Cisco Duplex Check

Introduction

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.

Installation Notes / Prerequisites

Script written in Python2

PySNMP Required

Debian/Ubuntu based install:

sudo apt-get install python-pip

sudo pip install pysnmp

Usage

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'

Sample Output

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