cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
901
Views
0
Helpful
3
Replies

How to get a quick view on what ports have bpduguard enabled?

sandviper
Level 1
Level 1

Hi,

I am trying to figure a way to get a quick look at all ports with bpduguard enabled, including the port #. Typing sh run | i bpduguard doesn't provide the port number, and typing sh run int port/number will take too long. A sh run or sh start will give me the results, but it will give me the entire config which I do not need. Our devices are setup where we enabe bpduguard on a per port basis I believe. The goal is to find the ports without bpduguard enabled so we can go ack and correct it.

Is there any syntax similar to sh int status, but includes bpduguard info? Right now, this is for IOS, but I will need to figure this our for CatOS.

1 Accepted Solution

Accepted Solutions

John Blakley
VIP Alumni
VIP Alumni

I can't help you with CatOS, but for IOS you could do something like:

sh run | inc Interface Fast|bpduguard

If you have Gig ports, you'll need to replace Fast with Gig (sho run | inc Interface Gig|bpduguard)

You'll get back something like the following:

interface GigabitEthernet1/33

spanning-tree bpduguard enable

interface GigabitEthernet1/34

interface GigabitEthernet1/35

interface GigabitEthernet1/36

interface GigabitEthernet1/37

spanning-tree bpduguard enable

interface GigabitEthernet1/38

interface GigabitEthernet1/39

interface GigabitEthernet1/40

Bold and italicized are enabled, but 34-36 and 38-40 do not have them enabled.

HTH,

John

HTH, John *** Please rate all useful posts ***

View solution in original post

3 Replies 3

John Blakley
VIP Alumni
VIP Alumni

I can't help you with CatOS, but for IOS you could do something like:

sh run | inc Interface Fast|bpduguard

If you have Gig ports, you'll need to replace Fast with Gig (sho run | inc Interface Gig|bpduguard)

You'll get back something like the following:

interface GigabitEthernet1/33

spanning-tree bpduguard enable

interface GigabitEthernet1/34

interface GigabitEthernet1/35

interface GigabitEthernet1/36

interface GigabitEthernet1/37

spanning-tree bpduguard enable

interface GigabitEthernet1/38

interface GigabitEthernet1/39

interface GigabitEthernet1/40

Bold and italicized are enabled, but 34-36 and 38-40 do not have them enabled.

HTH,

John

HTH, John *** Please rate all useful posts ***

TYVM! This was exactly what I needed.

Glad to help!

HTH, John *** Please rate all useful posts ***
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:

Review Cisco Networking products for a $25 gift card