An open API service indexing awesome lists of open source software.

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

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)