Newest Downloads

Mar.08

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

Feb.01

python queryns.py -husage: queryns.py [options] arg --username=username --password=password --net...

Switch Port Report
LD Port Report 1.13 quick update. The Mac Address Reporting Tool
Linux Dynasty Projects - Switch Port Report
Written by Allen Sanabria   
Thursday, 01 October 2009 08:12

Quick update today! User Christianha, pointed out to me that the port_report tool was not matching any MAC address he passed. The reason for this is because he was passing the MAC address in uppercase. As per his suggestion, I fixed line 348 so that before it returns the mac, it willl make the MAC lower case. Then I just realized something.... I reverted line 348 back to way it was and changed line 676 instead..

It was if nmac == cmac:
Now it is  re.search(nmac, cmac, re.IGNORECASE):

I felt this was the safer option..

Thank you Christianha for pointing the issues out..

 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:338
Rating: ( Votes)
Your Vote:



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.
Last Updated on Thursday, 01 October 2009 08:24
 
LD Port Report 1.12 update aka the Host and MAC Reporting tool
Linux Dynasty Projects - Switch Port Report
Written by Allen Sanabria   
Friday, 18 September 2009 06:24

We are happy to announce the release of Port Report 1.12. In this release, we can now follow CDP Neighbors while using the --report or -r options. Before when you used the --report option, the script will report on just that one switch. Now if you pass the --follow or -f option with the --report or -r option, port_report will follow the CDP neighbors and create multiple CSV files.
Release notes are below.... If you want to see an example of the Port Report output and how to run it, please check this link ..http://www.linuxdynasty.org/ld-port-report-project.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:338
Rating: ( Votes)
Your Vote:


Revision 1.12 09/18/09

  • The report option of the script can now follow cdp neighbors using the --follow option or -f.
    When you run the command below it will create ONE CSV file per cdp neighbor it scanned.
    I was able to scan from my core Switch down to the last neighbor in the line ( 44 Neighbors in just under 20 minutes. )
    Which equaled to a little over 4K Mac Addresses
    For instance...port_report.py -d 192.168.101.1 -c public -r -f


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.
Last Updated on Friday, 18 September 2009 07:48
Read more...
 
LD Port Report 1.11 update
Linux Dynasty Projects - Switch Port Report
Written by Allen Sanabria   
Tuesday, 15 September 2009 08:58

We are happy to announce the release of Port Report 1.11. In this release, we have fixed quite a few bugs that were in the previous release. Included in this release is the ability to follow EtherChannel aka PortChannel Ports using the Port Agreggation Protocol.
Release notes are below.... If you want to see an example of the Port Report output and how to run it, please check this link ..http://www.linuxdynasty.org/ld-port-report-project.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:338
Rating: ( Votes)
Your Vote:

Revision 1.11 09/13/09

  • More code clean up and another increase in speed.
  • Also port_report can now follow EtherChannel
  • Fixed issue, where the matching of the cdp neighbor was not matching correctly
  • Added better verbosity
  • Added Sanity Checking for cdp neighbors

Revision 1.10 09/09/09

  • Code Clean up and a slight increase in speed ( by a few seconds ) during the search by mac or ip

Revision 1.9
Code changes and Added CDP Support

  • Detect CDP Neighbors during the scan for MAC Addresses or IP Addresses

Revision 1.8
Here is a quick update.....

  • I just add dns reverse lookups to the output of this script.

Revision 1.7
Adds support to the following devices..

  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

 

Revision 1.6
New additions to this revision ....

  • Support for HP Procurve Switches, ( Tested on the newer versions of HP )
  • combined switch_report.py in port_report.py.
  • Added --verbose flag

Previous Releases....

  • Search by MAC or IP or PORT


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.
Last Updated on Wednesday, 16 September 2009 08:32
 
Linux Dynasty Switch Port Mapper Tool Update 1.9
Linux Dynasty Projects - Switch Port Report
Written by Allen Sanabria   
Friday, 08 May 2009 20:28

