jManage
 

jManage Command Line Reference

Author:  Rakesh Kalra (rkalra@jmanage.org)

Overview

jManage command line interface (CLI) supports most of the commonly used JMX operations. It uses jManage server as the proxy for communicating with the JMX enabled applications.
[If time permits we will release a standalone command line interface as part of 0.5 release, which could be used to directly interact with the JMX enabled applications. If not, this will follow immediatly after 0.5 release.]

jManage CLI is invoked by running jmanage script (jmanage.cmd for windows and jmanage.sh for unix):

jmanage [-username <username>] [-password <password>] [-verbose[=<level>]] [command] [command args]

The username/password are for authenticating with the jManage server. Users in jManage are created by System Administrator via the web UI.

Usages

jManage CLI can be be used in command execution mode or prompt mode. In the command execution mode, the command is specified as an argument to the jmanage script. For example:

jmanage -username admin -password 123456 execute myApplication/myMBean myOperation arg1

In this mode, jmanage CLI executes the command and exits.

If command is not specified as an argument to the jmanage script, after successful authentication, you get into a prompt mode. The commands can then be executed in the prompt mode.

Commands

apps Lists all configured applications in jManage.
mbeans Queries mbeans for the given application.
cmbeans Lists configured mbeans for the given application.
info Display information about the mbean.
get Gets attribute values for given mbean.
print Prints tab delimited value(s) for given mbean attribute(s).
set Sets attribute value. Used for setting complex values (e.g. with spaces).
setattrs Sets one or more attribute values.
execute Executes given operation on mbean.
help Prints jManage command line help. help <command> provides detailed help on given command.
exit Exits from jManage command prompt mode.