after using expect and TCL heavily for years, I can firmly say they suck at scale.
Ruby https://github.com/ytti/oxidized/blob/master/lib/oxidized/mo... or TextFSM https://github.com/google/textfsm
are much better options if you need to do a /lot/ of parsing