--- org 2012-01-11 15:42:26.846317408 +0100
+++ pfcmd_vlan  2012-01-10 15:42:16.548317511 +0100
@@ -17,6 +17,7 @@
    -getIfOperStatus     show the operational status of the specified switch port
    -getIfType           show the ifType on the specified switch port
    -getLocation         show at which switch port the MAC is found
+   -getSwitchLocation show SNMP location of specified switch
    -getMAC              show all MACs on the specified switch port
    -getType             show switch type
    -getUpLinks          show the upLinks of the specified switch
@@ -116,6 +117,7 @@
 my $getMac;
 my $getAllMacs;
 my $getAlias;
+my $getSwitchLocation;
 my $setAlias;
 my $getVlan;
 my $resetVlanAllPort;
@@ -147,6 +149,7 @@
     "deauthenticate"      => \$deauthenticate,
     "deauthenticateDot1x" => \$deauthenticateDot1x,
     "getAlias"            => \$getAlias,
+    "getSwitchLocation"   => \$getSwitchLocation,
     "getAllMacs"          => \$getAllMacs,
     "getHubs"             => \$getHubs,
     "getIfOperStatus"     => \$getIfOperStatus,
@@ -465,6 +468,7 @@

 } elsif ( $getMac
     || $getAlias
+    || $getSwitchLocation
     || $setAlias
     || $getVlan
     || $setVlan
@@ -579,6 +583,10 @@
             $logger->debug("start handling 'getAlias' command");
             print $switch->getAlias($ifIndex) . "\n";
             $logger->debug("finished handling 'getAlias' command");
+       } elsif ($getSwitchLocation) {
+            $logger->debug("start handling 'getSwitchLocation' command");
+             print $switch->getSwitchLocation($ifIndex) . "\n";
+             $logger->debug("finished handling 'getSwitchLocation' command");
         } elsif ($setAlias) {
             if ( $alias == '' ) {
                 pod2usage("you must specify the description to set");
@@ -745,4 +753,3 @@
 # vim: set expandtab:
 # vim: set backspace=indent,eol,start:

-
