mnt sessions

Synopsis

netapi ise mnt sessions [OPTIONS]

Description

Lists all currently active RADIUS sessions on ISE. This includes both wired (802.1X/MAB) and wireless sessions.

Options

Option Description Default

--format

Output format: table, json, csv

table

--limit

Maximum sessions to return

100

Examples

# List active sessions (table format)
netapi ise mnt sessions

# JSON output for scripting
netapi ise mnt sessions --format json

# Pipe to jq for filtering
netapi ise mnt sessions --format json | jq '.[] | select(.nas_port_type == "Ethernet")'

Sample Output

┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ MAC Address       ┃ User Name         ┃ NAD IP       ┃ Status    ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ 00:50:C2:39:F0:F7 │ 00-50-C2-39-F0-F7 │ 10.193.144.1 │ STARTED   │
│ 70:15:FB:F8:47:EC │ erosado@corp.com  │ 10.193.144.2 │ STARTED   │
│ 14:F6:D8:7B:31:80 │ machine$@corp.com │ 10.50.1.40   │ STARTED   │
└───────────────────┴───────────────────┴──────────────┴───────────┘

API Details

Endpoint: GET /admin/API/mnt/Session/ActiveList

Response Format: XML (converted to JSON by netapi)

CI/CD Integration

# GitHub Actions example
- name: Check active sessions
  run: |
    count=$(netapi ise mnt sessions --format json | jq length)
    echo "Active sessions: $count"
    if [ "$count" -gt 1000 ]; then
      echo "::warning::High session count detected"
    fi