Skip to main content
Version: 3026.10 / 3026.11-mp

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​

Applies to:SMBNFS

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 both smb.session[].Connections[] and smb.connection[]."Conn ID".
  • For NFS, nfs.session[].Connections[] holds the Conn ID values of nfs.connection[], and the Client ID of a session refers to its record in nfs.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​

Applies to:SMB

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:

  1. Locate the session in the smb.session[] list by matching its Username.
  2. In the session object identify all the Conn IDs in the array Connections[].
  3. Locate the connection in the smb.connection[] list by matching its Conn ID.

Applies to:SMB

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​

Applies to:SMBNFS

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.

  1. Gauge — snapshot metric that can go up/down.
  2. Counter[w] — monotonic counter that wraps at 2^w−1 (use wrap-aware deltas).
  3. TS — ISO 8601 formatted timestamp (event/establish time).
  4. ID — unique identifier key.
  5. FLG — boolean flag.
  6. ENUM — categorical value from a known set.
  7. ADDR — endpoint address/port.
  8. REF — reference to another object/ID.
  9. COLL — collection (array/object list).
  10. 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.

  1. Gauge — snapshot value at sample time.
    1. Can rise or fall.
    2. Plot raw values (no rate calculation).
  2. Counter[w] — cumulative counter that increases until it wraps at 2^w − 1 (where w is bit width, usually 32 or 64).
    1. Use wrap-aware deltas to calculate throughput/IOPS.
    2. Formula
      if (new >= old)
      delta = new - old;
      else
      delta = (2^w - old) + new; // wrap correction

      rate = delta / Δt;
      Δt (delta t) — the elapsed time between two samples, in any unit of time (often seconds).
      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​

Applies to:SMB

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.

FieldTypeClassDescriptionUnits / FormatExample
Node IDintegerIDCollector/cluster node identifier.—0
KeyintegerIDUnique key for this connection record.—12884901889
Conn IDintegerIDConnection identifier within the node.—1
Time of ConnectionstringTSTime the connection was established.YYYY-MM-DDTHH:MM:SS"2025-09-19T02:51:17"
OnlinebooleanFLGWhether the connection is currently online.—true
TransportstringENUMTransport type.e.g., DIRECT_TCP"DIRECT_TCP"
Src AddressstringADDRSource IP address.IPv4/IPv6"192.168.4.18"
Src PortintegerADDRSource TCP port.0–6553539690
Dst AddressstringADDRDestination IP address.IPv4/IPv6"192.168.4.18"
Dst PortintegerADDRDestination TCP port.0–65535445
DialectstringENUMSMB protocol dialect negotiated.e.g., SMB 3.1.1"SMB 3.1.1"
Signing requiredbooleanFLGWhether SMB signing is required.—false
Signing AlgstringENUMNegotiated signing algorithm.e.g., aes-cmac"aes-cmac"
Cipher AlgstringENUMNegotiated encryption cipher.e.g., aes-128-gcm"aes-128-gcm"
OpensintegerGaugeCurrent open handles on this connection.count0
SessionsintegerGaugeCurrent SMB sessions on the connection.count1
SMB2 CreditsintegerGaugeSMB2 credits granted at sample time.credits529
RX bytesintegerCounter[64]Bytes received since reset; wraps.bytes5727
TX bytesintegerCounter[64]Bytes sent since reset; wraps.bytes2988
RX packetsintegerCounter[64]Packets received since reset; wraps.packets18
TX packetsintegerCounter[64]Packets sent since reset; wraps.packets18
Outstanding opsintegerGaugeIn-flight SMB operations now.count0
Operationsarray[object]COLLPer-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.

