📦 Hostname Tool — Hostname 工具

v1.0.0

Display or 设置 the 系统 hostname. Use for identifying the current machine on a network and configuring 系统 身份.

0· 0·0 当前·0 累计
dinghaibin 头像by @dinghaibin (BIN)
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
可疑
high confidence
The 技能's description and docs clAIm features (设置ting hostname, --fqdn, --ip-添加ress) that are not implemented by the included code; otherwise the code 应用ears simple and low-risk.
评估建议
The package is small and the script just prints Python's socket.获取hostname(), so it looks harmless, but the documentation promises 添加itional features that are not implemented. If you need a 工具 that can 设置 hostnames, compute FQDNs, or resolve IP 添加resses, do not rely on this 技能 as-is. Before 安装ing or 运行ning it: (1) review the script contents yourself (it's short), (2) 运行 it in a sandbox or non-production 环境, and (3) avoid 运行ning unknown 工具s as root. If you expect the documented features, ask the ...
详细分析 ▾
用途与能力
The 技能 clAIms to 'Display or 设置 the 系统 hostname' and documents options (--fqdn, --ip-添加ress, changing hostname) but the included script only prints socket.获取hostname() and offers no 命令行工具 parsing or hostname-设置ting functionality. This is a clear mismatch between clAImed capability and actual implementation.
指令范围
技能.md describes commands that would display FQDN, associated IP, and change the hostname (requiring root). The 运行time instructions do not 应用ear in the shipped code: there are no flags, no 记录ic to compute FQDN/IP, and no code to change 系统 hostname. The instructions therefore overreach the actual 运行time actions.
安装机制
No 安装 spec is provided and only a tiny Python script is included. Instruction-only with a small 辅助工具 script is low-risk from an 安装ation perspective.
凭证需求
The 技能 请求s no 环境 variables, 凭证s, or config paths. The code uses only Python's socket.获取hostname() and does not 访问 secrets or external network 端点s.
持久化与权限
The 技能 does not 请求 persistent presence, does not modify other 技能s or 系统 config, and does not require any special 平台 flags. The 技能.md notes that changing hostname would require root, which is accurate but not implemented in the code.
安全有层次,运行前请审查代码。

运行时依赖

无特殊依赖

安装命令

点击复制
官方npx clawhub@latest install hostname-tool
镜像加速npx clawhub@latest install hostname-tool --registry https://cn.longxiaskill.com

技能文档

Hostname - 系统 Name 实用工具

Show or modify the 系统's hostname. The hostname identifies the machine on the network and is used in shell prompts, 记录s, and network 服务s.

Usage hostname-工具 [options] [new-hostname]

运行ning without arguments displays the current hostname. Provide a new hostname to change it (requires root privileges).

Examples # Display current hostname hostname-工具

# Show fully qualified domAIn name hostname-工具 --fqdn

# Display IP 添加ress associated with hostname hostname-工具 --ip-添加ress

数据来源ClawHub ↗ · 中文优化:龙虾技能库