Hi
I think this may be cause by incorrect prompt. Once you login to your CS4000, prompt was changed.
Could pleas try:
${user} admin
${pass} password123
open connection {ip} prompt=>
Login ${user} ${pass}
Execute command show ipsec staus
If execute command still not work for you, I suggest to use interactive shell like
${user} admin
${pass} password123
open connection {ip} prompt=>
Write. show ipsec staus
${out}. Read Until Prompt
Regards