All scripts
analysis
Advanced
1–5 min
CPU / Memory Triage
Multi-device CPU/memory crisis triage: process-level analysis, spike correlation with network events, memory pool health, EEM/alarm history, and automatic remediation suggestions.
Cisco IOS/XE/XR/NX-OS
Juniper
Arista
You're viewing a preview
The full script, parameters, and execution console are available with a free account.
Already have access? Sign in →
Capabilities
- Top-N process CPU drill-down
- Memory pool analysis
- CPU spike ↔ event correlation
- EEM alarm history
- Swap/buffers health
- Process leak detection
- Auto remediation hints
Required inputs
Parameters the script accepts. Defaults shown; some are vendor- or context-gated.
| Parameter | Type | Default | Notes |
|---|---|---|---|
CPU alert threshold (%) cpu_threshold | number | 80 | — |
Mem alert threshold (%) mem_threshold | number | 85 | — |
Top N processes to show top_processes | number | 10 | — |
Include EEM alarm history check_eem | bool | true | — |
Sample inventory schema
Authoritative shape of the device/policy data this script consumes.
No bundled inventory sample. The script accepts standard device lists (CSV/YAML) with hostname, mgmt IP, vendor, and credentials.
Expected output
Reference terminal output the script should produce — used as a stylistic and structural target.
terminal
CPU / MEMORY TRIAGE REPORT — 47 devices
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
core-rtr-01 — CPU: 94% ← CRITICAL | Memory: 72% (OK)
TOP PROCESSES BY CPU (5-min avg):
1. BGP I/O 48.2% ← dominant process
2. IP Input 22.1%
3. OSPF Hello 11.4%
Correlation: CPU spike started 14:23:47 — coincides with:
• BGP session reset to 10.0.0.6 (Hold Timer Expired)