cli_iter function

Printing messages in iterative procedure with cli