cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2831
Views
5
Helpful
3
Replies

How do you remove Alias command on cisco switch

Kbolo
Level 1
Level 1

I need to remove alias off of my switch and don't know the command. Can anyone help me out?

2 Accepted Solutions

Accepted Solutions

Hi,

 

You can do "no alias COMMAND". For example, if your alias is defined as:

alias address-family addr ad

You can remove it by typing:

no alias address-family

 

HTH,

Meheretab

HTH,
Meheretab

View solution in original post

Hi Kbolo:


Maybe this document  will be useful :

 

Add an alias:
command: alias exec scn show cdp neighbor

Delete an alias:
command: no alias exec scn

 

https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_a1.html#wp1013037

 

http://www.ciscozine.com/how-to-create-shortcut-command/

 

Kind Regards

 

 

View solution in original post

3 Replies 3

Hi,

 

You can do "no alias COMMAND". For example, if your alias is defined as:

alias address-family addr ad

You can remove it by typing:

no alias address-family

 

HTH,

Meheretab

HTH,
Meheretab

Hi Kbolo:


Maybe this document  will be useful :

 

Add an alias:
command: alias exec scn show cdp neighbor

Delete an alias:
command: no alias exec scn

 

https://www.cisco.com/c/en/us/td/docs/ios/fundamentals/command/reference/cf_book/cf_a1.html#wp1013037

 

http://www.ciscozine.com/how-to-create-shortcut-command/

 

Kind Regards

 

 

Hi,

I had a difficult situation, some one had configured 2 alias's as shown below - 

 

privilege exec level 0 more
alias configure no on
alias configure alias alisa
configuration mode exclusive

 

the box i was using was a CSR1000v i could not configure a 'no' as it was entering as on, when using 'on' this didn't work either, the on? or no? gave no options

as the 'alias' was also changed to 'alisa' this also negated correction.

 

I was unable to run the clear alias all command (i don't think the platform supports this command)

 

I ended up copying the running config, editing any unwanted statements and pushing it via SNMP as a replace startup config.

 

I am interested to hear if there was a better way or any commands i missed.

 

Thanks

 

Review Cisco Networking products for a $25 gift card