Server statistics
Fusion exposes always-on diagnostic metrics that provide visibility into server activity, user sessions, network connections, etc.
These metrics are maintained within the server and can be queried on demand using the
tsmb-status tool which retrieves this information in JSON format.
This tool is primarily intended for:
- System administrators, to monitor current load and active users.
- Support engineers, to trace protocol activity and verify security settings.
- Monitoring pipelines, to feed telemetry into dashboards or alerting systems.
The output is designed to be machine readable and can also be interpreted manually when troubleshooting.
The tsmb-status tool reports SMB and NFS statistics. To retrieve the statistics of one protocol or of one section, use the --category parameter, for example --category smb.session or --category nfs.client.
Understanding the metrics JSON output
The JSON output of tsmb-status has one object for each protocol, smb and nfs. Each object holds one array for each category:
smb.session[]— Represents authenticated user sessions. Each session includes identity (username, SID, UID), security attributes, and a list of associated connection IDs.smb.connection[]— Represents active network connections. Each connection includes socket endpoints, protocol negotiation parameters, counters for bytes/packets, and per-operation statistics.nfs.connection[]— NFS connections. Each connection includes socket endpoints, the transport, counters for bytes and packets, and statistics for each operation.nfs.session[]— NFSv4.1 sessions. Each session includes the attributes of its channels and the IDs of its connections.nfs.client[]— NFS client records. Each record includes the owner of the client, the state of the record and the security flavor.nfs.gss-context[]— RPCSEC_GSS contexts. Each context includes the user and the expiry time of the credential.
Field descriptions can be found in section Statistics Field Descriptions.
Data overview
- A Session = a user’s authenticated context on the server.
- A Connection = a transport channel (socket pair) that carries protocol traffic.
- Each session may reference one or more connection IDs.
- Each connection may service one or more sessions.
- The linking key between them is the
Conn ID, which appears in bothsmb.session[].Connections[]andsmb.connection[]."Conn ID". - For NFS,
nfs.session[].Connections[]holds theConn IDvalues ofnfs.connection[], and theClient IDof a session refers to its record innfs.client[].
This organization allows administrators to traverse from who (sessions) to how (connections) and vice-versa.
Representative example (full JSON output)
{
"smb": {
"connection": [
{
"Node ID": 0,
"Key": 8589934594,
"Conn ID": 4294967298,
"Time of Connection": "2026-11-13T22:40:16",
"Online": true,
"Transport": "DIRECT_TCP",
"Src Address": "192.168.4.18",
"Src Port": 39548,
"Dst Address": "192.168.4.17",
"Dst Port": 445,
"Dialect": "SMB 3.1.1",
"Signing required": false,
"Signing Alg": "aes-cmac",
"Cipher Alg": "aes-128-gcm",
"Opens": 0,
"Sessions": 1,
"SMB2 Credits": 529,
"RX bytes": 6041,
"TX bytes": 3240,
"RX packets": 18,
"TX packets": 18,
"Outstanding ops": 0,
"Operations": [
{
"Name": "SMB Open",
"Count": 4,
"Total duration": "0.017856229",
"Data bytes": 0
},
{
"Name": "SMB Close",
"Count": 4,
"Total duration": "0.019494601",
"Data bytes": 0
},
{
"Name": "SMB Read",
"Count": 0,
"Total duration": "0.000000000",
"Data bytes": 0
},
{
"Name": "SMB Write",
"Count": 0,
"Total duration": "0.000000000",
"Data bytes": 0
},
{
"Name": "SMB Flush",
"Count": 0,
"Total duration": "0.000000000",
"Data bytes": 0
},
{
"Name": "SMB Lock",
"Count": 0,
"Total duration": "0.000000000",
"Data bytes": 0
},
{
"Name": "SMB SetInfo",
"Count": 0,
"Total duration": "0.000000000",
"Data bytes": 0
},
{
"Name": "SMB QueryDirectory",
"Count": 0,
"Total duration": "0.000000000",
"Data bytes": 0
},
{
"Name": "SMB QueryInfo",
"Count": 5,
"Total duration": "0.025708157",
"Data bytes": 0
},
{
"Name": "Unclassified",
"Count": 7,
"Total duration": "0.101170054",
"Data bytes": 0
}
]
}
],
"session": [
{
"Node ID": 0,
"Key": 8606711810,
"Session ID": 2,
"Time of Session": "2026-11-13T22:40:16",
"SID": "S-1-5-21-1111111111-2222222222-3333333333-1104",
"Username": "EXAMPLE\\user1",
"UID": 200004,
"Signing required": false,
"Encryption required": false,
"Guest": false,
"Opens": 0,
"Rx plain pkts": 13,
"Rx encrypted pkts": 0,
"Rx signed pkts": 2,
"Connections": [
4294967298
]
}
]
},
"nfs": {
"connection": [
{
"Node ID": 0,
"Key": 4378853377,
"Conn ID": 8589934593,
"Time of Connection": "2026-11-13T22:43:09",
"Online": true,
"Transport": "ONCRPC_TCP",
"Src Address": "192.168.4.18",
"Src Port": 999,
"Dst Address": "192.168.4.17",
"Dst Port": 2049,
"Sessions": 1,
"RX bytes": 249568,
"TX bytes": 208732,
"RX packets": 183,
"TX packets": 183,
"Outstanding ops": 0,
"Operations": [
{
"Name": "ACCESS",
"Count": 39,
"Total duration": "0.104706981",
"Data bytes": 0
},
{
"Name": "GETATTR",
"Count": 134,
"Total duration": "0.477624871",
"Data bytes": 0
},
{
"Name": "GETFH",
"Count": 9,
"Total duration": "0.161178645",
"Data bytes": 0
},
{
"Name": "LOOKUP",
"Count": 8,
"Total duration": "0.156377698",
"Data bytes": 0
},
{
"Name": "PUTFH",
"Count": 175,
"Total duration": "0.775738996",
"Data bytes": 0
},
{
"Name": "PUTROOTFH",
"Count": 1,
"Total duration": "0.004800947",
"Data bytes": 0
},
{
"Name": "READDIR",
"Count": 42,
"Total duration": "0.302915072",
"Data bytes": 0
},
{
"Name": "EXCHANGE_ID",
"Count": 4,
"Total duration": "0.007613819",
"Data bytes": 0
},
{
"Name": "CREATE_SESSION",
"Count": 1,
"Total duration": "0.001834398",
"Data bytes": 0
},
{
"Name": "SEQUENCE",
"Count": 177,
"Total duration": "0.782816075",
"Data bytes": 0
},
{
"Name": "RECLAIM_COMPLETE",
"Count": 1,
"Total duration": "0.002276132",
"Data bytes": 0
}
]
}
],
"session": [
{
"Node ID": 0,
"Key": 4395630593,
"Session ID": "d6b156f900000002f542321a00000001",
"Session Table ID": 17672742975005786113,
"Client ID": 15470241822441209858,
"Time of Session": "2026-11-13T22:43:10",
"Major Version": 4,
"Minor Version": 1,
"Session Flags": 2,
"Fore slots": 64,
"Back slots": 16,
"Fore max request size": 1049620,
"Fore max response size": 1049480,
"Fore max ops": 8,
"Fore max requests": 64,
"Back max request size": 4096,
"Back max response size": 4096,
"Back max ops": 2,
"Back max requests": 16,
"Callback Program": 1073741824,
"Connections": [
8589934593
]
}
],
"client": [
{
"Node ID": 0,
"Key": 8707375106,
"Client ID": 15470241822441209858,
"Client Owner": "Linux NFSv4.1 client1",
"State": "CONFIRMED",
"Time of Client": "2026-11-13T22:43:10",
"Auth Flavor": "RPCSEC_GSS",
"Principal": "CLIENT1$@EXAMPLE.COM",
"UID": null,
"Server Address": "192.168.4.17",
"Verifier": "18e6b8148bdfd4c1",
"Flags": 0,
"Session Sequence": 1,
"Stateids": 0,
"Impl Domain": "kernel.org",
"Impl Name": "Linux 6.8.0-62-generic #65-Ubuntu SMP PREEMPT_DYNAMIC Mon May 19 17:15:03 UTC 2025 x86_64"
}
],
"gss-context": [
{
"Node ID": 0,
"Key": 13019119619,
"Context ID": 3,
"Context Table ID": 3,
"State": "ESTABLISHED",
"Username": "user1@EXAMPLE.COM",
"UID": 200004,
"Time of Context": "2026-11-13T22:43:33",
"Expiry Time": "2026-11-14T08:48:26"
},
{
"Node ID": 0,
"Key": 8724152322,
"Context ID": 2,
"Context Table ID": 2,
"State": "ESTABLISHED",
"Username": "CLIENT1$@EXAMPLE.COM",
"UID": null,
"Time of Context": "2026-11-13T22:43:10",
"Expiry Time": "2026-11-14T08:48:08"
}
]
}
}
Scaling to large deployments
In large environments:
- Hundreds or even thousands of sessions may be active simultaneously.
- Each session can own multiple connections (e.g., on Windows 2019 server a client identified by its IP is allowed 32 multichannel connections per session).
- The total number of connection objects can reach into the thousands.
To associate a specific session (for example, identified by a username) with a connection:
- Locate the session in the
smb.session[]list by matching itsUsername. - In the
sessionobject identify all theConn IDs in the arrayConnections[]. - Locate the connection in the
smb.connection[]list by matching itsConn ID.
Navigation tips: Listing connections by Username
To list all connection objects associated with a session, you can filter by Username.
By Username
jq --arg user "sdcuser1" '
. as $root
| $root.smb.session[]
| select(.Username == $user)
| . + {
connections: [
.Connections[] as $cid
| $root.smb.connection[]
| select(."Conn ID" == $cid)
]
}
' metrics.json
Statistics field descriptions
Field classes
This section defines the categories used to classify fields in the metrics output (IDs, timestamps, gauges, counters, flags, etc.). It serves as a legend to quickly understand the role of each field in the tables that follow.
- Gauge — snapshot metric that can go up/down.
- Counter[w] — monotonic counter that wraps at 2^w−1 (use wrap-aware deltas).
- TS — ISO 8601 formatted timestamp (event/establish time).
- ID — unique identifier key.
- FLG — boolean flag.
- ENUM — categorical value from a known set.
- ADDR — endpoint address/port.
- REF — reference to another object/ID.
- COLL — collection (array/object list).
- INFO — informational string.
Interpreting gauges and counters
This section explains how to interpret numeric metrics that either represent instantaneous values (gauges) or cumulative totals (counters). It also introduces the wrap-aware delta formula for converting counters into useful rates like throughput and IOPS.
- Gauge — snapshot value at sample time.
- Can rise or fall.
- Plot raw values (no rate calculation).
- Counter[w] — cumulative counter that increases until it wraps at 2^w − 1 (where w is bit width, usually 32 or 64).
- Use wrap-aware deltas to calculate throughput/IOPS.
- Formula
Δt (delta t) — the elapsed time between two samples, in any unit of time (often seconds).if (new >= old)delta = new - old;elsedelta = (2^w - old) + new; // wrap correctionrate = delta / Δt;
E.g. if RX bytes = 1000 at t=0s and RX bytes = 6000 at t=10s, then- delta = 6000 − 1000 = 5000 bytes
- Δt = 10 seconds
- rate = 5000 / 10 = 500 bytes/sec
smb.connection[] entries
This section documents all fields reported for each active connection in the server. It includes identifiers, transport details, security settings, activity counts, and per-operation statistics.
| Field | Type | Class | Description | Units / Format | Example |
|---|---|---|---|---|---|
Node ID | integer | ID | Collector/cluster node identifier. | — | 0 |
Key | integer | ID | Unique key for this connection record. | — | 12884901889 |
Conn ID | integer | ID | Connection identifier within the node. | — | 1 |
Time of Connection | string | TS | Time the connection was established. | YYYY-MM-DDTHH:MM:SS | "2025-09-19T02:51:17" |
Online | boolean | FLG | Whether the connection is currently online. | — | true |
Transport | string | ENUM | Transport type. | e.g., DIRECT_TCP | "DIRECT_TCP" |
Src Address | string | ADDR | Source IP address. | IPv4/IPv6 | "192.168.4.18" |
Src Port | integer | ADDR | Source TCP port. | 0–65535 | 39690 |
Dst Address | string | ADDR | Destination IP address. | IPv4/IPv6 | "192.168.4.18" |
Dst Port | integer | ADDR | Destination TCP port. | 0–65535 | 445 |
Dialect | string | ENUM | SMB protocol dialect negotiated. | e.g., SMB 3.1.1 | "SMB 3.1.1" |
Signing required | boolean | FLG | Whether SMB signing is required. | — | false |
Signing Alg | string | ENUM | Negotiated signing algorithm. | e.g., aes-cmac | "aes-cmac" |
Cipher Alg | string | ENUM | Negotiated encryption cipher. | e.g., aes-128-gcm | "aes-128-gcm" |
Opens | integer | Gauge | Current open handles on this connection. | count | 0 |
Sessions | integer | Gauge | Current SMB sessions on the connection. | count | 1 |
SMB2 Credits | integer | Gauge | SMB2 credits granted at sample time. | credits | 529 |
RX bytes | integer | Counter[64] | Bytes received since reset; wraps. | bytes | 5727 |
TX bytes | integer | Counter[64] | Bytes sent since reset; wraps. | bytes | 2988 |
RX packets | integer | Counter[64] | Packets received since reset; wraps. | packets | 18 |
TX packets | integer | Counter[64] | Packets sent since reset; wraps. | packets | 18 |
Outstanding ops | integer | Gauge | In-flight SMB operations now. | count | 0 |
Operations | array[object] | COLL | Per-operation tallies (see below). | — | — |
smb.connection[].Operations[] items
This subsection details the breakdown of operations observed on a connection, including counts, total durations, and bytes processed for each SMB operation.
| Field | Type | Class | Description | Units / Format | Example |
|---|---|---|---|---|---|
Name | string | ENUM | SMB operation. | e.g., SMB Open, Unclassified | "SMB Open" |
Count | integer | Counter[64] | Requests observed for this op; wraps. | ops | 4 |
Total duration | string/number | Counter[64] | Sum of the durations of the requests that contained the operation; wraps. The duration of a request is the time from its arrival at the server to the reply. It does not include the time in the network. A request adds its duration once, also when it contains the operation several times. | seconds | "0.114998391" |
Data bytes | integer | Counter[64] | Cumulative payload bytes for this op; wraps. | bytes | 0 |
smb.session[] entries
This section covers all fields reported for each session, including user identity, security flags, and packet counters. It also shows how sessions reference one or more underlying connections.
| Field | Type | Class | Description | Units / Format | Example |
|---|---|---|---|---|---|
Node ID | integer | ID | Collector/cluster node identifier. | — | 0 |
Key | integer | ID | Unique key for this session record. | — | 12901679105 |
Session ID | integer | ID | SMB session identifier within the node. | — | 1 |
Time of Session | string | TS | Time the session was established. | YYYY-MM-DDTHH:MM:SS | "2025-09-19T02:51:17" |
SID | string | ID | Windows Security Identifier. | SID string | "S-1-5-21-...-30003" |
Username | string | INFO | Authenticated username. | — | "Windowsuser1" |
UID | integer | ID | Local user ID mapping. | — | 30003 |
Signing required | boolean | FLG | Whether SMB signing is required. | — | false |
Encryption required | boolean | FLG | Whether SMB encryption is required. | — | false |
Guest | boolean | FLG | Guest authentication indicator. | — | false |
Opens | integer | Gauge | Current open handles under this session. | count | 0 |
Rx plain pkts | integer | Counter[64] | Plain packets received; wraps. | packets | 13 |
Rx encrypted pkts | integer | Counter[64] | Encrypted packets received; wraps. | packets | 0 |
Rx signed pkts | integer | Counter[64] | Signed packets received; wraps. | packets | 2 |
Connections | array[integer] | REF | Conn IDs associated with this session (refs Conn ID). | list of IDs | [1] |
nfs.connection[] entries
This section documents all fields reported for each NFS connection.
| Field | Type | Class | Description | Units / Format | Example |
|---|---|---|---|---|---|
Node ID | integer | ID | Collector/cluster node identifier. | — | 0 |
Key | integer | ID | Unique key for this connection record. | — | 4378853377 |
Conn ID | integer | ID | Connection identifier. nfs.session[].Connections[] refers to it. | — | 8589934593 |
Time of Connection | string | TS | Time the server accepted the connection. | YYYY-MM-DDTHH:MM:SS | "2026-11-13T22:43:09" |
Online | boolean | FLG | Whether the connection is currently online. | — | true |
Transport | string | ENUM | Transport of the connection. | ONCRPC_TCP, ONCRPC_RDMA | "ONCRPC_TCP" |
Src Address | string | ADDR | Client IP address. | IPv4/IPv6 | "192.168.4.18" |
Src Port | integer | ADDR | Client port. | 0–65535 | 999 |
Dst Address | string | ADDR | Server IP address. | IPv4/IPv6 | "192.168.4.17" |
Dst Port | integer | ADDR | Server port. | 0–65535 | 2049 |
Sessions | integer | Gauge | Number of sessions that use the connection. | count | 1 |
RX bytes | integer | Counter[64] | Bytes received since the connection started; wraps. | bytes | 249568 |
TX bytes | integer | Counter[64] | Bytes sent since the connection started; wraps. | bytes | 208732 |
RX packets | integer | Counter[64] | RPC records received; wraps. | packets | 183 |
TX packets | integer | Counter[64] | RPC replies sent; wraps. | packets | 183 |
Outstanding ops | integer | Gauge | Not used for NFS. The value is always 0. | count | 0 |
Operations | array[object] | COLL | Statistics for each operation (see below). The JSON output leaves out an operation if all its values are 0. | — | — |
nfs.connection[].Operations[] items
| Field | Type | Class | Description | Units / Format | Example |
|---|---|---|---|---|---|
Name | string | ENUM | NFSv4 operation. | e.g., GETATTR, READ | "GETATTR" |
Count | integer | Counter[64] | Number of times the operation occurred in COMPOUND requests that got a reply; wraps. | ops | 134 |
Total duration | string | Counter[64] | Sum of the durations of the COMPOUND requests that contained the operation. The duration of a request is the time from its arrival at the server to the reply. It does not include the time in the network. A request adds its duration once, also when it contains the operation several times. | seconds | "0.477624871" |
Data bytes | integer | Counter[64] | Payload bytes of READ and WRITE operations. The value is 0 for other operations. | bytes | 0 |
nfs.session[] entries
This section documents all fields reported for each NFSv4.1 session.
| Field | Type | Class | Description | Units / Format | Example |
|---|---|---|---|---|---|
Node ID | integer | ID | Collector/cluster node identifier. | — | 0 |
Key | integer | ID | Unique key for this session record. | — | 4395630593 |
Session ID | string | ID | Session ID of NFSv4.1, as 32 hex characters. | hex | "d6b156f900000002f542321a00000001" |
Session Table ID | integer | ID | Part of the session ID that the server uses internally. | — | 17672742975005786113 |
Client ID | integer | REF | Client record of the session (refs Client ID of nfs.client[]). | — | 15470241822441209858 |
Time of Session | string | TS | Time the server created the session. | YYYY-MM-DDTHH:MM:SS | "2026-11-13T22:43:10" |
Major Version | integer | INFO | NFS major version. | — | 4 |
Minor Version | integer | INFO | NFS minor version. | — | 1 |
Session Flags | integer | INFO | Session flags that the server granted. The value 2 means that the session has a back channel. | bitmask | 2 |
Fore slots | integer | INFO | Slots of the fore channel. | count | 64 |
Back slots | integer | INFO | Slots of the back channel. | count | 16 |
Fore max request size | integer | INFO | Largest request on the fore channel. | bytes | 1049620 |
Fore max response size | integer | INFO | Largest response on the fore channel. | bytes | 1049480 |
Fore max ops | integer | INFO | Largest number of operations in one COMPOUND request on the fore channel. | count | 8 |
Fore max requests | integer | INFO | Largest number of concurrent requests on the fore channel. | count | 64 |
Back max request size, Back max response size, Back max ops, Back max requests | integer | INFO | Back channel attributes, as the client requested them. | bytes / count | 4096, 4096, 2, 16 |
Callback Program | integer | INFO | RPC program number of the callback service of the client. | — | 1073741824 |
Connections | array[integer] | REF | Conn ID values of the connections that are bound to the session, up to 32. | list of IDs | [8589934593] |
nfs.client[] entries
This section documents all fields reported for each NFS client record.
| Field | Type | Class | Description | Units / Format | Example |
|---|---|---|---|---|---|
Node ID | integer | ID | Collector/cluster node identifier. | — | 0 |
Key | integer | ID | Unique key for this client record. | — | 8707375106 |
Client ID | integer | ID | Client ID that the server gave to the client. nfs.session[]."Client ID" refers to it. | — | 15470241822441209858 |
Client Owner | string | ID | Owner string of the client. The server shows an owner that is not printable as hex. | — | "Linux NFSv4.1 client1" |
State | string | ENUM | State of the client record. | UNCONFIRMED, CONFIRMED, EXPIRED | "CONFIRMED" |
Time of Client | string | TS | Time the server created the client record. | YYYY-MM-DDTHH:MM:SS | "2026-11-13T22:43:10" |
Auth Flavor | string | ENUM | Security flavor of the request that created the record. | AUTH_NONE, AUTH_SYS, RPCSEC_GSS | "RPCSEC_GSS" |
Principal | string | INFO | Kerberos principal of the request that created the record. Empty for AUTH_NONE and AUTH_SYS. | — | "CLIENT1$@EXAMPLE.COM" |
UID | integer or null | INFO | UID of the request that created the record. null if the server did not map one. | — | null |
Server Address | string | ADDR | Server IP address through which the client created the record. | IPv4/IPv6 | "192.168.4.17" |
Verifier | string | INFO | Verifier of the client. The client changes it when it restarts. | 16 hex characters | "18e6b8148bdfd4c1" |
Flags | integer | INFO | Flags of the client record at the time the server created it. The server does not update the value later. | bitmask | 0 |
Session Sequence | integer | INFO | Sequence ID for CREATE_SESSION at the time the server created the record. The server does not update the value later. | — | 1 |
Stateids | integer | Gauge | Number of stateids that the client holds. | count | 0 |
Impl Domain | string | INFO | Implementation domain that the client reported. | — | "kernel.org" |
Impl Name | string | INFO | Implementation name that the client reported. | — | "Linux 6.8.0-62-generic …" |
nfs.gss-context[] entries
This section documents all fields reported for each RPCSEC_GSS context.
| Field | Type | Class | Description | Units / Format | Example |
|---|---|---|---|---|---|
Node ID | integer | ID | Collector/cluster node identifier. | — | 0 |
Key | integer | ID | Unique key for this context record. | — | 13019119619 |
Context ID | integer | ID | ID of the RPCSEC_GSS context. | — | 3 |
Context Table ID | integer | ID | Part of the context handle that the server uses internally. | — | 3 |
State | string | ENUM | State of the context. | ESTABLISHING, ESTABLISHED | "ESTABLISHED" |
Username | string | INFO | Kerberos principal of the context. Empty until the context is established. | — | "user1@EXAMPLE.COM" |
UID | integer or null | INFO | UID of the user. null until the context is established, or if the server did not map the principal. | — | 200004 |
Time of Context | string | TS | Time the server created the context. | YYYY-MM-DDTHH:MM:SS | "2026-11-13T22:43:33" |
Expiry Time | string or null | TS | Expiry time of the Kerberos credential. null while the server establishes the context. | YYYY-MM-DDTHH:MM:SS | "2026-11-14T08:48:26" |