search_processes
Queries running processes on one or multiple hosts using a regex pattern. Returns a list or map of processes with optional user, CPU, and memory details.
Instructions
Searches running processes on a single host ('host') or multiple hosts concurrently ('hosts') matching a regex 'pattern'. If using 'hosts', returns a JSON map mapping hostnames to their matched process list. Optionally returns full user/CPU/mem stats if 'full_info' is true. Prefer 'hosts' to find running services across multiple cluster nodes simultaneously.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | The target hostname or IP address | |
| hosts | No | A list of hostname targets to query concurrently | |
| pattern | Yes | Regex pattern to match against command lines (case-insensitive) | |
| full_info | No | If true, includes user, %cpu, %mem in output (default: false) |