Python output in ConnectPort X4 CLI

I have a question about viewing output from python script in CPX4 CLI. I was wandering if there is a way to show output from python ‘print’ instructions in script previously run on connectport when I log into device through SSH or telnet. Sometimes I need to check what messages are generated (in case of any error) and to do this I must reboot gateway and again run script which is not the best solution.

my mistake - I’ve just found solution in previous post so never mind.

Try following cli command.

set trace mode=concurrent mask=printf:*

You will see the python print traces on your telnet session.

True, but this ONLY works if you are auto-running your Python.

if you start the Python manually by telnet then log-off, there is no way to recover the print out put.