09-26-2011 04:01 AM - edited 03-07-2019 02:26 AM
Hi,
I tried to get my macros running by a remote server.
This is my remote function file named "remote_test_pc.asp":
if [[ $LINKUP -eq YES ]]; then
conf t
interface $INTERFACE
macro description $TRIGGER
description PC-VoIP-Port
switchport access vlan $ACCESS_VLAN
switchport mode access
switchport voice vlan $VOICE_VLAN
storm-control broadcast level pps 1k
storm-control multicast level pps 2k
storm-control action trap
no logging event link-status
srr-queue bandwidth share 10 10 5 75
srr-queue bandwidth shape 10 0 0 0
priority-queue out
mls qos trust dscp
no snmp trap link-status
spanning-tree portfast
spanning-tree bpduguard enable
service-policy input PO_TRUST-PHONE
exit
end
fi
if [[ $LINKUP -eq NO ]]; then
conf t
interface $INTERFACE
no macro description
description DEFAULT-CONFIG
switchport mode access
switchport access vlan 999
storm-control broadcast level pps 1k
storm-control multicast level pps 2k
storm-control action trap
spanning-tree portfast
no switchport voice vlan $VOICE_VLAN
srr-queue bandwidth share 10 10 5 75
srr-queue bandwidth shape 10 0 0 0
priority-queue out
mls qos trust dscp
no service-policy input PO_TRUST-PHONE
fi
exit
end
fi
And this is my config on the switch for mac-group and macro:
!
macro auto mac-address-group Test-PC
mac-address list 0019.9990.5509
!
macro auto global processing
macro auto global control detection mac-address
!
macro auto execute Test-PC remote ftp://192.168.1.11/remote_test_pc.asp ACCESS_VLAN=123 VOICE_VLAN=127
!
When I plug this workstation to the following syslog messages:
Switch#
Loading remote_test_pc.asp !
[OK - 1702/4096 bytes]
Enter configuration commands, one per line. End with CNTL/Z.
Switch con0 is now available
Press RETURN to get started.
Error: Failed to execute trigger Test-PC, please verify trigger exists and maps to valid function
Sep 26 11:45:37.755: %SYS-5-CONFIG_I: Configured from console by console
Sep 26 11:45:37.772: %AUTOSMARTPORT-5-INSERT: Message from tty0(user id: ): Device with mac-address 0019.9990.5509 detected on interface FastEthernet0/3, executed Test-PC
Switch#
The port is working as it should, but I am wondering about the error message.
Switch is 2960 with IOS 12.2(58)SE2.
Can anybody explain what that means?
Thanks a lot!
Sven
Solved! Go to Solution.
09-26-2011 05:18 AM
Hi Sven,
I believe you won't be getting this message consistently...Ignore this for now...This won't have any functional impact...This was taken care in 15.0(1)SE.
Thanks,
-Ankur
09-26-2011 05:18 AM
Hi Sven,
I believe you won't be getting this message consistently...Ignore this for now...This won't have any functional impact...This was taken care in 15.0(1)SE.
Thanks,
-Ankur
09-26-2011 05:28 AM
Hi Ankur,
I did a lot of tests (> 20 times of link up/down) and evertime I get that error message.
But okay, if it is not important I will ignore it .
Later I will do some tests with 15.0(1)SE.
Thanks!
Sven
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide