11-12-2012 07:30 AM - edited 03-07-2019 09:59 AM
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.
Solved! Go to Solution.
11-12-2012 08:13 AM
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
11-12-2012 08:13 AM
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
11-12-2012 08:28 AM
TYVM! This was exactly what I needed.
11-12-2012 08:29 AM
Glad to help!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide