Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问许可证需确认审计通过

pyats-linux-vmwarepyats linux vmware 命令行

Agent Skill

pyats-linux-vmware 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

343

周安装

14

GitHub Stars

462

下载量

110
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pyats-linux-vmware(pyats linux vmware 命令行)
来源仓库:https://github.com/automateyournetwork/netclaw
仓库路径:skills/pyats-linux-vmware
安装命令:
npx skills add https://github.com/automateyournetwork/netclaw --skill pyats-linux-vmware
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/automateyournetwork/netclaw --skill pyats-linux-vmware

简介

用于处理 GitHub 仓库、Issue、Pull Request 等协作信息。

  • 适合围绕代码变更或仓库状态进行整理与分析。pyats-linux-vmware 属于前端设计类 Skill,可作为该场景下的辅助能力补充。
  • 可结合来源仓库与原始 README 进一步核验具体用法。
  • 安装前需确认权限范围及是否会触发联网或文件读写操作。
  • 建议检查维护状态,避免使用不稳定或已弃用的技能。

SKILL.md

VMware ESXi Host Operations

Testbed Requirements

ESXi hosts must be defined in the pyATS testbed with os: linux (ESXi shell is Linux-based):

devices:
  esxi-host-01:
    os: linux
    type: esxi
    connections:
      cli:
        protocol: ssh
        ip: 10.0.0.100
        port: 22
    credentials:
      default:
        username: "%ENV{NETCLAW_USERNAME}"
        password: "%ENV{NETCLAW_PASSWORD}"

Note: SSH must be enabled on the ESXi host (disabled by default). Enable via vSphere Client → Host → Configure → System → Services → SSH → Start.

How to Call

All commands use pyats_run_linux_command:

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_linux_command '{"device_name":"esxi-host-01","command":"<command>"}'

Commands

VM Inventory

List All Virtual Machines

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_linux_command '{"device_name":"esxi-host-01","command":"vim-cmd vmsvc/getallvms"}'

Returns a table of all VMs on the ESXi host:

ColumnDescription
VmidUnique VM identifier (used as parameter for other vim-cmd operations)
NameVM display name
FilePath to the VMX configuration file on the datastore
Guest OSConfigured guest OS type (e.g., ubuntu64Guest, windows9Server64Guest)
VersionVirtual hardware version (e.g., vmx-19, vmx-20)
AnnotationVM description/notes

What to check:

  • All expected VMs are present and registered
  • VMX file paths reference expected datastores
  • Virtual hardware versions are current (old versions may lack features)
  • Guest OS type matches actual installed OS
  • No orphaned or unexpected VMs

Snapshot Management

Get VM Snapshots

PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_linux_command '{"device_name":"esxi-host-01","command":"vim-cmd vmsvc/snapshot.get 1"}'

The parameter is the Vmid from vim-cmd vmsvc/getallvms. Returns the snapshot tree for that VM:

  • Snapshot name and description
  • Snapshot ID
  • Creation timestamp
  • Whether it's the current snapshot (the "you are here" marker)
  • Parent/child snapshot hierarchy

What to check:

  • Stale snapshots — snapshots older than 72 hours degrade performance (growing delta disks)
  • Snapshot chains — deep chains (>3 levels) cause I/O performance degradation
  • Pre-change snapshots — verify a snapshot was taken before maintenance windows
  • Disk space — snapshot delta files consume datastore space proportional to guest write activity

Workflows

1. VMware Inventory Audit

pyats_list_devices → identify ESXi hosts in testbed
→ vim-cmd vmsvc/getallvms per host → collect all VMs
→ Cross-reference with NetBox/Nautobot → flag undocumented VMs
→ Check virtual hardware versions → flag outdated versions
→ GAIT

2. Snapshot Health Check

