Skip to main content

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

lmrun-0.0.7.tar.gz (3.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page