04-21-2011 07:00 AM - edited 03-06-2019 04:44 PM
Hi,
a few releases ago I could configure a macro for interface like this:
switch(config)#macro name office
description office
switchport access vlan 123
switchport mode access
no logging event link-status
no snmp trap link-status
spanning-tree portfast
spanning-tree bpduguard enable
@
Now on a cisco WS-C3750G-24TS with 12.2(55)SE1 I can't seem to configure the above.
The only options I get is:
switch(config)#macro ?
auto Macro autoexecution settings
global Enter global macro configuration
Is something changed in meanwhile? Can't find a thing about it for the moment.
Regards,
Solved! Go to Solution.
04-21-2011 07:05 AM
Hi ,
just write the command and enter
switch(config)#macro ?
auto Macro autoexecution settings
global Enter global macro configuration
switch(config)#macro name test
Enter macro commands one per line. End with the character '@'.
@
Dan
04-21-2011 07:05 AM
Hi ,
just write the command and enter
switch(config)#macro ?
auto Macro autoexecution settings
global Enter global macro configuration
switch(config)#macro name test
Enter macro commands one per line. End with the character '@'.
@
Dan
04-21-2011 07:33 AM
thank you for the fast reply! It works.
I think Cisco could update their code so at least the name "name" is displayed just like in the "old" behaviour:
switch(config)#macro ?
global Enter global macro apply
name Name of the macro
2950switch(config)#macro name test ?
instead of
3560&3750switch(config)#macro name test ?
% Unrecognized command
04-21-2011 06:39 PM
Since 12.2(46), Cisco's been hiding the switchport macros in favour if the SmartPort macros.
06-30-2011 08:09 AM
you can still find the command on 12.2 (35) SE5;
Compiled Thu 19-Jul-07 18:15 by nachen
09-15-2022 12:58 AM
Is there another way to run these macros other than macro global apply (Macro Name)
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