The NetworkSessions collector gets information of currently open network sessions (connections made from a remote computer to a shared resource) on the device.
Important
In some Linux distributions (CentOS 7, Oracle Linux Server 7, and RHEL Desktop and Server 7), the net command is not available by default. You must install the samba-common-tools package by executing the following command:
yum install samba-common-tools
Field | Type | Description |
|---|---|---|
computer | String | IP or host name of remote device. |
user | String | User logged on to host through the network session. |
client | String | Remote session command provider (Windows only). |
file | String | Path of local resource being accessed by client (Windows only). |
idletime | String | Time since last session activity (Windows only). |
Windows | Linux | macOS |
|---|---|---|
3.0 and later | 3.0 and later | n/a |
NetworkSessions where NetworkSessions user equals "owilde"
NetworkSessions computer, user, client, file WHERE NetworkSessions file not ends with "$"
NetworkSessions computer, user, client, file WHERE NetworkSessions file equals "cifsshare"
NetworkSessions computer, user, client, file WHERE NetworkSessions user equals "alice"
NetworkSessions computer, user, client, file WHERE NetworkSessions user equals "alice" OR NetworkSessions user equals "bob" OR NetworkSessions user equals "frank"
NetworkSessions computer, user, client, file WHERE NetworkSessions computer equals "PC1"
NetworkSessions where NetworkSessions user equals "owilde"
NetworkSessions computer, user, client, file WHERE NetworkSessions file not ends with "$"
NetworkSessions computer, user, client, file WHERE NetworkSessions file equals "cifsshare"
NetworkSessions computer, user, client, file WHERE NetworkSessions user equals "alice"
NetworkSessions computer, user, client, file WHERE NetworkSessions user equals "alice" OR NetworkSessions user equals "bob" OR NetworkSessions user equals "frank"
NetworkSessions computer, user, client, file WHERE NetworkSessions computer equals "PC1"