How to run multiple command on remote machine using SSH Command Sampler

1,207 views
Skip to first unread message

rluc...@gmail.com

unread,
Oct 13, 2016, 6:37:25 AM10/13/16
to jmeter-plugins
Hi,

I need to run some multiple command on the remote machine from my local JMeter.

I am using SSH Command Sampler but I am able to run only single command at a time.

Any help on this is highly appreciated.


Thanks,
Luci

san...@pa7.nl

unread,
Oct 14, 2016, 7:06:06 AM10/14/16
to jmeter-plugins, rluc...@gmail.com
Hi Luci,

Can you give more information concerning your issue?
Isn't it possible to execute the script with multiple threads at the same time or do you want to run more than one command?

If you want to run more than one command you will have to add one SSH sampler for each command.

Did you also try to find information with google? http://stackoverflow.com/questions/34291226/running-ssh-commands-and-shell-scripts-from-jmeter
This blog is also interesting: https://www.blazemeter.com/blog/how-run-external-commands-and-programs-locally-and-remotely-jmeter

Kind regards,
Sander

rluc...@gmail.com

unread,
Oct 17, 2016, 5:13:16 AM10/17/16
to jmeter-plugins, rluc...@gmail.com, san...@pa7.nl
Thanks for the detail.

I was looking for executing multiple commands using one SSH Command Sampler. And I found the solution. 

It can be done using '&&' separater :)


Thanks!

ravikumar...@gmail.com

unread,
Feb 13, 2017, 8:09:42 AM2/13/17
to jmeter-plugins, rluc...@gmail.com, san...@pa7.nl
You can also use ";" seperator
Reply all
Reply to author
Forward
0 new messages