logic in pexcept
Hi I am using pexcept in python to read ssh device information.

    expObject = pexpect.spawn('/usr/bin/ssh %s@%s' % (username, device))
    expObject.sendline(password)

After giving the password  I have show some device information and in command prompt it will ask press any key to continue; Once I press any key the info disappears. 

I use below logic to capture other data coming after giving command like "show version"
        expObject.expect(CLI_PROMPT)
        data = expObject.before
So how do I capture the data which is displayed after giving password and before pressing any key to comtinue using "expObject".



logic in pexcept
===

Hi I am using pexcept in python to read ssh device information.

    expObject = pexpect.spawn('/usr/bin/ssh %s@%s' % (username, device))
    expObject.sendline(password)

After giving the password  I have show some device information and in command prompt it will ask press any key to continue; Once I press any key the info disappears. 

I use below logic to capture other data coming after giving command like "show version"
        expObject.expect(CLI_PROMPT)
        data = expObject.before
So how do I capture the data which is displayed after giving password and before pressing any key to comtinue using "expObject".


