dc device-types

Synopsis

netapi ise dc device-types

Description

Get endpoint counts grouped by device type category. Shows the distribution of device types (Workstation, Phone, Printer, etc.) across your network. Broader categorization than profiler policies.

Options

This command has no options.

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

netapi ise dc --format json device-types

Usage

# Default table output
netapi ise dc device-types

# JSON for dashboards/scripts
netapi ise dc --format json device-types

# YAML output
netapi ise dc --format yaml device-types

Sample Output

Endpoint Counts by Device Type
────────────────────────────────
Device Type              Count
────────────────────────────────
Workstation                599
Phone                      468
Mobile                      89
Laptop                      67
Printer                     38
Sensor                      12
Unknown                    112
────────────────────────────────
Total                    1,385

JSON output:

[
  {"device_type": "Workstation", "count": 599},
  {"device_type": "Phone", "count": 468},
  {"device_type": "Mobile", "count": 89},
  {"device_type": "Laptop", "count": 67}
]

Use Cases

High-Level Inventory

# What types of devices do we have?
netapi ise dc device-types

Reporting

# JSON for reports/dashboards
netapi ise dc --format json device-types

# Calculate percentage
netapi ise dc --format json device-types | jq '
  (map(.count) | add) as $total |
  map({device_type, count, percent: ((.count / $total * 100) | round)})
'

Track IoT Growth

# Monitor sensor/IoT device growth
netapi ise dc --format json device-types | jq '.[] | select(.device_type == "Sensor") | .count'

Unknown Device Alert

# Alert if too many unknowns
UNKNOWN=$(netapi ise dc --format json device-types | jq '.[] | select(.device_type == "Unknown") | .count')
if [ "$UNKNOWN" -gt 100 ]; then
  echo "WARNING: $UNKNOWN unknown devices detected"
fi

Device Types vs Profiler Policies

| Level | Example | Command | |-------|---------|---------| | Broad category | Workstation | dc device-types | | Specific policy | Windows10-Workstation, Linux-Workstation | dc profiler |

Device types group multiple profiler policies into categories: - Workstation: Windows10-Workstation, Linux-Workstation, macOS-Workstation - Phone: Cisco-IP-Phone, Apple-iPhone, Android-Device

See Also

  • profiler - Counts by specific profiler policy

  • endpoints - List individual endpoints