资 源 简 介
Overview
SSH Sampler for Jakarta JMeter that executes commands (eg, iostat) over an SSH session, and returns the output. The output may then be parsed or logged by a listener for use elsewhere in the testing process.
Installation
Installation is fairly straightforward, and only involves adding the plugin and JSch to the right directory:
1. Place the jmeter-ssh-sampler jar file into JMeter"s lib/ext directory
1. Place JSch into JMeter"s lib directory
1. Run JMeter, and find "SSH Sampler" in the Samplers category
Usage
Using the plugin is simple (assuming familiarity with SSH and JMeter):
1. Create a new Test Plan
1. Add a Thread Group
1. Add a Sampler > SSH Command
1. Specify the host to connect to, port, username and password (unencrypted), and a command to execute (such as date)
1. Add a Listener > View Results Tree
1. Run the test
Dependencies
<