dc stats

Synopsis

netapi ise dc stats [OPTIONS]

Description

Get authentication statistics showing passed vs failed counts over a time window. Essential for quick health checks and identifying authentication issues.

Options

Option Default Description

--hours, -h

24

Hours to look back (1-720)

Use the global --format flag at the dc level:

netapi ise dc --format json stats

Usage

# Last 24 hours (default)
netapi ise dc stats

# Last hour only
netapi ise dc stats --hours 1

# Last week
netapi ise dc stats --hours 168

# JSON for dashboards
netapi ise dc --format json stats

Sample Output

Authentication Statistics (Last 24 Hours)
──────────────────────────────────────────
  Passed:  1,247
  Failed:    156
  Total:   1,403
  Success Rate: 88.9%

JSON output:

{
  "hours": 24,
  "passed": 1247,
  "failed": 156,
  "total": 1403,
  "success_rate": 88.88
}

Use Cases

Morning Health Check

# Quick overnight stats
netapi ise dc stats --hours 12

Incident Investigation

# Narrow window during issue
netapi ise dc stats --hours 2

Dashboard Integration

# JSON for Grafana/scripts
netapi ise dc --format json stats | jq '{passed, failed, rate: .success_rate}'

Comparing Time Windows

# Compare last hour vs last 24h
echo "=== Last Hour ===" && netapi ise dc stats -h 1
echo "=== Last 24h ===" && netapi ise dc stats -h 24

See Also

  • recent - Individual authentication events

  • failed - Failed authentications with reasons

  • session - Full session view for a MAC