360 Secure SkillHub
360 安全技能中心

System Uptime

该 Skill 用于回答本机已运行多久、上次重启时间等基础状态问题,通过系统 uptime 命令或 Node CLI 获取并输出运行时间与负载信息;不提供详细指标、远程主机或历史数据查询。

alamby
alamby
热度 56.15
最近更新 2026-05-11 17:27:43
分类:自动化依赖:代码执行应用场景:自动化脚本 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add system-uptime
Metadata
name
system-uptime
description
Get the current system uptime using the native 'uptime' command. Use when: user asks about system uptime, system status, or how long the system has been running.
metadata
{"openclaw":{"emoji":"⏱️","requires":{"bins":["uptime"]}}}

System Uptime Skill

Get the current system uptime using the built-in uptime command.

When to Use

✅ USE this skill when:

  • "What's the system uptime?"
  • "How long has the system been running?"
  • "Show system status"
  • "When was the last reboot?"

When NOT to Use

❌ DON'T use this skill when:

  • Need detailed system metrics → use monitoring tools
  • Remote system uptime → use SSH or remote monitoring
  • Historical uptime data → check system logs

Commands

Get System Uptime

# Basic uptime
uptime

# Using the skill CLI
node uptime-cli.js

Example Output

11:30:45 up 2 days, 4:23, 2 users, load average: 1.23, 1.15, 1.08

Notes

  • Uses the standard Unix uptime command
  • Works on macOS, Linux, and other Unix-like systems
  • No additional dependencies required