---
title: Manage Monitoring Configurations
description: The CLI is a powerful tool for License configurations. Use the commands in this article to list, retrieve, create, update, import, mask, and delete monitoring configurations.
---

[Skip to content](https://kb.opscompass.com/knowledge/manage-monitoring-configurations#main-content)

[![Opscompass](https://kb.opscompass.com/hubfs/opscompass-logo-2024-web-small.svg)](https://opscompass.com)

- [Home](https://opscompass.com/)
- [Why Opscompass](https://opscompass.com/why-opscompass/)
- Product
  
  Show submenu for Product

    - [Inventory](https://opscompass.com/inventory/)
    - [Configuration Drift](https://opscompass.com/product/configuration-drift/)
    - [Compliance](https://opscompass.com/product/compliance/)
    - [Licenses](https://opscompass.com/solutions/licenses/)
- Solutions
  
  Show submenu for Solutions

    - [Hybrid and Multi-Cloud Visibility](https://opscompass.com/solutions/multi-cloud-visibility/)
- [About Us](https://opscompass.com/company/)

Open main navigation

Close main navigation

- [Home](https://opscompass.com/)
- [Why Opscompass](https://opscompass.com/why-opscompass/)
- Product
  
  Show submenu for Product

    - [Inventory](https://opscompass.com/inventory/)
    - [Configuration Drift](https://opscompass.com/product/configuration-drift/)
    - [Compliance](https://opscompass.com/product/compliance/)
    - [Licenses](https://opscompass.com/solutions/licenses/)
- Solutions
  
  Show submenu for Solutions

    - [Hybrid and Multi-Cloud Visibility](https://opscompass.com/solutions/multi-cloud-visibility/)
- [About Us](https://opscompass.com/company/)
- [Get a Demo](https://opscompass.com/demo/)

[Get a Demo](https://opscompass.com/demo/)

 What are you looking for?

- There are no suggestions because the search field is empty.

1. [Help Center](https://kb.opscompass.com/knowledge)
2. [Opscompass CLI](https://kb.opscompass.com/knowledge/opscompass-cli)
3. [Licensing](https://kb.opscompass.com/knowledge/opscompass-cli#licensing)

# Manage Monitoring Configurations

## These are called “Data Gathering Configuration” in Opscompass. Most companies will only have one configuration, but you can create more if desired.

A monitoring configuration contains settings for data gathering, including script updates, configuration updates, file retention, encryption, and notifications.

Use the commands in this article to list, retrieve, create, update, import, mask, and delete monitoring configurations.

Commands use this format:

```
opscompass license-manager <command> [parameters]
```

Replace example company slugs and configuration IDs with your own values.

### `list-monitoring-configurations`

Lists all of the monitoring configurations associated with the given company.

**Parameters:**

- `--company [company_slug]` — Your company slug. If omitted, the CLI uses your saved company default.

**Example:**

```
opscompass license-manager list-monitoring-configurations --company acmeinc
```

Use the monitoring configuration ID returned by this command when retrieving or updating a configuration.

 

### `get-monitoring-configuration`

Gets a monitoring configuration from Opscompass.

**Parameters:**

- `--id [monitoring_configuration_id]`
- `--asFile` (optional) `{true|false}` — Fetch configuration as a file.
- `--saveFile` (optional) `{true|false|save-path}` — Save configuration locally. Implies `--asFile`.

**Example:**

```
opscompass license-manager get-monitoring-configuration --id 123
```

### `read-monitoring-configuration`

Reads a locally saved monitoring configuration.

**Parameters:**

- `--id [monitoring_configuration_id]`
- `--list-details` — Return the file metadata.

**Example:**

```
opscompass license-manager read-monitoring-configuration --id 1234. Create a configuration
```

### `create-monitoring-configuration`

Creates a monitoring configuration associated with the given company.

**Parameters:**

- `--company [company_slug]` — Your company slug. If omitted, the CLI uses your saved company default.
- `--configurationName [configuration name]`
- `--autoUpdateScripts` (optional) `[true | false]` — Automatically update scripts when the scripts are run.
- `--autoUpdateConfigurations` (optional) `[true | false]` — Automatically update configurations when scripts are run.

**Example:**

```
opscompass license-manager create-monitoring-configuration --company acmeinc --configurationName "Production Data Gathering"
```

To add individual connections and credentials to the configuration, see **Manage Connections and Credentials**.

### `update-monitoring-configuration`

Updates a monitoring configuration. You may find it easier to use the Opscompass web interface for this command.

**Parameters:**

- `--id [monitoring_configuration_id]`
- `--name` or `--configuration-name` (optional) `[unique name]`
- `--autoUpdateConfigurations` (optional) `[true | false]`
- `--autoUpdateScripts` (optional) `[true | false]`
- `--dataFileRetainDays` (optional) — Determines how many days to retain encrypted output files locally.
- `--dataFileRetainTextDays` (optional) — Determines how many days to retain individual script output files locally.
- `--forceFileEncryption` (optional) — Enforce encryption of datafiles before being sent.
- `--dataFileTag` (optional) — Used to help filename generation to prevent duplicate file names.
- `--mailFrom` (optional) — Identifies sender email addresses when file delivery is done through email. Use the parameter multiple times to specify multiple addresses.
- `--emailTo` (optional) — Identifies destination email addresses when file delivery is done through email. Use the parameter multiple times to specify multiple addresses.
- `--notificationEmailTo` (optional) — Identifies destination email addresses for notifications. Use the parameter multiple times to specify multiple addresses.
- `--logFileRetainDays` (optional) — Determines how many days to retain log files locally.
- `--logFileTag` (optional) — Used to help filename generation to prevent duplicate file names.

**Example:**

```
opscompass license-manager update-monitoring-configuration --id 123 --name "Production Data Gathering"6. Import a configuration
```

### `import-monitoring-configuration`

Imports settings and connection information from a bulk JSON file. You can import into an existing monitoring configuration or create a new one.

The command also supports the alias `import-monitoring-configuration-file`.

**Parameters:**

- `<file.json>` — Required. Path to the bulk JSON file.
- `--company [company_slug]` — Your company slug. If omitted, the CLI uses your saved company default.
- `--id [monitoring_configuration_id]` (optional) — Import into an existing monitoring configuration.
- `--name [configuration name]` (optional) — Name to use when creating a new configuration.

**How the destination is selected:**

- If the JSON contains a `configurationId`, that value takes precedence over `--id`.
- Otherwise, `--id` selects an existing configuration.
- If neither is provided, the command creates a new configuration.
- For a new configuration, `--name` supplies the name. If omitted, the filename without its `.json` extension is used.

**Example: import into an existing configuration**

This example assumes the JSON file does not contain a different `configurationId`:

```
opscompass license-manager import-monitoring-configuration --company acmeinc --id 123 "./monitoring-config.json"
```

**Example: create a configuration from a file**

The JSON file must not contain a `configurationId` when you intend to create a new configuration:

```
opscompass license-manager import-monitoring-configuration --company acmeinc --name "Imported Data Gathering" "./monitoring-config.json"
```

**Example JSON containing configuration settings:**

```
{   "OC_AUTOUPDATE_configs": true,   "OC_AUTOUPDATE_scripts": true,   "data_files": {     "retain_days": 30,     "retain_txt_days": 7   },   "log_files": {     "retain_days": 30   } }
```

These retention values are examples, not defaults.

The bulk format can also contain shared credentials and Oracle, SQL Server, Nutanix, vCenter, and network-discovery connection information. Connection entries are submitted for creation; importing is not a general-purpose synchronization of existing connections.

After processing the import, the CLI retrieves and saves the resulting configuration locally. Review all reported errors. An import can make some changes successfully before reporting an error, so check the resulting configuration before retrying.

### `mask-monitoring-configurations`

Provides tools for managing sensitive data associated with the given company. Most companies will not need this. If you wish to enable masking, contact Opscompass support for more information.

**Parameters:**

- `--company [company_slug]` — Your company slug. If omitted, the CLI uses your saved company default.

**Actions available for maskValues:**

- `dumpTable` — Dumps the mask table for the specified property.
- `lookup` — Gets a value from mask.
- `set` — Sets a value to mask.

**Parameters:**

`--type ( md5 | sha256 ) [required] property[=value] [required]`

### `delete-monitoring-configuration`

Deletes a monitoring configuration.

**Parameters:**

- `--id [monitoring_configuration_id]`

**Example:**

```
opscompass license-manager delete-monitoring-configuration --id 123
```

Confirm that the ID identifies the configuration you intend to delete before running the command.

- [About Opscompass](https://kb.opscompass.com/knowledge/about-opscompass#main-content)

    - [Company Information](https://kb.opscompass.com/knowledge/about-opscompass#company-information)
- [Getting Started](https://kb.opscompass.com/knowledge/getting-started#main-content)

    - [Logging In](https://kb.opscompass.com/knowledge/getting-started#logging-in)
    - [Connecting Cloud Accounts](https://kb.opscompass.com/knowledge/getting-started#connecting-cloud-accounts)
    - [Users and Teams](https://kb.opscompass.com/knowledge/getting-started#users-and-teams)
- [New Features](https://kb.opscompass.com/knowledge/new-features)
- [Opscompass CLI](https://kb.opscompass.com/knowledge/opscompass-cli#main-content)

    - [Getting Started](https://kb.opscompass.com/knowledge/opscompass-cli#getting-started)
    - [Resources and Inventory](https://kb.opscompass.com/knowledge/opscompass-cli#resources-and-inventory)
    - [Compliance](https://kb.opscompass.com/knowledge/opscompass-cli#compliance)
    - [Licensing](https://kb.opscompass.com/knowledge/opscompass-cli#licensing)
    - [Data Gathering](https://kb.opscompass.com/knowledge/opscompass-cli#data-gathering)
    - [Expiration](https://kb.opscompass.com/knowledge/opscompass-cli#expiration)
- [Opscompass FAQs](https://kb.opscompass.com/knowledge/opscompass-faqs#main-content)

    - [General](https://kb.opscompass.com/knowledge/opscompass-faqs#general)
- [Account Management](https://kb.opscompass.com/knowledge/account-management)
- [Compliance](https://kb.opscompass.com/knowledge/compliance)
- [Documents](https://kb.opscompass.com/knowledge/documents)
- [Drift](https://kb.opscompass.com/knowledge/drift)
- [Inventory](https://kb.opscompass.com/knowledge/inventory)
- [Licenses](https://kb.opscompass.com/knowledge/licenses#main-content)

    - [Oracle](https://kb.opscompass.com/knowledge/licenses#oracle)
    - [SQL Server](https://kb.opscompass.com/knowledge/licenses#sql-server)
- [Navigation and Dashboard](https://kb.opscompass.com/knowledge/navigation-and-dashboard)
- [Opscompass Integrations](https://kb.opscompass.com/knowledge/opscompass-integrations)
- [Understanding the Product](https://kb.opscompass.com/knowledge/understanding-the-product)
- [Tutorials](https://kb.opscompass.com/knowledge/tutorials#main-content)

    - [CLI](https://kb.opscompass.com/knowledge/tutorials#cli)

[![Opscompass](https://kb.opscompass.com/hubfs/opscompass-logo-2024-web-small.svg "Opscompass")](http://opscompass.com)

<https://opscompass.com/contact/> <https://www.linkedin.com/company/opscompass/>

Copyright © 2025, Opscompass