cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
494
Views
0
Helpful
3
Replies
Highlighted
Beginner

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

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
Highlighted
Advisor

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
Highlighted
Advisor

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

Highlighted

TYVM! This was exactly what I needed.

Highlighted

Glad to help!

HTH, John *** Please rate all useful posts ***
Content for Community-Ad