I'm really excited to introduce Port Report Update 1.9  aka the Switch Port Mapper Tool. We've done quite a few code modifications to the previous release of Port Report. The most important feature we just finish adding to Port Report, is to detect CDP Neighbors during the scan for MAC Addresses or IP Addresses. We are still adding features as the days pass, so please stay tuned....

Revision 1.9
Code changes and Added CDP support..

  • Detect CDP Neighbors during the scan for MAC Addresses or IP Addresses

You can download the script http://www.linuxdynasty.org/Port-Report-Project/

 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:338
Rating: ( Votes)
Your Vote:



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.
Last Updated on Wednesday, 02 September 2009 07:36
Read more...
 
LD Port Report Project aka Switch Port Mapper Tool
Linux Dynasty Projects - Switch Port Report
Written by Allen Sanabria   
Tuesday, 05 May 2009 03:10

The Port Report Project is essentially a Switch Port Mapper Tool or a Switch Port Mapping Tool like a few other commercial products out there, except The Port Report Project is free. Right now there is no GUI or WEB interface for the project but it is in the works.

This project started off as being a simple 150 line script that did something quite simple... Its only purpose was to find MAC Addresses on a switch. Then I was asked could you also search by IP, so I added that. Now I was asked to search by Port, so I added that. Well you get where this is all going.... My goal now is to build the equivalent of other commercial port mapping tools, but Open Source....

On this page I will be keeping all the updates to this Project, so please keep checking back every now and again for updates.
You can get any revision of the Port Report tool here http://www.linuxdynasty.org/Port-Report-Project/

 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:338
Rating: ( Votes)
Your Vote:

Any issues with the LD Port Report Project, please discuss here in the forums
This script requires, Pysnmp and Pyasn1. If you have python-setuptools, you can install it by running this..
easy_install pysnmp, easy_install pyasn1

Three things you will need for this script to work..

  1. Pysnmp
  2. Pyasn1
  3. SNMP Access to the switch you want to talk too and its community string.

To make your life easier you should do the following
  1. install python-setuptools
  2. then run easy_install pysnmp
  3. and easy_install pyasn1
  4. or you can download the 2 modules manually.
    pysnmp and pyasn1
  5. then unzip the 2 files and in each directory run python setup.py install

I am using the following revisions from the python cheese shop pysnmp 4.1.12a and pyasn1 0.0.9a

For revision 1.12 and above..... If you installed pyasn1 and pysnmp using easy_install. Please uninstall it now and install the newest revision and run python setup.py install Instead of using easy_install.
Revision history and Examples below.....

Revision 1.13 10/01/09

  • Fixed line 348 as per christianha. return nmac.lower()
    This fix will allow you to pass a MAC in all uppercase and still match though the switch is responding in lowercase.
    00 E0 B8 81 E8 B7 will now match 00 e0 b8 81 e8 b7

Revision 1.12 09/18/09

  • The report option of the script can now follow cdp neighbors using the --follow option or -f.
    When you run the command below it will create ONE CSV file per cdp neighbor it scanned.
    I was able to scan from my core Switch down to the last neighbor in the line ( 44 Neighbors in just under 20 minutes. )
    Which equaled to a little over 4K Mac Addresses
    For instance...port_report.py -d 192.168.101.1 -c public -r -f

Revision 1.11 09/13/09

  • More code clean up and another increase in speed.
  • Also port_report can now follow EtherChannel
  • Added better verbosity
  • Added Sanity Checking for cdp neighbors

Revision 1.10 09/09/09

  • Code Clean up and a slight increase in speed ( by a few seconds ) during the search by mac or ip

Revision 1.9
Code changes and Added CDP Support

  • Detect CDP Neighbors during the scan for MAC Addresses or IP Addresses

Revision 1.8
Here is a quick update.....

  • I just add dns reverse lookups to the output of this script.

Revision 1.7
Adds support to the following devices..

  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

 

Revision 1.6
New additions to this revision ....

  • Support for HP Procurve Switches, ( Tested on the newer versions of HP )
  • combined switch_report.py in port_report.py.
  • Added --verbose flag

Previous Releases....

  • Search by MAC or IP or PORT

 



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.
Last Updated on Thursday, 01 October 2009 08:11
Read more...