SIPp / sipp

The SIPp testing tool
https://sipp.readthedocs.io
Other
919 stars 380 forks source link

Facing issues while launching sipp using Python's paramiko execute call #451

Open Abhilash-vaidhya opened 4 years ago

Abhilash-vaidhya commented 4 years ago

This is more of an help requirement rather than an issue

I tried to launch a basic call scenario with paramiko execute. server.execute('sipp -sn uas')

Recieved the following error: std-error: ['Error opening terminal: unknown.\n']

Hence i tried to launch it using a pseudo terminal server.execute('sipp -sn uas',get_pty=True)

However when i am trying to run it on shells background and redirect output to /dev/null ,sipp doesn't get initialised with as well as without the pseudo terminal.

server.execute('sipp -sn uas >/dev/null 2>&1 > server.log & echo $!') or server.execute('sipp -sn uas >/dev/null 2>&1 > server.log & echo $!',get_pty=True)

Though i get the pids as output , i don't find SIPP running in the server. 5373 '5373\n'

However i am able to launch sipp in bg using the above command via SSH. My intention is automate sipp few basic scenarios uac /uas. Please let me know if any plugins exists that can help automate this.

wdoekes commented 4 years ago

If all else fails, TERM=dumb in the environment should get rid of the "Error opening terminal".