montecarlo agents (CLI v1)

montecarlo agents is part of v1 of the Monte Carlo CLI, the Python CLI (montecarlo, installed with pip install montecarlodata). This page covers its subcommands, usage and options.

Manage a Monte Carlo Agent.

montecarlo agents [OPTIONS] COMMAND [ARGS]...

montecarlo agents deregister

Deregister an Agent.

montecarlo agents deregister [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of Agent to deregister.

Source: montecarlo agents deregister in the CLI reference

montecarlo agents disable

Disable an Agent.

montecarlo agents disable [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of Agent to disable.

Source: montecarlo agents disable in the CLI reference

montecarlo agents enable

Enable an Agent. Runs reachability before flipping the state.

montecarlo agents enable [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of Agent to enable.
  • --dry-run: Run the precondition + reachability check without changing the agent's state. Default: False.

Source: montecarlo agents enable in the CLI reference

montecarlo agents get-aws-template

Displays the current CloudFormation template in use by an AWS Agent, in YAML format.

montecarlo agents get-aws-template [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of Agent.

Source: montecarlo agents get-aws-template in the CLI reference

montecarlo agents get-aws-template-parameters

Displays the current CloudFormation template parameters in use by an AWS Agent. For Terraform it displays the current value for MemorySize and ConcurrentExecutions.

montecarlo agents get-aws-template-parameters [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of Agent.

Source: montecarlo agents get-aws-template-parameters in the CLI reference

montecarlo agents get-aws-upgrade-logs

Returns the upgrade logs for a remote AWS Agent.

montecarlo agents get-aws-upgrade-logs [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of Agent.
  • --limit <limit>: Maximum number of log events to return, defaults to 100
  • --start-time <start_time>: Optional start time, for example: 2023-12-02T13:40:25Z. Defaults to 12 hours ago.

Source: montecarlo agents get-aws-upgrade-logs in the CLI reference

montecarlo agents get-operation-logs

Returns the operation logs for a remote agent.

montecarlo agents get-operation-logs [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of Agent.
  • --start-time <start_time>: Optional start time, for example: 2023-12-02T13:40:25Z. Defaults to 10 minutes ago.
  • --end-time <end_time>: Optional end time, for example: 2023-12-02T13:45:25Z. Defaults to now.
  • --limit <limit>: Maximum number of log events to return, defaults to 1,000
  • --connection-type <connection_type>: Optional connection type to filter logs, for example snowflake, redshift, etc.

Source: montecarlo agents get-operation-logs in the CLI reference

montecarlo agents health

Perform a health check of the Agent.

montecarlo agents health [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of Agent.

Source: montecarlo agents health in the CLI reference

montecarlo agents list

List all agents in account.

montecarlo agents list [OPTIONS]

Options

  • --show-inactive: Only list active agents. Default: False.

Source: montecarlo agents list in the CLI reference

montecarlo agents register-aws-agent

Register a Remote AWS Agent. AWS assume-role registration is a two-step flow: run first without --assumable-role / --lambda-arn to register a stub and obtain the Monte Carlo generated ExternalId, then run again with --agent-id, --assumable-role, and --lambda-arn to complete the registration (the agent is enabled automatically once everything is in place).

montecarlo agents register-aws-agent [OPTIONS]

Options

  • --assumable-role <assumable_role>: ARN of AWS assumable role. Optional on first registration; required to complete the registration via --agent-id.
  • --lambda-arn <lambda_arn>: ARN of AWS Lambda function. Optional on first registration; required to complete the registration via --agent-id.
  • --storage-type <storage_type>: Storage type for agent data store. Options: S3 | S3_COMPATIBLE. Default: S3.
  • --dry-run: Dry run (validates credentials but doesn't create agent). Default: False.
  • --collector-id <dc_id>: Existing collector to attach the agent to. If omitted, a new collector is provisioned automatically.
  • --agent-id <agent_id>: UUID of existing Agent to update.

Source: montecarlo agents register-aws-agent in the CLI reference

montecarlo agents register-aws-proxied-agent

Register a Remote AWS Proxied Agent.

montecarlo agents register-aws-proxied-agent [OPTIONS]

Options

  • --authentication <authentication>: Authentication type. Options: oauth2_client_credentials | oauth2_password.
  • --proxy-endpoint <proxy_endpoint>: Required HTTP/HTTPS Proxy URL.
  • --auth-url <auth_url>: OAuth2 Client Credentials - Authentication URL, used to get the access token.
  • --client-id <client_id>: OAuth2 Client Credentials - Client ID.
  • --client-secret <client_secret>: OAuth2 Client Credentials - Client Secret. If you prefer a prompt (with hidden input) enter -1 This option requires setting 'auth-url', and 'client-id'.
  • --username <username>: OAuth2 Username/Password - Username. This option requires setting 'auth-url', 'authentication', and 'password'.
  • --password <password>: OAuth2 Username/Password - Password. If you prefer a prompt (with hidden input) enter -1 This option requires setting 'auth-url', 'authentication', and 'username'.
  • --deployment-type <deployment_type>: Specify if this AWS Agent is deployed as 'lambda' or 'generic' (e.g. ECS, EKS, EC2) Options: lambda | generic.
  • --storage-type <storage_type>: Storage type for agent data store. Options: S3 | S3_COMPATIBLE. Default: S3.
  • --dry-run: Dry run (validates credentials but doesn't create agent). Default: False.
  • --collector-id <dc_id>: Existing collector to attach the agent to. If omitted, a new collector is provisioned automatically.
  • --client-certificate <client_certificate>: Path to the file that contains a client certificate for agent connectivity.
  • --private-key <private_key>: Path to the file that contains a private key for the client certificate for agent connectivity. This option requires setting 'client-certificate'.
  • --agent-id <agent_id>: UUID of existing Agent to update.

Source: montecarlo agents register-aws-proxied-agent in the CLI reference

montecarlo agents register-azure-agent

Register a Remote Azure Agent.

montecarlo agents register-azure-agent [OPTIONS]

Options

  • --auth-type <authentication>: Authentication type. Options: app-key | service-principal. Default: app-key.
  • --app-key <app_key>: [app-key auth] App key from the Azure Function. If you prefer a prompt (with hidden input) enter -1
  • --url <url>: Required URL for accessing agent.
  • --sp-tenant-id <sp_tenant_id>: [service-principal auth] Azure Active Directory tenant ID.
  • --sp-client-id <sp_client_id>: [service-principal auth] Application (client) ID of the service principal.
  • --sp-client-secret <sp_client_secret>: [service-principal auth] Client secret for the service principal. If you prefer a prompt (with hidden input) enter -1
  • --sp-audience <sp_audience>: [service-principal auth] Application ID URI (audience) of the Azure Function.
  • --dry-run: Dry run (validates credentials but doesn't create agent). Default: False.
  • --collector-id <dc_id>: Existing collector to attach the agent to. If omitted, a new collector is provisioned automatically.
  • --client-certificate <client_certificate>: Path to the file that contains a client certificate for agent connectivity.
  • --private-key <private_key>: Path to the file that contains a private key for the client certificate for agent connectivity. This option requires setting 'client-certificate'.
  • --agent-id <agent_id>: UUID of existing Agent to update.

Source: montecarlo agents register-azure-agent in the CLI reference

montecarlo agents register-azure-blob-store

Register a Data Store Agent with remote Azure Blob storage container.

montecarlo agents register-azure-blob-store [OPTIONS]

Options

  • --authentication <authentication>: Authentication type. Options: connection-string | service-principal. Default: connection-string.
  • --connection-string <connection_string>: [connection-string auth] Connection string for the Azure storage account. If you prefer a prompt (with hidden input) enter -1
  • --container-name <container_name>: Required Name of Azure Storage container for data store.
  • --tenant-id <tenant_id>: [service-principal auth] Azure Active Directory tenant ID.
  • --client-id <client_id>: [service-principal auth] Application (client) ID of the service principal.
  • --client-secret <client_secret>: [service-principal auth] Client secret for the service principal. If you prefer a prompt (with hidden input) enter -1
  • --account-url <account_url>: [service-principal auth] URL of the Azure storage account.
  • --dry-run: Dry run (validates credentials but doesn't create agent). Default: False.
  • --collector-id <dc_id>: Existing collector to attach the agent to. If omitted, a new collector is provisioned automatically.
  • --agent-id <agent_id>: UUID of existing Agent to update.

Source: montecarlo agents register-azure-blob-store in the CLI reference

montecarlo agents register-gcp-agent

Register a Remote GCP Agent.

montecarlo agents register-gcp-agent [OPTIONS]

Options

  • --key-file <key_file>: Required JSON Key file if auth type is GCP JSON service account key.
  • --url <url>: Required URL for accessing agent.
  • --dry-run: Dry run (validates credentials but doesn't create agent). Default: False.
  • --collector-id <dc_id>: Existing collector to attach the agent to. If omitted, a new collector is provisioned automatically.
  • --client-certificate <client_certificate>: Path to the file that contains a client certificate for agent connectivity.
  • --private-key <private_key>: Path to the file that contains a private key for the client certificate for agent connectivity. This option requires setting 'client-certificate'.
  • --agent-id <agent_id>: UUID of existing Agent to update.

Source: montecarlo agents register-gcp-agent in the CLI reference

montecarlo agents register-gcp-proxied-agent

Register a Remote GCP Proxied Agent.

montecarlo agents register-gcp-proxied-agent [OPTIONS]

Options

  • --authentication <authentication>: Authentication type. Options: oauth2_client_credentials | oauth2_password.
  • --proxy-endpoint <proxy_endpoint>: Required HTTP/HTTPS Proxy URL.
  • --auth-url <auth_url>: OAuth2 Client Credentials - Authentication URL, used to get the access token.
  • --client-id <client_id>: OAuth2 Client Credentials - Client ID.
  • --client-secret <client_secret>: OAuth2 Client Credentials - Client Secret. If you prefer a prompt (with hidden input) enter -1 This option requires setting 'auth-url', and 'client-id'.
  • --username <username>: OAuth2 Username/Password - Username. This option requires setting 'auth-url', 'authentication', and 'password'.
  • --password <password>: OAuth2 Username/Password - Password. If you prefer a prompt (with hidden input) enter -1 This option requires setting 'auth-url', 'authentication', and 'username'.
  • --dry-run: Dry run (validates credentials but doesn't create agent). Default: False.
  • --collector-id <dc_id>: Existing collector to attach the agent to. If omitted, a new collector is provisioned automatically.
  • --client-certificate <client_certificate>: Path to the file that contains a client certificate for agent connectivity.
  • --private-key <private_key>: Path to the file that contains a private key for the client certificate for agent connectivity. This option requires setting 'client-certificate'.
  • --agent-id <agent_id>: UUID of existing Agent to update.

Source: montecarlo agents register-gcp-proxied-agent in the CLI reference

montecarlo agents register-gcs-store

Register a Data Store Agent with Google Cloud Storage.

montecarlo agents register-gcs-store [OPTIONS]

Options

  • --key-file <key_file>: Required JSON Key file if auth type is GCP JSON service account key.
  • --bucket-name <bucket_name>: Required Name of GCS bucket for data store.
  • --dry-run: Dry run (validates credentials but doesn't create agent). Default: False.
  • --collector-id <dc_id>: Existing collector to attach the agent to. If omitted, a new collector is provisioned automatically.
  • --agent-id <agent_id>: UUID of existing Agent to update.

Source: montecarlo agents register-gcs-store in the CLI reference

montecarlo agents register-s3-store

Register a Data Store Agent with remote S3 bucket. AWS assume-role registration is a two-step flow: run first without --assumable-role / --bucket-name to register a stub and obtain the Monte Carlo generated ExternalId, then run again with --agent-id, --assumable-role, and --bucket-name to complete the registration (the agent is enabled automatically once everything is in place).

montecarlo agents register-s3-store [OPTIONS]

Options

  • --assumable-role <assumable_role>: ARN of AWS assumable role. Optional on first registration; required to complete the registration via --agent-id.
  • --bucket-name <bucket_name>: Name of S3 bucket for data store. Optional on first registration; required to complete the registration via --agent-id.
  • --dry-run: Dry run (validates credentials but doesn't create agent). Default: False.
  • --collector-id <dc_id>: Existing collector to attach the agent to. If omitted, a new collector is provisioned automatically.
  • --agent-id <agent_id>: UUID of existing Agent to update.

Source: montecarlo agents register-s3-store in the CLI reference

montecarlo agents rotate-aws-external-id

Rotate the AWS IAM ExternalId for an AWS assume-role agent. The agent will fail to assume the customer role until the new value is pinned in the role's trust policy.

montecarlo agents rotate-aws-external-id [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of AWS Agent.
  • --no-prompt: Don't ask for confirmation. Default: False.

Source: montecarlo agents rotate-aws-external-id in the CLI reference

montecarlo agents test-tcp-open

Tests if a destination exists and accepts requests. Opens a TCP Socket to a specific port from the agent.

montecarlo agents test-tcp-open [OPTIONS]

Options

  • --agent-id <agent_id>: ID for the agent. To disambiguate accounts with multiple agents. This option cannot be used with 'dc-id'.
  • --collector-id <dc_id>: ID for the data collector. To disambiguate accounts with multiple collectors. This option cannot be used with 'agent-id'.
  • --host <host>: Required Host to check.
  • --port <port>: Required Port to check.
  • --timeout <timeout>: Timeout in seconds. Default: 5.

Source: montecarlo agents test-tcp-open in the CLI reference

montecarlo agents test-telnet

Checks if telnet connection is usable from the agent.

montecarlo agents test-telnet [OPTIONS]

Options

  • --agent-id <agent_id>: ID for the agent. To disambiguate accounts with multiple agents. This option cannot be used with 'dc-id'.
  • --collector-id <dc_id>: ID for the data collector. To disambiguate accounts with multiple collectors. This option cannot be used with 'agent-id'.
  • --host <host>: Required Host to check.
  • --port <port>: Required Port to check.
  • --timeout <timeout>: Timeout in seconds. Default: 5.

Source: montecarlo agents test-telnet in the CLI reference

montecarlo agents upgrade

Upgrades the running version of an Agent.

montecarlo agents upgrade [OPTIONS]

Options

  • --agent-id <agent_id>: Required UUID of Agent to upgrade.
  • --image-tag <image_tag>: Image version to upgrade to.
  • --params <parameters>: Parameters key,value pairs as JSON. If a key is not specified the existing (or default) value is used.  E.g. --params '{"MemorySize":"1024", "ConcurrentExecutions": "25"}'

Source: montecarlo agents upgrade in the CLI reference

Source: montecarlo agents in the CLI reference

This page is generated from the CLI's help text on each release. Changes made in ReadMe are overwritten.


Did this page help you?