Newest Downloads

Mar.18

  [zenoss@zenoss2 ~]$ python Zenoss_Template_Manager.py -husage: Examples: python Zenoss_Templa...

Port Report 1.7 Update
Blog - Dynastys Blog
Written by Allen Sanabria   
Thursday, 30 April 2009 20:56

This is a big update for Port Report.... In this revision the following brands and devices are supported

  1. Cisco
    • Catalyst 6509 w/ Supervisor 720 running IOS
    • Catalyst 3560
    • Catalyst 3550 (SMI)
    • Cisco CIGESM series Chassis Blades
    • Cisco Catalyst 2960
  2. Foundry
    • Foundry Server Iron
  3. Nortel
    • Nortel Passport 8600
    • Nortel 5520 Ethernet Routing Switch
  4. HP
    • HP Procurve 5406xl

The Script has been tested with the above devices... If you have run this script against other devices, please let us know. Also the speed in the report function has drastically increased. I ran this script against a 6509 with 800+ devices connected to it in just over 2 minutes.

The main article for this script is located here http://www.linuxdynasty.org/howto-find-the-port-on-a-switch-that-a-host-belongs-to-the-easy-way-part-1.html

You can download the script here http://www.linuxdynasty.org/View-details/Python-Scripts/39-port_report.py.html

 Download LD Port Report
File Title:LD Port Report (Details)
File Type:py
File Version:1.13
File Size:43.83 Kb
License:
File Author:Allen Sanabria
File HomePage:
Downloads:536
Rating: ( Votes)
Your Vote:

Examples below...

python port_report.py -d 192.168.101.1 -c public --report 
GigabitEthernet1/11,00 21 5a 80 0b a6,192.168.101.23,vlan51,up,up,fullDuplex,1gbps,
GigabitEthernet1/12,00 12 79 83 3b f3,192.168.101.24,vlan51,up,up,fullDuplex,1gbps,

python port_report.py -d 192.168.101.1 -c public -i "192.168.101.201"
This IPAddress is not in the ARP table

python port_report.py -d 192.168.101.1 -c public -i "192.168.101.202"--verbose
Fri Apr 24 15:15:41 2009 Main Started
Fri Apr 24 15:15:41 2009 In snmpget function
Fri Apr 24 15:15:42 2009 Out of snmpget function
Cisco Internetwork Operating System Software
IOS (tm) s72033_rp Software (s72033_rp-JK9S-M), Version 12.2(17d)SXB7, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Thu
Fri Apr 24 15:15:42 2009 Finished Checking for mac
Fri Apr 24 15:15:42 2009 Found IP
Fri Apr 24 15:15:42 2009 192.168.101.202 is a Cisco Switch
Fri Apr 24 15:15:42 2009 In generic_mac_or_ip Function
00 14 38 4f 5e 38
Fri Apr 24 15:15:42 2009 Looping Through CommTable
Fri Apr 24 15:15:42 2009 In CommTable For Loop
Fri Apr 24 15:15:42 2009 First If Statement
Fri Apr 24 15:15:42 2009 Looping Through CommTable
Fri Apr 24 15:15:42 2009 In CommTable For Loop
Fri Apr 24 15:15:42 2009 Looping Through CommTable
Fri Apr 24 15:15:42 2009 In CommTable For Loop


python port_report.py -d 192.168.101.1 -c public -i "192.168.101.209"
MAC = 00 14 38 7f 6e 38
Port = GigabitEthernet1/17
Vlan = 175
IPAddr = 192.168.101.209

python port_report.py -d 192.168.101.1 -c public -m "00 14 38 4f 5e 39"
MAC = 00 14 38 4f 5e 39
Port = GigabitEthernet1/17
Vlan = 175
IPAddr = 192.168.101.201

python port_report.py -d 192.168.101.1 -c public -n "1/40"
Port 1/40 has the below MAC Addresses associated with it
MAC = 00 1b 95 97 3c 81
Port = GigabitEthernet1/40
Vlan = 1
IPAddr = The IP Address for this MAC is not in the ARP Table

MAC = 00 15 fa b4 10 06
Port = GigabitEthernet1/40
Vlan = 174
IPAddr = The IP Address for this MAC is not in the ARP Table

Total MAC Addresses associated with this interface 2

python port_report.py -d 192.168.101.1 -c public -n "1/2"
Port 1/2 has the below MAC Addresses associated with it
MAC = 08 00 0f 20 b3 aa
Port = GigabitEthernet1/2
Vlan = 176
IPAddr = 192.168.101.104

MAC = 08 00 0f 21 d3 78
Port = GigabitEthernet1/2
Vlan = 173
IPAddr = 192.168.101.105

MAC = 08 00 0f 20 b3 aa
Port = GigabitEthernet1/2
Vlan = 175
IPAddr = 192.168.101.115



 

 



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.
Comments
Search RSS
Only registered users can write comments!

3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Monday, 14 September 2009 09:13