Apr 162009
 

Update 1.3

  • You are now able to pass 4 different mac formats.. For instance
    00 14 38 4f 5e 39 or 00-14-38-4f-5e-39 or 00:14:38:4f:5e:39 or
    0014.384f.5e39″
  • More information is printed out when you pass the mac or ip
  • Further Testing shows the script runs on Cisco Switches only so far.

I trying very hard to get this script to work with non Cisco device, but since I do not have any other networking device besides Cisco available to me, I am limited.I am working with Kshort to assist me in trying to add Nortel and Foundry, but I can user more help from the community. If you can assist with this please let me know..

Example below…

python port_report.py -d 192.168.101.1 -c public -m "0014.384f.5e38"
MAC = 00 14 38 4f 5e 38
Port = GigabitEthernet1/17
Speed = 1gbps
Duplex = unknown
Vlan = 175
IPAddr = 192.168.101.200
 

You can download the script here port_report.py

 

dynasty


Warning: fopen(/home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/lib/standard.txt) [function.fopen]: failed to open stream: No such file or directory in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 104

Warning: fread(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 105

Warning: fclose(): supplied argument is not a valid stream resource in /home/dynasty/linuxdynasty.org/wp-content/plugins/wp-google-plus-one/plusone.php on line 106
.