pyats_list_devices → identify ESXi hosts
→ vim-cmd vmsvc/getallvms per host → get VM IDs
→ vim-cmd vmsvc/snapshot.get per VM → collect snapshot trees
→ Flag: snapshots > 72 hours old, chains > 3 deep, orphaned snapshots
→ Severity-sort (stale snapshots = WARNING, deep chains = CRITICAL)
→ GAIT

3. Pre-Change VM Verification

ServiceNow CR must be in Implement state
→ vim-cmd vmsvc/getallvms → identify target VM by name → get Vmid
→ vim-cmd vmsvc/snapshot.get {vmid} → verify pre-change snapshot exists
→ If no snapshot: STOP — snapshot must be taken before changes
→ Record baseline state in GAIT

4. Multi-Host VM Inventory

pyats_list_devices → identify all ESXi hosts
→ vim-cmd vmsvc/getallvms per host (parallel) → collect fleet-wide VM inventory
→ Aggregate: total VMs, VMs per host, hardware version distribution
→ Cross-reference with vCenter inventory (if available)
→ GAIT

Parallel Operations

Run VM inventory across multiple ESXi hosts concurrently:

# ESXi Host 1
PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_linux_command '{"device_name":"esxi-host-01","command":"vim-cmd vmsvc/getallvms"}'

# ESXi Host 2
PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_linux_command '{"device_name":"esxi-host-02","command":"vim-cmd vmsvc/getallvms"}'

# ESXi Host 3
PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "python3 -u $PYATS_MCP_SCRIPT" pyats_run_linux_command '{"device_name":"esxi-host-03","command":"vim-cmd vmsvc/getallvms"}'

For snapshot checks, first collect VM IDs per host, then run snapshot queries in parallel across all VMs.


vim-cmd Quick Reference

CommandDescription
vim-cmd vmsvc/getallvmsList all registered VMs (ID, name, file, OS, version)
vim-cmd vmsvc/snapshot.get {vmid}Get snapshot tree for a specific VM
vim-cmd vmsvc/power.getstate {vmid}Get VM power state (on/off/suspended)
vim-cmd vmsvc/get.summary {vmid}Get VM summary (CPU, memory, tools status)

Note: Only getallvms and snapshot.get are covered by this skill. The reference above is for context — expand to other vim-cmd operations as needed.


Integration with Other Skills

SkillIntegration
pyats-linux-systemSystem-level commands on the ESXi host (ps, ls, docker stats)
pyats-linux-networkESXi host networking (interfaces, routes) — useful for vmkernel adapter inspection
pyats-networkNetwork device show commands complement ESXi host-level views
pyats-parallel-opspCall pattern for fleet-wide ESXi operations
netbox-reconcileCross-reference VM inventory with NetBox virtualization records
nautobot-sotValidate ESXi host and VM data against Nautobot
servicenow-change-workflowGate snapshot operations behind ServiceNow Change Requests
gait-session-trackingEvery vim-cmd execution logged in GAIT
nvd-cveCheck ESXi versions against NVD vulnerability database
cml-lab-lifecycleCML labs may run on ESXi — correlate VM inventory with CML topology

Guardrails

  • Always call pyats_list_devices first — verify ESXi hosts exist in the testbed
  • Read-only operations onlygetallvms and snapshot.get are read-only
  • Never create/delete snapshots via this skill — snapshot creation/deletion impacts VM performance and requires a ServiceNow CR
  • Never power-cycle VMsvim-cmd vmsvc/power.* operations are destructive and require explicit authorization
  • Validate Vmid before use — always get the Vmid from getallvms output; never guess or hardcode
  • Flag stale snapshots — any snapshot > 72 hours should be flagged as WARNING; > 7 days as CRITICAL
  • SSH access concerns — ESXi SSH is often disabled in production; document that it must be enabled for pyATS access
  • Record in GAIT — every vim-cmd execution must be logged

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.18%
按下载量换算35

Claude

29.62%
按下载量换算33

Cursor

19.05%
按下载量换算21

Gemini CLI

9.58%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/automateyournetwork/netclaw --skill pyats-linux-vmware 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills