Yuri-NagaSaki/SICK

GitHub: Yuri-NagaSaki/SICK

一个通过 curl 一键运行的 Linux 服务器综合检测脚本,涵盖硬件信息收集、网络吞吐量测试和 CPU 基准跑分三大功能。

Stars: 202 | Forks: 21

# 猫脚本 · Catbash 开源的 **Linux 服务器脚本**,只需一次 `curl | bash` 即可运行 — 无需安装程序,无需守护进程,零残留。 **网站:** [https://catbash.net/](https://catbash.net/) **语言:** [英文](README.md) · [中文](README_CN.md) ## 包含内容 | 工具 | 角色 | 一行命令 | 文档 | |------|------|-----------|------| | **Menu** | 交互式选择 SICK / NETS / CPUX | `curl -sL https://ba.sh/menu \| bash` | [catbash.sh](catbash.sh) | | **SICK** | 一次性硬件信息收集 | `curl -sL https://ba.sh/sick \| bash` | [sick.html](https://catbash.net/sick.html) | | **NETS** | 公共 iperf3 吞吐量采样 | `curl -sL https://ba.sh/nets \| bash` | [nets.html](https://catbash.net/nets.html) | | **CPUX** | Geekbench 5 / 6 / 7 CPU 测试 | `curl -sL https://ba.sh/cpux \| bash` | [cpux.html](https://catbash.net/cpux.html) | ### 预览 | SICK | NETS | CPUX | |:----:|:----:|:----:| | ![SICK 预览](https://cdn.nodeimage.com/i/nBu2RRSLC5ebMCcWDzdPMUaYQq5wg8hA.webp) | ![NETS 预览](https://cdn.nodeimage.com/i/f5eoaoJfF5hAGGbCafRStVZQrFZeS3xD.webp) | ![CPUX 预览](https://cdn.nodeimage.com/i/cXXg1mmSfDkxBvseInICpQmrUy5w8M3I.webp) | **catbash.net** 上的相同脚本: | 短链接 | 目标 | |-----------|--------| | https://ba.sh/menu · https://catbash.net/menu | [catbash.sh](catbash.sh) 启动器 | | https://ba.sh/sick · https://catbash.net/sick | [hardware_info.sh](hardware_info.sh) | | https://ba.sh/nets · https://catbash.net/nets | [nets/nets.sh](nets/nets.sh) | | https://ba.sh/cpux · https://catbash.net/cpux | [cpux.sh](cpux.sh) | ## 快速开始 — 启动器 交互式菜单(`1` = SICK,`2` = NETS,`3` = CPUX,`0` = 退出): ``` curl -sL https://ba.sh/menu | bash # curl -sL https://catbash.net/menu | bash ``` 跳过菜单并传递选项: ``` curl -sL https://ba.sh/menu | bash -s -- sick -cn curl -sL https://ba.sh/menu | bash -s -- nets -r -t 5 curl -sL https://ba.sh/menu | bash -s -- nets -y --region eu curl -sL https://ba.sh/menu | bash -s -- cpux all ``` 通过 `curl | bash` 运行时,请始终使用 `bash -s -- <参数>`。 ## SICK — 服务器信息与检查工具包 一条命令 → 完整的硬件报告:CPU、RAM(每个 DIMM)、磁盘/SMART、NVMe、RAID、NIC、GPU、主板。支持彩色表格或 JSON 输出。支持英文 / 中文。 ``` # English curl -sL https://ba.sh/sick | bash # 中文 curl -sL https://ba.sh/sick | bash -s -- -cn # 自动安装缺失的工具 curl -sL https://ba.sh/sick | bash -s -- -y # 仅 JSON curl -sL https://ba.sh/sick | bash -s -- --json ``` 使用 `sudo` 获取完整数据(dmidecode、SMART 以及部分传感器需要 root 权限)。 ### 选项 | 标志 | 描述 | |------|-------------| | `-cn` / `--chinese` | 中文输出 | | `-us` / `--english` | 英文输出(默认) | | `-j` / `--json` | 仅输出 JSON 到标准输出 | | `-y` / `--yes` | 无需提示自动安装缺失的工具 | | `--no-install` | 绝不安装;仅使用已安装的工具 | | `-h` / `-v` | 帮助 / 版本 | ### 报告覆盖范围 系统 · CPU / 平台 · 内存 · 磁盘 / SMART · NVMe · RAID · 网络 · GPU · 主板 更多:[https://catbash.net/sick.html](https://catbash.net/sick.html) ## NETS — 网络端点吞吐量采样器 针对精选端点进行公共 **iperf3** 发送/接收测试。支持 IPv4 和 IPv6。摘要包含 **Mbps/Gbps** 以及 **本次运行消耗的流量**。 ### 支持的地区 | 标志 | 地区 | 覆盖范围 | |------|--------|----------| | `--region na` | 北美 | 纽约、洛杉矶、堪萨斯城、蒙特利尔 (5) | | `--region eu` | 欧洲 | 英国、荷兰、德国、法国、奥地利、瑞典、丹麦、挪威、卢森堡、乌克兰 (13) | | `--region apac` | 亚太 | 东京、新加坡、香港、悉尼、孟买、塔什干 (6) | | `global`(默认) | 所有 | 23 个节点 · 北美 + 欧洲 + 亚太 | | `-r` / `reduced` | 快速测试集 | 横跨三个地区的 8 个节点 | ``` # 完整运行 curl -sL https://ba.sh/nets | bash # 缩减集,每个方向 5s curl -sL https://ba.sh/nets | bash -s -- -r -t 5 # 若缺失则自动安装 iperf3 + python3 curl -sL https://ba.sh/nets | bash -s -- -y -r # 仅 Asia,IPv4 curl -sL https://ba.sh/nets | bash -s -- --region apac -4 # 列出目录 curl -sL https://ba.sh/nets | bash -s -- -l ``` **依赖:** `iperf3`、`python3`。缺失工具时会触发 **Y/N 安装提示**(或使用 `-y` / `--no-install`)。 ### 选项 | 标志 | 描述 | |------|-------------| | `-r` / `--reduced` | 精简的端点列表 | | `--region na\|eu\|apac\|global\|reduced` | 按地区筛选 | | `-4` / `-6` | 仅 IPv4 / 仅 IPv6 | | `-t <秒>` | 每个方向的持续时间(默认 10) | | `-P ` | 并行流数量(默认 4) | | `--send-only` / `--recv-only` | 单一方向测试 | | `-y` / `--yes` | 自动安装缺失的依赖 | | `--no-install` | 绝不安装;如果缺少依赖则退出 | | `-l` | 列出端点并退出 | 端点目录:[nets/endpoints.md](nets/endpoints.md) · [nets/endpoints.json](nets/endpoints.json) 更多:[https://catbash.net/nets.html](https://catbash.net/nets.html) ## CPUX — CPU 检测器 连续的 **Geekbench 5 / 6 / 7** CPU 基准测试。终端会打印真实的 **单核** 和 **多核** 分数(而不是空白列)。每个测试套件运行时都有进度指示器。 ``` # 交互式 (1=GB5, 2=GB6, 3=GB7, 4=全部) curl -sL https://ba.sh/cpux | bash # 仅 Geekbench 6 curl -sL https://ba.sh/cpux | bash -s -- 6 # 所有三个套件,依次运行 curl -sL https://ba.sh/cpux | bash -s -- all # 中文 UI curl -sL https://ba.sh/cpux | bash -s -- all -cn ``` 需要向 `cdn.geekbench.com` 和 `browser.geekbench.com` 进行出站 HTTPS(IPv4)访问。二进制文件较大;请在能够承受满载 CPU 负载的主机上运行。 更多:[https://catbash.net/cpux.html](https://catbash.net/cpux.html) ## 仓库结构 ``` . ├── catbash.sh # Launcher menu ├── hardware_info.sh # SICK ├── cpux.sh # CPUX (Geekbench 5/6/7) ├── index.html # Hub site ├── sick.html # SICK docs ├── nets.html # NETS docs ├── cpux.html # CPUX docs ├── nets/ │ ├── nets.sh │ ├── endpoints.json │ └── endpoints.md ├── worker.js # Cloudflare short links └── wrangler.jsonc ``` ## 支持 - **USDT (TRC20):** `TT6Ly1NpWSeYubufPVRUp4dz8SMUCZzcE5` - **爱发电:** [afdian.com/a/ellye](https://afdian.com/a/ellye) - **博客:** [catcat.blog](https://catcat.blog) ## 许可证 [MIT](LICENSE) · © Yuri NagaSaki
标签:Awesome, Shell脚本, 性能测试, 服务器信息, 硬件检测, 程序员工具, 系统管理, 运维工具, 逆向工具