https://github.com/cbuschka/jmxtool
jmxtool - Command line tool to easily access jmx information
https://github.com/cbuschka/jmxtool
command-line-tool java java8 jmx
Last synced: 3 months ago
JSON representation
jmxtool - Command line tool to easily access jmx information
- Host: GitHub
- URL: https://github.com/cbuschka/jmxtool
- Owner: cbuschka
- License: apache-2.0
- Created: 2019-08-23T16:54:58.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-09-21T07:20:46.000Z (over 3 years ago)
- Last Synced: 2025-01-16T04:24:37.211Z (about 1 year ago)
- Topics: command-line-tool, java, java8, jmx
- Language: Java
- Homepage:
- Size: 52.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# jmxtool - Command line tool to easily access jmx information
## Prerequisites
* bash for installation and start script
* curl for installation
* Java 8 installed
## Installation
```bash
curl -sL https://raw.githubusercontent.com/cbuschka/jmxtool/main/install.sh -o - | bash
```
## Usage
### Get an MBean attribute
```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
```
### Get command list
```bash
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](https://github.com/cbuschka).
## License
[Apache License, Version 2.0](./license.txt)