CATBASH猫脚本Open-source Linux server scripts · MIT

Know your server
in one command.

Hardware inventory, network throughput and CPU benchmarks for Linux servers. Paste one line, read the report — no installer, no daemon, nothing left running.

curl -sL https://ba.sh/menu | bash

Interactive launcher: 1 SICK · 2 NETS · 3 CPUX · 4 all · 0 exit.

Read before you run: curl -sL https://ba.sh/sick | less

root@catlab-01: ~ Sample output · demo data
root@catlab-01:~# curl -sL https://ba.sh/menu | bash 猫脚本 Catbash  v1.3.0 · Linux server toolkit  1  SICK  Server Info & Check Kit        hardware · disks/SMART · RAID · NICs  2  NETS  Network Throughput Sampler     iperf3 send/recv · NA / EU / APAC  3  CPUX  CPU eXaminer                   Geekbench 5 / 6 / 7 · single + multi  4  ALL   Full check                     SICK → NETS (reduced) → CPUX (GB6)  0  Exit  No daemons, nothing kept: downloads are removed after each run.  Docs  https://catbash.net/  Select [1-4, 0 = exit]: 1  → sick: https://catbash.net/sickGenerating hardware report... SICK  v3.2.0 · Server Info & Check Kit════════════════════════════════════════════════════════════════════════════════                       System Hardware Information Report════════════════════════════════════════════════════════════════════════════════┌─ Report Overview ───────────────────────────────├──────────────────────────────────────────────────│ Version             : 3.2.0│ Mode                : Text│ Privacy             : IP/MAC masked│ Serials             : shown in full└──────────────────────────────────────────────────┌─ System Information ────────────────────────────├──────────────────────────────────────────────────│ Hostname            : catlab-01│ Operating System    : Ubuntu 24.04.5 LTS│ Kernel Version      : 6.18.44-fc-v230│ System Uptime       : up 40 minutes└──────────────────────────────────────────────────┌─ CPU Information ───────────────────────────────├──────────────────────────────────────────────────│ Model               : Intel(R) Xeon(R) Processor @ 2.80GHz│ Cores               : 4│ Threads             : 4│ Frequency           : 2799.998 MHz│ Cache               : 33792 KB│ Usage               : 28.3%│ CPU Temperature     : 45.0°C└──────────────────────────────────────────────────┌─ CPU / Platform Status ─────────────────────────├──────────────────────────────────────────────────│ Platform            : 1 socket(s), 1 NUMA node(s)│ Virtualization      : No (VT-x/AMD-V)│ Hypervisor          : kvm│ Microcode           : 0x1└──────────────────────────────────────────────────┌─ Memory (RAM) Information ──────────────────────├──────────────────────────────────────────────────│ Total               : 15.71 GB│ Used                : 561.87 MB│ Available           : 15.16 GB││ Memory Modules:├─────────────────────────────────────────────────────────────────────────────────────────────┤│ Size     │ Type   │ Frequency    │ Manufacturer │ Serial           │ Model                  │├─────────────────────────────────────────────────────────────────────────────────────────────┤│ 8 GB     │ DDR4   │ 2666 MT/s    │ Samsung      │ 4A1F02C0         │ M391A1K43BB2-CTD       ││ 8 GB     │ DDR4   │ 2666 MT/s    │ Samsung      │ 4A1F02C1         │ M391A1K43BB2-CTD       │└─────────────────────────────────────────────────────────────────────────────────────────────┘└──────────────────────────────────────────────────┌─ Disk Drive Information ────────────────────────├──────────────────────────────────────────────────│ Mounted Filesystems:├──────────────────────────────────────────────────────────────────────────────────────────────────┤│ Filesystem                         │ Size    │ Used    │ Avail   │ Use%   │ Mounted              │├──────────────────────────────────────────────────────────────────────────────────────────────────┤│ /dev/md0                           │ 1.8T    │ 412G    │ 1.3T    │ 25%    │ /                    ││ /dev/nvme0n1p1                     │ 511M    │ 6.1M    │ 505M    │ 2%     │ /boot/efi            ││ /dev/md1                           │ 12T     │ 7.9T    │ 4.1T    │ 66%    │ /data                │└──────────────────────────────────────────────────────────────────────────────────────────────────┘││ Disk Summary (defects=reallocated/pending/offline)├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤│ Device       │ Basic Info                         │ SMART  │ Hours    │ Temp   │ I/O                  │ Defects   │ Notes                │├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤│ /dev/sda     │ 931.5G Samsung SSD 870 EVO 1TB     │ PASS   │ 12034h   │ 34°C   │ R? W22.7T            │ 0/0/0     │ -                    ││ /dev/sdb     │ 12.7T TOSHIBA MG07ACA14TE          │ PASS   │ 40210h   │ 41°C   │ no stats             │ 8/2/0     │ bad sectors=10       ││ /dev/nvme0n1 │ 3.5T SAMSUNG MZQL23T8HCLS-00A07    │ PASS   │ 15000h   │ 38°C   │ R57.4T W45.9T        │ -         │ used 3%, spare 100%  ││ /dev/nvme1n1 │ 3.5T SAMSUNG MZQL23T8HCLS-00A07    │ PASS   │ 15000h   │ 38°C   │ R57.4T W45.9T        │ -         │ used 3%, spare 100%  ││ megaraid,8   │ SEAGATE ST4000NM0025               │ PASS   │ 51234h   │ 36°C   │ no stats             │ GD:0/UE:0 │ -                    ││ megaraid,9   │ SEAGATE ST4000NM0025               │ PASS   │ 51234h   │ 36°C   │ no stats             │ GD:0/UE:0 │ -                    ││ megaraid,10  │ SEAGATE ST4000NM0025               │ PASS   │ 51234h   │ 36°C   │ no stats             │ GD:0/UE:0 │ -                    ││ megaraid,11  │ SEAGATE ST4000NM0025               │ PASS   │ 51234h   │ 36°C   │ no stats             │ GD:0/UE:0 │ -                    │└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘└──────────────────────────────────────────────────┌─ NVMe Deep Health ──────────────────────────────├──────────────────────────────────────────────────├─────────────────────────────────────────────────────────────────────────────────────┤│ Device         │ Model                      │ Temp    │ Used    │ Spare   │ Status  │├─────────────────────────────────────────────────────────────────────────────────────┤│ /dev/nvme0n1   │ SAMSUNG MZQL23T8HCLS-00A07 │ 38°C    │ 3%      │ 100%    │ OK      ││ /dev/nvme1n1   │ SAMSUNG MZQL23T8HCLS-00A07 │ 38°C    │ 3%      │ 100%    │ OK      │└─────────────────────────────────────────────────────────────────────────────────────┘│   · Unsafe shutdowns (lifetime): nvme0n1=12 nvme1n1=12└──────────────────────────────────────────────────┌─ RAID Controller Information ───────────────────├──────────────────────────────────────────────────│ RAID/HBA Controllers:├───────────────────────────────────────────────────────────────────────────┤│ Slot       │ Type      │ Controller                                       │├───────────────────────────────────────────────────────────────────────────┤│ 18:00.0    │ RAID      │ Broadcom / LSI MegaRAID SAS-3 3108 [Invader]     │└───────────────────────────────────────────────────────────────────────────┘└──────────────────────────────────────────────────┌─ Network Interface Information ─────────────────├──────────────────────────────────────────────────├───────────────────────────────────────────────────────────────────────────────────────────────────────────────┤│ Iface        │ Status   │ Link         │ MAC                │ IPv4                 │ Model                    │├───────────────────────────────────────────────────────────────────────────────────────────────────────────────┤│ eth0         │ UP       │ 10000M/full  │ 3c:ec:ef:XX:XX:XX  │ 203.0.XX.XX/24       │ virtio_net               │└───────────────────────────────────────────────────────────────────────────────────────────────────────────────┘││ RX/TX error & drop counters (cumulative):│   ! eth0            rx_dropped=6└──────────────────────────────────────────────────┌─ Graphics Card Information ─────────────────────├──────────────────────────────────────────────────├────────────────────────────────────────────────────────────────────────────────┤│ Vendor   │ Class      │ Model                                                  │├────────────────────────────────────────────────────────────────────────────────┤│ ASPEED   │ BMC        │ ASPEED Technology, Inc. ASPEED Graphics Family         │└────────────────────────────────────────────────────────────────────────────────┘└──────────────────────────────────────────────────┌─ Motherboard Information ───────────────────────├──────────────────────────────────────────────────│ Vendor              : Supermicro│ Model               : X11SCM-F│ Version             : 1.02│ BIOS Vendor         : American Megatrends Inc.│ BIOS Version        : 2.6└──────────────────────────────────────────────────── Health ─────────────────────────────────────────✗ 1 problem  ✗ sdb       8 reallocated sectors, 2 pendingReport generation completed!Generated on: 2026-11-03 10:43:28 UTC  [Enter] back to menu · [q] quit: qroot@catlab-01:~#  
A real recording of the scripts, replayed in your browser. Hardware, network and Geekbench were mocked — every number is demo data.
Tools

