<BR /> #!/usr/bin/env python <BR /> import pexpect # <BR /> child = pexpect.spawn ('ssh 192.168.1.10') <BR /> child.expect ('Please login:') <BR /> child.sendline ('myuserid) <BR /> child.expect ('password :') <BR /> child.sendline ('mypassword') <BR /> child.expect ('rkscli:') # the normal AP prompt <BR /> child.sendline ('get syslog log') <BR /> print child.before #this object refers to the output of the last child call <BR /> child.interact() #puts me on the AP CLI <BR />