cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1016
Views
0
Helpful
1
Replies

Autosmartport macro not executing

dd.jesus.perez
Level 1
Level 1

Hi,

I am trying to use AUTO SMARTPORTS to disable PoE on switchports connected to EXTERITY Devices (OUI = 00181C) but the macro os not executing. Below my config. Am I missing something? Thank you

 

macro auto execute EXTERITY {
if [[ $LINKUP -eq YES ]]
then conf t
interface $INTERFACE
description EXTERITY macro
power inline never
exit
end
fi
if [[ $LINKUP -eq NO ]]
then conf t
interface $INTERFACE
no description
exit
end
fi
}
!
macro auto trigger EXTERITY
!
macro auto mac-address-group EXTERITY
oui list 00181C
macro auto global processing

1 Reply 1

dd.jesus.perez
Level 1
Level 1

Ok got this running on a C9300-48U running ios-xe 16.12 by adding the following command:

 

macro auto global control detection mac-address

 

 

The problem is that I need this also on 3560cx running ios 15.2 and there the command macro auto global control only allows the options "device" and "trigger".

 

Any help is welcome. Thank you.