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
Open in GeneratorOpen in Platform
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.

ParameterTypeDefaultNotes
CPU alert threshold (%)
cpu_threshold
number80
Mem alert threshold (%)
mem_threshold
number85
Top N processes to show
top_processes
number10
Include EEM alarm history
check_eem
booltrue

Hint 1Name your vendors and OS versions

Mention the exact platforms you run (Cisco IOS/XE/XR/NX-OS, Juniper, Arista) so the generated analysis logic uses the right CLI/NETCONF syntax.

Hint 2State your real thresholds

Provide concrete values for CPU alert threshold (%), Mem alert threshold (%), Top N processes to show instead of the defaults — they shape what counts as a fault.

Hint 3Prioritize the checks you need

This tool can top-N process CPU drill-down and memory pool analysis. Ask for the subset relevant to your incident to keep output focused.

Hint 4Describe your inventory format

Tell the assistant whether your device list is CSV, YAML, or JSON and which columns it has, so parsing matches your data.

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)