Jump to content

Mosche

Members
  • Gesamte Inhalte

    1
  • Registriert seit

  • Letzter Besuch

Alle erstellten Inhalte von Mosche

  1. Hallo raveman, hatte mal ein ähnliches Problem und habe mir ein Perl script aus dem Internet gezogen. Bin aber zeitlich nicht mehr dazu gekommen es einzusetzen. In der Anlage ist das Script, vielleicht kannst Du dir daraus etwas zurechtbauen. Hier noch die Readme. findmac.pl Readme Version: 1.0 Author: Terence Chan (kachan@vicosys.com.hk) License: GPL Description: findmac.pl allows administrator to locate a particular host or MAC Address on a CISCO Switch Envirnment. Requirement: Perl Net-Telnet available at http://www.cpan.org'>http://www.cpan.org Net-Telnet-Cisco available at http://www.cpan.org Installation: 1. download and copy findmac.pl to /usr/local/bin 2. modify findmac.pl 2a. $password="telnet password"; 2b. $enable="enable password"; 2c. $coreswitch="172.16.2.1"; 2d. make change to #!/usr/bin/perl if necessary 3. Make sure all switches has the same telnet and enable password 4. Ensure CDP has been enable on all switches Usage: # ./findmac.pl -h pigeon findmac 1.0 by Terence Chan (26 Feb 2003) pigeon Mac Address is 08:00:20:A9:C3:E0 08:00:20:A9:C3:E0 is found on 172.16.188.155 port FastEthernet0/19 # ./findmac.pl -m 00-00-0c-07-ac-10 findmac 1.0 by Terence Chan (26 Feb 2003) This is a router. 00-00-0c-07-ac-10 is found on 172.16.2.1 port 3/1
×
×
  • Neu erstellen...