Three scripts, one habit.

Each one runs straight from curl, prints a report you can read at a glance, and doesn't stick around.

SICKServer Info & Check Kit

Hardware, inventoried.

A one-shot report of everything in the box — colorized tables or JSON.

  • CPU, NUMA, virtualization, temperatures
  • Memory per DIMM: size, speed, vendor, part
  • Disks & SMART, NVMe wear, RAID / HBA
  • NICs, GPU, motherboard & BIOS
curl -sL https://ba.sh/sick | bash
SICK docs
NETSNetwork Endpoint Throughput Sampler

Throughput, measured.

Public iperf3 send and receive tests against curated endpoints worldwide.

  • 23 endpoints across NA · EU · APAC
  • IPv4 and IPv6, Mbps / Gbps
  • Quick 8-node pass with -r
  • Traffic used is totalled at the end
curl -sL https://ba.sh/nets | bash
NETS docs
CPUXCPU eXaminer

Scores that actually print.

Geekbench 5, 6 and 7 — run one after another, scores read back into your terminal.

  • Single- and multi-core, never swapped
  • x86_64, ARM64 and RISC-V builds
  • Binaries removed afterwards
  • Re-fetch later with --fetch URL
curl -sL https://ba.sh/cpux | bash
CPUX docs
Launcher

