SonicWall interview question

TCL regular expression, substitutions, control structures, a script to check interface status