- bash for installation and start script
- curl for installation
- Java 8 installed
curl -sL https://raw.githubusercontent.com/cbuschka/jmxtool/main/install.sh -o - | bash
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
jmxtool.sh help
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
Written 2019 by Cornelius Buschka.