A CLI to run Groovy or PowerShell scripts on a LogicMonitor collector for debugging purposes
Project description
lmrun
A CLI to run Groovy or PowerShell scripts on a LogicMonitor collector for debugging purposes.
Installation
From PyPi:
pip install lmrun
From source:
python setup.py
Usage
Sign In
First use the login command to log into LogicMonitor by specifying your API ID and Key
C:\> lmrun login
Please enter your LogicMonitor company name:
Please enter the API access id:
Please enter the API access key:
or via cli parameters
lmrun login --company company_name --access_id abc123 --access_key def456
This will create a config.json file in the ~\.lmrun directory.
Run a script
Then use the execute or exe command by passing a .groovy or .ps1 file, and the name of the monitored device to run the script against.
lmrun execute test.groovy SRV-01
lmrun exe test.ps1 SRV-01
lmrun exe test.groovy SRV-01
Logout
If you wish to delete the saved credentials located in ~\.lmrun\config.json simply run:
lmrun logout
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file lmrun-0.0.8.tar.gz.
File metadata
- Download URL: lmrun-0.0.8.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7c2145fa9e2dc885640d5aa510ee7acc5a2c2fb02a2900e936d96db3a5e779d
|
|
| MD5 |
987e54e4b6de8981c5d6d98222d647fc
|
|
| BLAKE2b-256 |
bd42ecbdc48495c190b0131d1f32e5960de2f5e7909d14c98c30f0132338dfee
|