And of course I kept plugging away and go it. It isn't pretty but it works.
// import the logicmonitor expect helper class
import com.santaba.agent.groovyapi.expect.Expect;
// get the hostname and credentials from the device property table
hostname = hostProps.get("system.hostname");
userid = hostProps.get("config.user");
passwd = hostProps.get("config.pass");
// initiate an ssh connection to the host using the provided credentials
ssh_connection = Expect.open(hostname, userid, passwd);
// wait for the cli prompt, which indicates we've connected
ssh_connection.expect("> ");
// send a command to show the tomcat log file size, along with the newline [enter] character
ssh_connection.send("enable\n");
// wait for the cli prompt to return, which indicates the command has completed
ssh_connection.expect("# ");
ssh_connection.send("terminal length 0\n");
ssh_connection.expect("# ");
// capture all the text up to the expected string. this should look something like
ssh_connection.send("show configuration\n");
ssh_connection.expect(" # ");
cmd_output = ssh_connection.before();
// now that we've capture the data we care about lets exit from the cli
ssh_connection.send("exit\n");
// wait until the external process finishes then close the connection
ssh_connection.expectClose();
println cmd_output;