in reply to search for a string and return previous relating string if found

Try this:
perl -nE "m/^interface (\S+)/ and $int=$1; m/ spanning-tree guard root +/ and print qq|$int $_|" YOUR-FILE.txt
prints:
FastEthernet1/0/3 spanning-tree guard root
Somewhat simple-minded, but should do the trick.

                All power corrupts, but we need electricity.