Menu

Aruba Switches - Not able to read mac entries

Help
MickG72
2019-08-25
2019-09-04
  • MickG72

    MickG72 - 2019-08-25

    Hi,
    Great app,
    We recently rolled out a large number of Aruba switches.
    the arubaswitchscraper.pl script for them doesn't seem to able to read the mac addresses table correctly.
    The mac table looks like this :
    MAC Address Port VLAN


    00155d-b05300 2/27 100

    but the script is looking for this format : ?
    if ( $line =~ /(\w\w\:){5}|(\w\w\w\w.\w\w\w\w.\w\w\w\w)/ ) {
    which means 1234.5678.9012 ?

    Anyone got a fix for this ?
    Thanks

     
  • Earl Ramirez

    Earl Ramirez - 2019-09-04

    This should do the trick

    if ( $line =~ /(\w\w\:){5}|(\w\w\w\w\w\w-\w\w\w\w\w\w) {

     

Log in to post a comment.