cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1767
Views
5
Helpful
2
Replies

How to get multiple pipe exclude results ?

minfante1
Level 1
Level 1

So a Im trying to get a list of MAC addresses using the command 

sh mac address-table | e Gi1/0/25 | Gi1/0/13 | Gi1/0/4 

But i dont want to see these 3 ports in specific, the way this command is entered right now it only excludes Gi1/0/4 and i still see in the list the other 2. What would be the correct syntax for the results i need ?

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

how about without space like below ?  ( before pipe and after pipe no space)

sh mac address-table | exclude Gi1/0/25|Gi1/0/13|Gi1/0/4

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

how about without space like below ?  ( before pipe and after pipe no space)

sh mac address-table | exclude Gi1/0/25|Gi1/0/13|Gi1/0/4

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Thank you, this option worked, I tried a whole different combinations I don't know why this one never occurred to me. 

Thanks again

Review Cisco Networking for a $25 gift card