Diameter sessions
diameter_sessionsGroups Diameter traffic by Session-Id to show application, hosts/realms, subscriber IMSI, timing, command codes, result codes, failures, and paired transactions; filter by session/IMSI/command code.
Instructions
Group Diameter traffic by Session-Id. Each session gives the application, origin
and destination hosts and realms, User-Name (IMSI), first/last timestamp and duration,
the request and answer command codes seen, every Result-Code or Experimental-Result-Code,
counts of unanswered and failed transactions (with unanswered_near_capture_end for
those the capture stopped too soon after to tell, as in diameter_transactions), the
worst round-trip, and the list of transactions (request paired with its answer by
Hop-by-Hop id, with RTT). Narrow with
session_id (exact), imsi (User-Name digits) or command_code (e.g. 316 for ULR):
matching messages select the sessions, then every message of those sessions is
fetched so answers are not lost. filter is an extra display filter ANDed with
diameter. Messages without a Session-Id (DWR, CER) are counted, not listed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "diameter_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Same forms as start | |
| imsi | No | IMSI, 6 to 15 digits | |
| path | Yes | Capture file (absolute, in an allowed dir) or open_capture handle | |
| limit | No | Most rows per page | |
| start | No | ISO 8601, epoch s, +Ns from start, -Ns from end | |
| filter | No | Extra display filter, ANDed | |
| offset | No | Rows to skip (next_offset) | |
| output | No | summary: all but rows, plus 3 rows (<8 KB) | rows |
| redact | No | Replace subscriber identifiers in this result with tokens; ids+ips hides every IP too | off |
| columns | No | Row keys to keep (frame keys stay) | |
| session_id | No | Diameter Session-Id | |
| command_code | No | Diameter command code, such as 316 (ULR) or 272 (CCR) | |
| max_output_kb | No | Lower output cap, KB |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| error | No | ||
| offset | No | ||
| window | No | ||
| dropped | No | ||
| summary | No | keys: sessions, unanswered, unanswered_near_capture_end, failed, without_session_id, by_application | |
| has_more | No | ||
| returned | No | ||
| sessions | No | rows with keys: session_id, first_time, last_time, duration_ms, application_id, application, origin_host, destination_host, origin_realm, destination_realm, user_name, src, dst, transaction_count, request_codes, answer_codes, result_codes, unanswered, unanswered_near_capture_end, failed, max_rtt_ms, transactions | |
| selection | No | ||
| next_offset | No | ||
| total_found | No | ||
| total_matched | No | ||
| packets_matched | No | ||
| packets_scanned | No | ||
| total_is_lower_bound | No |