The command is executed and the output is filtered to only show lines containing the “string” match and not containing the “string2” match. All other non-matching lines in the output are suppressed. If a line of output contains both the include and exclude strings then the line is not displayed.
The following example shows of the CLI command.
(Extreme 220) (Routing) #show running-config | include “spanning-tree” exclude “configuration”
spanning-tree bpduguard
spanning-tree bpdufilter default