Skip to content

jmxtool - Command line tool to easily access jmx information

License

Notifications You must be signed in to change notification settings

cbuschka/jmxtool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jmxtool - Command line tool to easily access jmx information

Prerequisites

  • bash for installation and start script
  • curl for installation
  • Java 8 installed

Installation

curl -sL https://raw.githubusercontent.com/cbuschka/jmxtool/main/install.sh -o - | bash

Usage

Get an MBean attribute

jmxtool.sh getAttribute \
	--user=me --password=secret \
	--serviceUrl=service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi \
	--objectName=Catalina:type=Manager,context=/,host=localhost \
	--attributeName=activeSessions

Get command list

jmxtool.sh help

Config, user/password, default values

Any option can be added to ${HOME}/.jmxtool.properties so its value will be applied as a default for this option.

Example:

user=admin
password=secret
serviceUrl=service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

Author

Written 2019 by Cornelius Buschka.

License

Apache License, Version 2.0