Or run all of it at once.

curl -sL https://ba.sh/menu | bash opens a small menu: 1 SICK · 2 NETS · 3 CPUX · 4 all · 0 exit. all is the full check, yabs-style — SICK → NETS (reduced) → CPUX (Geekbench 6) in one scrollback.

Through curl | bash, put arguments after bash -s --. Without an interactive terminal the menu prints its usage and exits instead of hanging.

curl -sL https://ba.sh/menu | bash -s -- all

Full check: SICK → NETS (reduced) → CPUX (Geekbench 6).

curl -sL https://ba.sh/menu | bash -s -- all -cn

The same, with Chinese output.

curl -sL https://ba.sh/menu | bash -s -- sick -cn

Jump straight to one tool and pass its options.

curl -sL https://ba.sh/menu | bash -s -- nets -r -t 5

NETS, reduced set, 5 s per direction.

curl -sL https://ba.sh/menu | bash -s -- nets -y --region eu

NETS in Europe; install iperf3 without asking.

curl -sL https://ba.sh/menu | bash -s -- cpux all

Geekbench 5 → 6 → 7.

Why Catbash

Made for the box you just logged into.

Zero footprint

No installer, no daemon. Missing tools are installed only if you say yes — and removed again with --cleanup. Temp files and Geekbench binaries are deleted afterwards.

Pipe-safe

Built for curl | bash. Without a TTY — ssh host '…', cron, CI — nothing waits on a prompt that can't be answered.

JSON when you need it

--json puts a machine-readable result on stdout; progress goes to stderr.

English & 中文

SICK, CPUX and the all run speak Chinese with -cn, with columns that stay aligned.

Read before you run

Every tool is a single plain bash file with no binaries and no obfuscation — the same file the short link serves. Page through it before you pipe it into a root shell:

curl -sL https://ba.sh/sick | less