Is there are way to disable spanning-tree globally on a cisco switch instead of per vlan? Can you provide the commmad? Why you ask..to bypass BPDUguard configured on another switch. Thanks in advance.
spanning-tree bpdufilter enable
be enough on the port connecting to the other switch?
Or apply BPDUfilter on all ports
Not recommending you do that, because that against the best practice; just want give you another option.
What is switch and IOS model.
If you are running a switch with CatOS model, the try this command
set spantree disable [vlan | all]
As you already, it is not recommended to turn STP off.
There is no global command to disable spanning tree globally.
But, you can disable all configured vlan by "no spanning-tree vlan 1-max vlan no of your vlans"
SW1(config)#no spanning-tree vlan 1-1014
*Mar 1 22:18:00.536: %SYS-5-CONFIG_I: Configured from console by console
No spanning tree instance exists.
Hope this helps.