cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1072
Views
0
Helpful
5
Replies

interface macro's

Gaston Bougie
Level 1
Level 1

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,

1 Accepted Solution

Accepted Solutions

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

View solution in original post

5 Replies 5

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

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

Since 12.2(46), Cisco's been hiding the switchport macros in favour if the SmartPort macros.

you can still find the command on 12.2 (35) SE5;

Compiled Thu 19-Jul-07 18:15 by nachen

Is there another way to run these macros other than macro global apply (Macro Name)

The Gods you Worship are Steele.
And at the alter of Rock 'N Roll you kneel.
Review Cisco Networking products for a $25 gift card