文档

vmware-aria

试用

通过 33 个 MCP 工具查询 VMware Aria Operations 的指标、告警、容量、异常与报告。

它能做什么

面向 VMware Aria Operations 与 vRealize Operations 8.x 的领域监控技能,并扩展支持 VCF Operations 9.1 集群。提供 33 个 MCP 工具(26 只读 + 7 写入),覆盖资源指标、告警查询与生命周期、告警定义管理、容量与耗尽时间预测、右尺寸建议、异常计数与风险评分、报告生成与下载,以及集群证书、密码账号、SDDC 域、诊断发现与实时 PromQL。本地小模型推荐 CLI 模式,云端模型与自动化流水线推荐 MCP 模式,通过 --target 切换多 Aria 实例。

什么时候用它

  • 日常虚拟机健康与争用巡检(CPU Ready、内存 Balloon、Swap)
  • 容量规划:集群耗尽时间预测与右尺寸候选清单
  • 告警分诊:列出、调查、确认或取消活动告警
  • 生成并下载容量或 SLA 报告(PDF/CSV)

技能文档

VMware Aria Operations

Disclaimer: This is a community-maintained open-source project and is not affiliated with, endorsed by, or sponsored by VMware, Inc. or Broadcom Inc. "VMware" and "Aria" are trademarks of Broadcom. Source code is publicly auditable at github.com/vmware-skills/VMware-Aria under the MIT license.

VMware Aria Operations (vRealize Operations / VCF Operations 9.1) AI-assisted monitoring — 33 MCP tools for resources, alerts, alert definitions, capacity planning, anomaly detection, report automation, platform health, and VCF 9.1 fleet certificates/passwords/domains, diagnostic findings, and real-time PromQL metrics.

Domain-focused monitoring skill for Aria Operations 8.x / vRealize Operations 8.x. Companion skills: vmware-nsx (networking), vmware-aiops (VM lifecycle), vmware-monitor (read-only vSphere), vmware-avi (AVI/ALB/AKO), vmware-harden (compliance baselines). | vmware-pilot (workflow orchestration) | vmware-policy (audit/policy)

What This Skill Does

CategoryToolsCount
Resourceslist, get details, metrics, health badge, top consumers5
Alertslist, get details, investigate (alert→resource), acknowledge, cancel, list definitions6
Alert Definitionslist symptoms, create definition, enable/disable, delete4
Capacitycluster overview, remaining capacity, time remaining, rightsizing4
Reportslist templates, generate, list, get status+download URL, delete5
Anomalylist anomalies, risk badge2
HealthAria platform health, collector group status2
Fleet / PromQL (VCF Ops 9.1)fleet certificates, password accounts, VCF domains, diagnostic findings, real-time PromQL query5

Total: 33 tools (26 read-only + 7 write)

Quick Install

uv tool install vmware-aria
vmware-aria init      # guided setup: writes config + .env (chmod 600, password grep-safe), then verifies
vmware-aria doctor

When to Use This Skill

Performance monitoring (daily proactive checks):

  • Check VM contention: CPU Ready %, Memory Balloon, Swap usage
  • Fetch time-series metrics for any resource (CPU, memory, disk, network)
  • Find top consumers by CPU/memory/disk/network
  • Check per-resource anomaly counts and risk badge scores

Alert management:

  • List, investigate, acknowledge, or cancel active alerts
  • List or filter alert definitions (templates)
  • Create new alert definitions from symptom definitions (post-RCA)
  • Enable or disable alert definitions; delete obsolete ones

Capacity planning:

  • Cluster capacity remaining (CPU, memory, disk headroom)
  • Time-until-full prediction per cluster
  • Right-sizing: find over-provisioned or under-utilized VMs
  • Capacity overview with Aria's built-in recommendations

Report automation:

  • Generate scheduled or on-demand reports (capacity, performance, SLA)
  • Poll report status until COMPLETED; get PDF/CSV download URL
  • Delete generated reports after download

Use companion skills for:

  • VM lifecycle: create, clone, snapshot, power → vmware-aiops
  • NSX networking: segments, gateways, NAT, routing → vmware-nsx
  • vSphere inventory, real-time alarms, events → vmware-monitor
  • Storage: iSCSI, vSAN, datastores → vmware-storage
  • Load balancing, AVI/ALB, AKO, Ingress → vmware-avi
