### MetricsHub
MetricsHub 1.0.00

Home
- Troubleshooting
Protocol CLIs 10

# WMI CLI

The MetricsHub WMI CLI allows you to execute WMI queries on remote systems. It supports querying namespaces, retrieving system information, and managing resources.

## Syntax

    wmicli <HOSTNAME> --username <USERNAME> --password <PASSWORD> --namespace <NAMESPACE> --query <QUERY> --timeout <TIMEOUT>

## Options

Option | Description | Default Value
--- | --- | ---
`HOSTNAME` | Hostname or IP address of the WMI-enabled device. This option is required | None
`--username` | Username for WMI authentication. | None
`--password` | Password for WMI authentication. If not provided, you will be prompted interactively. | None
`--timeout` | Timeout in seconds for WMI operations. | 30
`--query` | WMI query to execute. | None (required)
`--namespace` | Namespace for the WMI query. | None (required)
`-v` | Enables verbose mode. Use `-v` for basic logs, `-vv` for detailed logs. | None
`-h, --help` | Displays detailed help information about available options. | None

## Examples

### Example 1: Basic WMI Query

    wmicli dev-01 --username admin --password secret --namespace "root/cimv2" --query "SELECT * FROM Win32_OperatingSystem" --timeout 30

### Example 2: Interactive Password Input

    wmicli dev-01 --username admin --namespace "root/cimv2" --query "SELECT * FROM CIM_ManagedElement"

The CLI prompts for the password if not provided.

wmi cli monitoring observability opentelemetry otel

## Search Results for {{siteSearch | truncate:'50'}}

{{resultArray.length}}
{{parent.title}} {{parent.title}}

{{result.title}}

{{result.body | truncate:'400'}}

{{parent.title}}
{{result.title}}
{{result.body | truncate:'100'}}

No results.