cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1281
Views
0
Helpful
4
Replies

2960s switch gui and smartport user defined macro

phwang1234
Level 1
Level 1

Hi,

 

I have a few 2960s switches and would like to use the GUI to configure ports using the smartport function. These seem to be based on predefined macro's which I can't edit. I have created my own macro, how do I enable the macro in the GUI so I can use the use my own macro?

 

Regards,

Paul

4 Replies 4

Leo Laohoo
Hall of Fame
Hall of Fame

What IOS are you using? 

 

Are you talking about auto-smarport (ASP) macro?

Hi Leo,

 

Running IOS 15.0(2)SE6

I am trying to use the smartports -> select a port role and then apply it to a switch port.                  

Ok, SmartPort macro is now a HIDDEN command, since 12.2(58)SE and later.  

 

If you've got a macro you want to use, you have to enter it using CLI.  Here's how you do it: 

 

config t

macro name <BLAH>

[ENTER YOUR MACRO HERE]

[Use the "@" to end your macro]

@

end

 

To envoke the macro: 

 

config t

interface <BLAH>

macro apply <MACRO NAME>
end

 

To view the macro: 

sh pars macro name <MACRO NAME>

Hi Leo,

 

Thank you. I have the macro configured already CLI and can apply the macro onto a switch port. I am wishing to use this macro from the GUI so some IT support users can change the port configuration from  the GUI since they don't have much experience in the CLI.

 

Regards,

Paul

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: