how to use JMeterPluginsCMD in jmeter5.3

585 views
Skip to first unread message

yiyang zhang

unread,
Oct 20, 2020, 5:24:17 AM10/20/20
to jmeter-...@googlegroups.com
Hi, 

I istalled Jmeter5.3 and PlugManager1.4, and there is only `PluginsManagerCMD.bat` and `PluginsManagerCMD.sh` in my jmeter bin directory, and when I execute the following command to generate png, the command output error:

jj@MacBook-Pro bin % ./PluginsManagerCMD.sh --generate-png /Users/jj/perf/test.png --input-jtl /Users/jj/perf/sdhb.jtl --plugin-type ResponseTimesOverTime

2020-10-20 16:40:13,222 INFO o.j.r.PluginManagerCMD: Command is: --generate-png

Options for tool 'PluginManagerCMD': <command> <paramstr>  where <command> is one of: help, status, available, upgrades, install, install-all-except, install-for-jmx, uninstall.

ERROR: java.lang.RuntimeException: Failed to perform cmdline operation: Wrong command: --generate-png

*** Problem's technical details go below ***

Home directory was detected as: /Users/jj/apache-jmeter-5.3/lib

Exception in thread "main" java.lang.RuntimeException: Failed to perform cmdline operation: Wrong command: --generate-png

at org.jmeterplugins.repository.PluginManagerCMD.processParams(PluginManagerCMD.java:100)

at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:62)

at kg.apc.cmdtools.PluginsCMD.processParams(PluginsCMD.java:21)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:564)

at kg.apc.cmd.UniversalRunner.main(UniversalRunner.java:115)

Caused by: java.lang.UnsupportedOperationException: Wrong command: --generate-png

at org.jmeterplugins.repository.PluginManagerCMD.processParams(PluginManagerCMD.java:95)

... 7 more

Dmitri Tikhanski

unread,
Oct 20, 2020, 8:58:43 AM10/20/20
to jmeter-plugins
You're using wrong script, PluginsManagerCMD is for command-line operations for the JMeter Plugins Manager, if you need to generate a chart from the command line you need to use JMeterPluginsCMD.sh instead:

./JMeterPluginsCMD.sh --generate-png  /Users/jj/perf/test.png --input-jtl /Users/jj/perf/sdhb.jtl --plugin-type ResponseTimesOverTime

If you don't have JMeterPluginsCMD.sh script in "bin" folder of your JMeter installation you can get it as:

./PluginsManagerCMD.sh install jpgc-cmd

yiyang zhang

unread,
Oct 23, 2020, 8:53:34 PM10/23/20
to jmeter-...@googlegroups.com
Thank you, Dmitri

It’s ok now.



Dmitri Tikhanski <gli...@gmail.com>于2020年10月20日 周二20:58写道:
--
You received this message because you are subscribed to the Google Groups "jmeter-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jmeter-plugin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jmeter-plugins/1d6b65a4-0331-4565-8f87-fe48d291a939n%40googlegroups.com.
--
Sent from my mobile.

Junaid Ahmed

unread,
Jan 8, 2024, 7:53:32 AM1/8/24
to jmeter-plugins
How did you resolve the error ?i want to generate csv from jtl file ??? i have only PluginsManagerCMD.sh in my "bin" folder don't have "JMeterPluginsCMD" any suggestions would be appreciated 

Vincent Daburon

unread,
Jan 9, 2024, 3:44:48 AM1/9/24
to jmeter-plugins
Hi,
With the Plugins Manager choose in the available plugins : Command-Line Graph Plotting Tool.

In this screen, the plugin is already installed

Command-Line Grpah Plotting Tool.png

Regards.
Vincent DAB.
Reply all
Reply to author
Forward
0 new messages