Spanning Tree may be disabled globally or on a per port basis. If Spanning Tree is disabled globally all linked ports will be in a forwarding state and the Spanning Tree Protocol will not run. Additionally, a received BPDU will be treated as any multicast packet and flooded out all ports.
If Spanning Tree is disabled on a port by setting portadmin to disabled using the set spantree portadmin command, the port will be in a forwarding state and the protocol will not run for that port. A received BPDU will be consumed. The intention is that the port terminates the Spanning Tree domain. For instance, the port may be attached to a router. If this port were accidentally attached to another switching port, a data loop may result.