dc nas

Synopsis

netapi ise dc nas [OPTIONS]

Description

Get NAS (switch/WLC) health by authentication success rate. Quickly identifies network devices with authentication problems - essential for infrastructure troubleshooting.

Options

Option Default Description

--hours, -h

24

Hours to look back

--min, -m

10

Minimum auth count (filters out low-traffic devices)

Usage

# Default: last 24h, devices with 10+ auths
netapi ise dc nas

# Last 48 hours
netapi ise dc nas --hours 48

# Only high-traffic devices (50+ auths)
netapi ise dc nas --min 50

# JSON for scripting
netapi ise dc --format json nas

Sample Output

               NAS Health (last 24h)
┏━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━┓
┃ NAS IP         ┃ Name           ┃ Total ┃ Passed ┃ Failed ┃ Success % ┃
┡━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━┩
│ 10.50.1.40     │ C9800-HOME     │   847 │    845 │      2 │ 99.8%     │
│ 10.50.1.10     │ SW-CORE-01     │   324 │    320 │      4 │ 98.8%     │
│ 10.50.1.11     │ SW-ACCESS-01   │   156 │    140 │     16 │ 89.7%     │
│ 10.50.1.99     │ -              │    45 │     23 │     22 │ 51.1%     │
└────────────────┴────────────────┴───────┴────────┴────────┴───────────┘

Use Cases

Find Problematic Switches

# Devices with high failure rates stand out
netapi ise dc nas --hours 4 | grep -E "[0-7][0-9]\.[0-9]%"

Alert on NAS Issues

#!/bin/bash
# Alert if any NAS has <90% success rate
PROBLEMS=$(netapi ise dc --format json nas --hours 1 | jq '
  [.[] | select(.success_pct < 90)] |
  length
')

if [[ "$PROBLEMS" -gt 0 ]]; then
  echo "WARNING: $PROBLEMS NADs with <90% auth success"
fi

Infrastructure Report

# Export all NAD stats to CSV
netapi ise dc --format json nas --hours 168 | jq -r '
  ["NAS_IP","Name","Total","Passed","Failed","Success%"],
  (.[] | [.nas_ip_address, .nas_name, .total_auths, .passed, .failed, .success_pct]) | @csv
' > nas_health.csv

Color Coding

  • Green (95%+): Healthy

  • Yellow (80-95%): Warning - investigate

  • Red (<80%): Critical - immediate attention

See Also