User IntentRecommended Skill
Aria Operations monitoring, alerts, capacityvmware-aria ← this skill
VM lifecycle, deployment, guest opsvmware-aiops
NSX networking: segments, gateways, NAT, routingvmware-nsx
Read-only vSphere inventory, events, alarmsvmware-monitor
Storage: iSCSI, vSAN, datastoresvmware-storage
Multi-step workflows with approvalvmware-pilot
Compliance baselines (CIS / 等保 / PCI-DSS), drift detection, LLM remediation advisorvmware-harden (uv tool install vmware-harden)
Load balancer, AVI, ALB, AKO, Ingressvmware-avi (uv tool install vmware-avi)
Audit log queryvmware-policy (vmware-audit CLI)

Common Workflows

Diagnostic investigations: Before running any "why is X slow / failing / down" workflow, follow references/investigation-protocol.md. It enforces the four root-cause completeness criteria (falsifiability / sufficiency / necessity / mechanism) and the up-to-three-rounds deepening loop. Stopping at a partial conclusion is an anti-pattern — always self-check against the criteria before outputting a report.

Daily VM Health Check (Proactive Ops)

Judgment: don't chase the highest CPU consumer — chase the highest contention consumer. A VM at 90% CPU on a quiet host is healthy; a VM at 30% CPU but 15% Ready is starving. Key metrics: CPU Ready, Memory Balloon, Disk Latency.

  1. Find top CPU consumers → vmware-aria resource top --metric cpu|usage_average --top 20 (this is the starting set, not the answer)
  2. Check CPU Ready on hot VMs → vmware-aria resource metrics --metrics cpu.ready.summation --hours 24
    • 5% = warning, >10% = problem, >20% = critical

  3. Check memory pressure → vmware-aria resource metrics --metrics mem.balloon.average,mem.swapped.average --hours 24
    • Balloon >0 = ESXi reclaiming memory; Swap >0 = severe — act immediately
  4. List active CRITICAL/IMMEDIATE alerts → vmware-aria alert list --criticality CRITICAL
  5. Check anomaly counts → vmware-aria anomaly list
  6. Cross-validate against the investigation protocol before reporting any "root cause" — high consumption is rarely the root, usually a downstream symptom

Investigate High CPU Alert

  1. List active CRITICAL alerts → vmware-aria alert list --criticality CRITICAL
  2. Get alert details + symptoms → vmware-aria alert get
  3. Find top CPU consumers → vmware-aria resource top --metric cpu|usage_average
  4. Fetch 24h CPU metrics for the hot VM → vmware-aria resource metrics --metrics cpu|usage_average --hours 24
  5. Check risk badge → vmware-aria anomaly risk
  6. Acknowledge the alert → vmware-aria alert acknowledge

Capacity Planning

  1. List clusters → vmware-aria resource list --kind ClusterComputeResource
  2. Get remaining capacity → vmware-aria capacity remaining
  3. Predict time until full → vmware-aria capacity time-remaining
  4. Get capacity overview with recommendations → vmware-aria capacity overview
  5. Find rightsizing candidates → vmware-aria capacity rightsizing

Post-Incident: Create Detection Alert (RCA Follow-up)

