Autosmartport macro not executing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020 01:09 AM
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
- Labels:
-
Catalyst 3000
-
LAN Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2020 03:37 AM
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.