FieldTypeClassDescriptionUnits / FormatExample
NamestringENUMSMB operation.e.g., SMB Open, Unclassified"SMB Open"
CountintegerCounter[64]Requests observed for this op; wraps.ops4
Total durationstring/numberCounter[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 bytesintegerCounter[64]Cumulative payload bytes for this op; wraps.bytes0

smb.session[] entries​

Applies to:SMB

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.

FieldTypeClassDescriptionUnits / FormatExample
Node IDintegerIDCollector/cluster node identifier.—0
KeyintegerIDUnique key for this session record.—12901679105
Session IDintegerIDSMB session identifier within the node.—1
Time of SessionstringTSTime the session was established.YYYY-MM-DDTHH:MM:SS"2025-09-19T02:51:17"
SIDstringIDWindows Security Identifier.SID string"S-1-5-21-...-30003"
UsernamestringINFOAuthenticated username.—"Windowsuser1"
UIDintegerIDLocal user ID mapping.—30003
Signing requiredbooleanFLGWhether SMB signing is required.—false
Encryption requiredbooleanFLGWhether SMB encryption is required.—false
GuestbooleanFLGGuest authentication indicator.—false
OpensintegerGaugeCurrent open handles under this session.count0
Rx plain pktsintegerCounter[64]Plain packets received; wraps.packets13
Rx encrypted pktsintegerCounter[64]Encrypted packets received; wraps.packets0
Rx signed pktsintegerCounter[64]Signed packets received; wraps.packets2
Connectionsarray[integer]REFConn IDs associated with this session (refs Conn ID).list of IDs[1]

nfs.connection[] entries​

Applies to:NFS

This section documents all fields reported for each NFS connection.

FieldTypeClassDescriptionUnits / FormatExample
Node IDintegerIDCollector/cluster node identifier.—0
KeyintegerIDUnique key for this connection record.—4378853377
Conn IDintegerIDConnection identifier. nfs.session[].Connections[] refers to it.—8589934593
Time of ConnectionstringTSTime the server accepted the connection.YYYY-MM-DDTHH:MM:SS"2026-11-13T22:43:09"
OnlinebooleanFLGWhether the connection is currently online.—true
TransportstringENUMTransport of the connection.ONCRPC_TCP, ONCRPC_RDMA"ONCRPC_TCP"
Src AddressstringADDRClient IP address.IPv4/IPv6"192.168.4.18"
Src PortintegerADDRClient port.0–65535999
Dst AddressstringADDRServer IP address.IPv4/IPv6"192.168.4.17"
Dst PortintegerADDRServer port.0–655352049
SessionsintegerGaugeNumber of sessions that use the connection.count1
RX bytesintegerCounter[64]Bytes received since the connection started; wraps.bytes249568
TX bytesintegerCounter[64]Bytes sent since the connection started; wraps.bytes208732
RX packetsintegerCounter[64]RPC records received; wraps.packets183
TX packetsintegerCounter[64]RPC replies sent; wraps.packets183
Outstanding opsintegerGaugeNot used for NFS. The value is always 0.count0
Operationsarray[object]COLLStatistics for each operation (see below). The JSON output leaves out an operation if all its values are 0.——

nfs.connection[].Operations[] items​

Applies to:NFS
FieldTypeClassDescriptionUnits / FormatExample
NamestringENUMNFSv4 operation.e.g., GETATTR, READ"GETATTR"
CountintegerCounter[64]Number of times the operation occurred in COMPOUND requests that got a reply; wraps.ops134
Total durationstringCounter[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 bytesintegerCounter[64]Payload bytes of READ and WRITE operations. The value is 0 for other operations.bytes0

nfs.session[] entries​

Applies to:NFS

This section documents all fields reported for each NFSv4.1 session.

FieldTypeClassDescriptionUnits / FormatExample
Node IDintegerIDCollector/cluster node identifier.—0
KeyintegerIDUnique key for this session record.—4395630593
Session IDstringIDSession ID of NFSv4.1, as 32 hex characters.hex"d6b156f900000002f542321a00000001"
Session Table IDintegerIDPart of the session ID that the server uses internally.—17672742975005786113
Client IDintegerREFClient record of the session (refs Client ID of nfs.client[]).—15470241822441209858
Time of SessionstringTSTime the server created the session.YYYY-MM-DDTHH:MM:SS"2026-11-13T22:43:10"
Major VersionintegerINFONFS major version.—4
Minor VersionintegerINFONFS minor version.—1
Session FlagsintegerINFOSession flags that the server granted. The value 2 means that the session has a back channel.bitmask2
Fore slotsintegerINFOSlots of the fore channel.count64
Back slotsintegerINFOSlots of the back channel.count16
Fore max request sizeintegerINFOLargest request on the fore channel.bytes1049620
Fore max response sizeintegerINFOLargest response on the fore channel.bytes1049480
Fore max opsintegerINFOLargest number of operations in one COMPOUND request on the fore channel.count8
Fore max requestsintegerINFOLargest number of concurrent requests on the fore channel.count64
Back max request size, Back max response size, Back max ops, Back max requestsintegerINFOBack channel attributes, as the client requested them.bytes / count4096, 4096, 2, 16
Callback ProgramintegerINFORPC program number of the callback service of the client.—1073741824
Connectionsarray[integer]REFConn ID values of the connections that are bound to the session, up to 32.list of IDs[8589934593]

nfs.client[] entries​

Applies to:NFS

This section documents all fields reported for each NFS client record.

FieldTypeClassDescriptionUnits / FormatExample
Node IDintegerIDCollector/cluster node identifier.—0
KeyintegerIDUnique key for this client record.—8707375106
Client IDintegerIDClient ID that the server gave to the client. nfs.session[]."Client ID" refers to it.—15470241822441209858
Client OwnerstringIDOwner string of the client. The server shows an owner that is not printable as hex.—"Linux NFSv4.1 client1"
StatestringENUMState of the client record.UNCONFIRMED, CONFIRMED, EXPIRED"CONFIRMED"
Time of ClientstringTSTime the server created the client record.YYYY-MM-DDTHH:MM:SS"2026-11-13T22:43:10"
Auth FlavorstringENUMSecurity flavor of the request that created the record.AUTH_NONE, AUTH_SYS, RPCSEC_GSS"RPCSEC_GSS"
PrincipalstringINFOKerberos principal of the request that created the record. Empty for AUTH_NONE and AUTH_SYS.—"CLIENT1$@EXAMPLE.COM"
UIDinteger or nullINFOUID of the request that created the record. null if the server did not map one.—null
Server AddressstringADDRServer IP address through which the client created the record.IPv4/IPv6"192.168.4.17"
VerifierstringINFOVerifier of the client. The client changes it when it restarts.16 hex characters"18e6b8148bdfd4c1"
FlagsintegerINFOFlags of the client record at the time the server created it. The server does not update the value later.bitmask0
Session SequenceintegerINFOSequence ID for CREATE_SESSION at the time the server created the record. The server does not update the value later.—1
StateidsintegerGaugeNumber of stateids that the client holds.count0
Impl DomainstringINFOImplementation domain that the client reported.—"kernel.org"
Impl NamestringINFOImplementation name that the client reported.—"Linux 6.8.0-62-generic …"

nfs.gss-context[] entries​

Applies to:NFS

This section documents all fields reported for each RPCSEC_GSS context.

FieldTypeClassDescriptionUnits / FormatExample
Node IDintegerIDCollector/cluster node identifier.—0
KeyintegerIDUnique key for this context record.—13019119619
Context IDintegerIDID of the RPCSEC_GSS context.—3
Context Table IDintegerIDPart of the context handle that the server uses internally.—3
StatestringENUMState of the context.ESTABLISHING, ESTABLISHED"ESTABLISHED"
UsernamestringINFOKerberos principal of the context. Empty until the context is established.—"user1@EXAMPLE.COM"
UIDinteger or nullINFOUID of the user. null until the context is established, or if the server did not map the principal.—200004
Time of ContextstringTSTime the server created the context.YYYY-MM-DDTHH:MM:SS"2026-11-13T22:43:33"
Expiry Timestring or nullTSExpiry time of the Kerberos credential. null while the server establishes the context.YYYY-MM-DDTHH:MM:SS"2026-11-14T08:48:26"