After resolving an incident, create an early-warning alert to prevent recurrence. Alert definition management is MCP-only (no CLI subcommands):

  1. Find matching symptom definitions → MCP list_symptom_definitions (filter by name_filter / resource_kind)
  2. Create alert definition referencing symptoms → MCP create_alert_definition with name, resource_kind, symptom_definition_ids, criticality (any one symptom firing triggers the alert)
  3. Verify it appears in definitions → vmware-aria alert definitions --name "Gold VM CPU" (criticality shown is the max severity across the definition's states)
  4. Enable or disable later → MCP set_alert_definition_state

Generate Capacity Report

  1. Find report template → vmware-aria report definitions --name "Capacity"
  2. Trigger report generation → vmware-aria report generate --resources (the Report API requires at least one resource UUID)
  3. Poll until completed → vmware-aria report get (repeat until status == COMPLETED)
  4. Download via the returned download_url (PDF) or csv_url
  5. Clean up → vmware-aria report delete

Multi-Target Operations

All commands accept --target to operate against a specific Aria Ops instance:

vmware-aria alert list --target prod
vmware-aria resource top --target lab

Usage Mode

ScenarioRecommendedWhy
Local/small models (Ollama, Qwen)CLI~2K tokens vs ~8K for MCP
Cloud models (Claude, GPT-4o)EitherMCP gives structured JSON I/O
Automated pipelinesMCPType-safe parameters, structured output

Running vmware-aria with a local or small model? See references/agent-guardrails.md for tool-calling guardrails (alert-to-resource correlation and Aria data fidelity).

MCP Tools (33 — 26 read, 7 write)

All MCP tools accept an optional target parameter to select which Aria Operations instance to connect to.

CategoryToolTypeDescription
Resourcelist_resourcesReadList VMs, hosts, clusters by resource kind
get_resourceReadGet resource details with health, risk, efficiency badges
get_resource_metricsReadFetch time-series metric stats for any resource
get_resource_healthReadGet health badge score (0–100)
get_top_consumersReadRank resources by CPU, memory, disk, or network usage
Alertslist_alertsReadList active alerts with criticality and resource ID (resolve names via get_resource)
get_alertReadGet alert details with contributing symptoms (recommendations live on the alert definition)
investigate_alertReadResolve an alert to its confirmed affected resource in one call — returns both UUIDs explicitly labelled plus the vmware-monitor handoff
acknowledge_alertWriteMark an alert as acknowledged (does not close it)
cancel_alertWriteCancel (dismiss) an active alert
list_alert_definitionsReadList alert templates configured in Aria Ops
Alert Defslist_symptom_definitionsReadList symptom definitions — use IDs when creating alert defs
create_alert_definitionWriteCreate new alert definition from symptom definition IDs
set_alert_definition_stateWriteEnable or disable an alert definition
delete_alert_definitionWriteDelete an alert definition permanently
Capacityget_capacity_overviewReadGroup-level remaining % + per-dimension headroom and days-until-full
get_remaining_capacityReadRemaining CPU, memory, disk before hitting limits
get_time_remainingReadDays until cluster capacity is exhausted
list_rightsizing_recommendationsReadVMs to resize: over/under-provisioned
Reportslist_report_definitionsReadList available report definition templates
generate_reportWriteTrigger report generation (async; returns report_id)
list_reportsReadList generated reports, optionally by definition
get_reportReadPoll report status + get PDF/CSV download URLs
delete_reportWriteDelete a generated report
Anomalylist_anomaliesReadPer-resource anomaly counts (System Attributes|total_alarms metric)
get_resource_riskbadgeReadRisk score (0–100): likelihood of future problems
Healthget_aria_healthReadAria platform node status (ONLINE/OFFLINE)
list_collector_groupsReadCollector agents status and connectivity
Fleet / PromQL (VCF Ops 9.1)fleet_certificate_listReadCertificate status/expiry across the VCF fleet
fleet_password_account_listReadManaged password-account status (read-only; does not rotate)
fleet_domain_listReadSDDC/workload domains behind one registered VCF integration
findings_listReadOperations diagnostic findings (not compliance — see vmware-harden)
promql_queryReadReal-time PromQL instant query via the VODAP service (base path INFERRED, unverified on real hardware)

Read/write split: 26 read-only, 7 write. All write operations are audit-logged to ~/.vmware/audit.db (via vmware-policy).

List results are envelopes — read truncated before you summarise

Every list-returning tool above (list_resources, get_top_consumers, list_alerts, list_alert_definitions, list_symptom_definitions, list_rightsizing_recommendations, list_report_definitions, list_reports, list_anomalies, list_collector_groups) returns an object, not a bare array:

{
  "items":     [ ... ],
  "returned":  50,
  "limit":     50,
  "total":     213,
  "truncated": true,
  "hint":      "Showing 50 of 213. Raise limit or narrow the query with a filter to see the rest."
}

Rules:

  • Rows live under items. An empty items with returned: 0 means the query genuinely matched nothing — report that, do not report a tool failure.
  • truncated: true means more rows exist. Never describe such a result as the complete set; either say it is a partial view or re-query with a higher limit or a narrower filter, as hint instructs.
  • truncated: false means the answer is complete — safe to summarise as the whole picture.
  • total: null means the API reported no collection size, so a page filled exactly to the limit is flagged truncated conservatively. It may in fact be complete; a follow-up query with a larger limit settles it.
  • list_anomalies also carries scanned — how many VMs were examined. It returns only VMs with a non-zero anomaly count, so a short list is not evidence that the environment is clean; check truncated.

CLI Quick Reference

# Resources
vmware-aria resource list [--kind VirtualMachine|HostSystem|ClusterComputeResource] [--name ]
vmware-aria resource get 
vmware-aria resource metrics  --metrics cpu|usage_average,mem|usage_average --hours 4
vmware-aria resource metrics  --metrics cpu.ready.summation,mem.balloon.average --hours 24
vmware-aria resource health 
vmware-aria resource top --metric cpu|usage_average --kind VirtualMachine --top 10

# Alerts
vmware-aria alert list [--criticality CRITICAL|IMMEDIATE|WARNING|INFORMATION]
vmware-aria alert get 
vmware-aria alert acknowledge 
vmware-aria alert cancel 
vmware-aria alert definitions [--name ]

# Alert Definitions: creation/enable/disable/delete and symptom-definition
# lookup are MCP-only tools (list_symptom_definitions, create_alert_definition,
# set_alert_definition_state, delete_alert_definition) — no CLI subcommands.

# Capacity
vmware-aria capacity overview 
vmware-aria capacity remaining 
vmware-aria capacity time-remaining 
vmware-aria capacity rightsizing [--resource-id ]

# Reports (async: generate → poll get → download → delete)
vmware-aria report definitions [--name ]
vmware-aria report generate  --resources    # at least one resource UUID required
vmware-aria report list [--definition-id ]
vmware-aria report get         # poll until status == COMPLETED; shows download_url
vmware-aria report delete 

# Anomaly
vmware-aria anomaly list [--resource-id ]
vmware-aria anomaly risk 

# Health
vmware-aria health status
vmware-aria health collectors

# Diagnostics
vmware-aria doctor [--skip-auth]

Key Metric Names (for resource metrics command)

MetricAPI KeyWhat It Means
CPU Ready %cpu.ready.summationvCPU waiting for physical core; >5% = warning
CPU Usedcpu.used.summationActual CPU execution time
CPU Demandcpu.demand.averageTotal MHz requested by VM
Memory Activemem.active.averageActively used by guest OS (sizing)
Memory Consumedmem.consumed.averageFootprint on host (capacity)
Memory Balloonmem.balloon.average>0 = ESXi reclaiming memory
Memory Swapmem.swapped.average>0 = severe pressure
Disk Read Latencydisk.read.averageRead I/O latency ms
Disk Write Latencydisk.write.averageWrite I/O latency ms
Net Receivednet.received.averageInbound network KB/s
Net Transmittednet.transmitted.averageOutbound network KB/s

Full CLI reference with all options and output formats: see references/cli-reference.md

Troubleshooting

"Token not found" error after setup

The token acquisition request failed. Verify:

  1. Aria Ops is reachable: vmware-aria doctor
  2. The auth_source in config matches your environment (LOCAL, LDAP, AD)
  3. The password env var follows the naming convention: VMWARE_ARIA__PASSWORD

Resources appear missing from list_resources

The collector agent may be offline. Check list_collector_groups for any collectors in a DOWN state. Restart the affected collector from the Aria Ops UI under Administration > Collector Groups.

Metrics return empty data

The resource may not have metric collection configured, or the requested metric key is incorrect. Verify metric keys against the resource's available metrics in the Aria Ops UI (Metrics tab on the resource detail page).

"Password not found" error

Variable names follow the pattern VMWARE_ARIA__PASSWORD where hyphens become underscores. Example: target prod needs VMWARE_ARIA_PROD_PASSWORD. Check your ~/.vmware-aria/.env file.

invalid peer certificate: UnknownIssuer when running uvx (corporate TLS proxy)

uvx re-resolves dependencies from PyPI on every launch. Behind a corporate TLS-intercepting proxy whose CA is not in uv's bundled cert store, the handshake fails. Use the v1.5.15+ recommended single-command form vmware-aria mcp (after uv tool install vmware-aria — no network on launch), or set UV_NATIVE_TLS=true to make uv use the system cert store.

Safety

  • Read-heavy: 26 of 33 tools are read-only
  • Audit logging: Write operations logged to ~/.vmware/audit.db (SQLite WAL, via vmware-policy) with timestamp, user, target, operation, and result
  • Token expiry handling: vRealizeOpsToken re-acquired automatically 60 seconds before expiry (6-hour sliding validity, extended on each call)
  • Prompt injection defense: API text values sanitized via _sanitize() — strips control characters, truncates to 500 chars
  • Credential safety: Passwords loaded only from environment variables (.env file), never from config.yaml
  • Input validation: resource_id and alert_id validated before API calls; criticality values validated against known enum

Setup

uv tool install vmware-aria
mkdir -p ~/.vmware-aria
cp config.example.yaml ~/.vmware-aria/config.yaml
# Edit config.yaml with your Aria Operations host details

# Add to ~/.vmware-aria/.env (create if missing, chmod 600):
# VMWARE_ARIA_PROD_PASSWORD=
chmod 600 ~/.vmware-aria/.env

vmware-aria doctor

All tools are automatically audited via vmware-policy. Audit logs: vmware-audit log --last 20

Full setup guide with multi-target config, MCP server setup, and Docker: see references/setup-guide.md

Architecture

User (natural language)
  |
AI Agent (Claude Code / Goose / Cursor)
  | reads SKILL.md
vmware-aria CLI or MCP server (stdio transport)
  | Aria Operations Suite API (REST/JSON over HTTPS)
  | POST /suite-api/api/auth/token/acquire → vRealizeOpsToken
Aria Operations Manager
  |
VMs / Hosts / Clusters / Datastores / Alerts / Capacity

The MCP server uses stdio transport (local only, no network listener). Connections to Aria Ops use HTTPS on port 443 with vRealizeOpsToken authentication (6-hour sliding token validity, auto-refreshed).

Audit & Safety

All operations are automatically audited via vmware-policy (@vmware_tool decorator):

  • Every tool call logged to ~/.vmware/audit.db (SQLite, framework-agnostic)
  • Policy rules enforced via ~/.vmware/rules.yaml (deny rules, maintenance windows, risk levels)
  • Risk classification: each tool tagged as low/medium/high/critical
  • View recent operations: vmware-audit log --last 20
  • View denied operations: vmware-audit log --status denied

vmware-policy is automatically installed as a dependency — no manual setup needed.

License

MIT — github.com/vmware-skills/VMware-Aria

常见问题

这个技能会写入 Aria Operations 吗?
会。33 个工具中有 7 个为写入操作:确认或取消告警、创建/启用/禁用/删除告警定义、生成报告、删除报告;其余 26 个为只读。
与 vmware-monitor 的区别是什么?
vmware-aria 对接 Aria Operations,提供指标、告警、容量、异常与报告;vmware-monitor 处理只读的 vSphere 清单、实时告警与事件。实时 vCenter 数据用 vmware-monitor,Aria 分析数据用 vmware-aria。
支持 VCF Operations 9.1 吗?
支持。除 Aria Operations 8.x 功能外,还提供 5 个 VCF 9.1 集群工具:证书状态、托管密码账号、SDDC/业务域、诊断发现与实时 PromQL 查询。

相关技能

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。

作者 Iván559 次安装18 星标

诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。

作者 Iván855 次安装69 星标

把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。

作者 nssa.io1.0k 次安装47 星标

从 AdMapix API 拉取广告创意、应用、榜单和收入预估等数据,原样返回结构化 JSON。

作者 fly0pants4.3k 次安装296 星标

zw008 的更多技能

浏览全部技能

通过 21 个 MCP 工具或配套 CLI,管理 NSX-T 分布式防火墙策略、安全组、VM 标签、Traceflow 与 IDPS。

作者 zw00854 次安装

用 28 个读写工具管理 AVI 虚拟服务、AKO Ingress 与后端成员,覆盖 NSX ALB 运维场景。

作者 zw00851 次安装

用自然语言管理 vSphere Kubernetes Service 的 Supervisor 集群、命名空间与 TKC 集群生命周期。

作者 zw00851 次安装

通过 33 个 CLI/MCP 工具管理 NSX-T 网段、Tier-0/Tier-1 网关、NAT、静态路由与 IP 池。

作者 zw00850 次安装

为 VMware 多步操作设计审批流程、追踪状态、失败时自动回滚的统一编排入口。

作者 zw00824 次安装1 星标

针对 vSphere/ESXi/NSX 环境的合规扫描与基线比对,覆盖 CIS、STIG、等保 2.0 三级、PCI-DSS、IT-Grundschutz、NIS2。

作者 zw00834 次安装