View Active NAS Sessions
You can view information about active SMB and NFS sessions by issuing the system show smb | nfs
command.
- Log in to the Appliance Controller CLI.
- Enter:
DENY_NONE
DENY_READ
DENY_WRITE
DENY_ALL
nas smb show detail
Example:
> nas smb show detail
1 connections:
PID | User | Group | Machine | Protocol Version
-------------------------------------------------------------
1: 2:46320 | sysadmin | root | 10.65.187.69 | NT1
2 services:
Service | PID | Machine | Connected at
---------------------------------------------------------------------------
1: IPC$ | 2:46320 | 10.65.187.69 | Thu Nov 9 15:21:07 2017
2: smb1 | 2:46320 | 10.65.187.69 | Thu Nov 9 15:21:07 2017
3 locked files:
Pid | Uid | DenyMode | Access | R/W | Oplock | Share Path | Name | Time
----------------------------------------------------------------------------------------------------
1: 2:46320 | 498 | DENY_NONE | 0x19b | RDWR | EXCLUSIVE | /stornext/nas_fs1/smbshare1 | fsxfile.fsxgood | Fri Nov 10 08:28:09 2017
2: 2:46320 | 498 | DENY_NONE | 0x19b | RDWR | EXCLUSIVE | /stornext/nas_fs1/smbshare1 | fsxfile | Fri Nov 10 08:28:09 2017
3: 2:46320 | 498 | DENY_NONE | 0x192 | WRONLY | EXCLUSIVE | /stornext/nas_fs1/smbshare1 | fsxfile.fsxlog | Fri Nov 10 08:28:09 2017
Interpreting the Output
The following information is displayed for the system show smb
command:
x connections |
The number of active connections. |
PID |
The processor ID being used for the connection. |
User |
The user accessing the share. |
Group |
The ID of the group to which the user belongs. |
Machine |
The IP address of the machine from which the share is being accessed. |
Protocol Version |
The client's SMB protocol version. |
x services |
The number of active SMB services. |
Service |
The type of SMB service being used. |
Connected at |
The date and time at which the shared was mounted. |
x locked files |
The number of currently accessed locked files. |
Uid |
The ID of the user who has the file locked. |
DenyMode |
Whether others are able to access a locked file, and to what extent. The options are: |
Access |
The type of authorization assigned to the file. |
R/W |
The read/write settings assigned to the file. |
Oplock |
The OpLock setting assigned to the file. |
Share Path |
The share directory in which the file is located. |
Name |
The name of the file being accessed. |
Time |
The date and time on which the file was accessed. |
- Log in to the Appliance Controller CLI.
- Enter:
nas nfs show
Example:
> nas nfs show
NFS Status from: '10.65.191.xx' (Node: 1, cluster.example.com)
NFSv3 enabled: yes
NFSv4 enabled: no
NFS-HA enabled: yes
------------------------------------------------------------------------------
0 remote clients:
NFSv2/v3 Client | Mounted directory
------------------------------------------------------------------------------
NFS Status from: '10.65.190.xxx' (Node: 2, cluster.example.com)
NFSv3 enabled: yes
NFSv4 enabled: no
NFS-HA enabled: yes
------------------------------------------------------------------------------
1 remote client:
NFSv2/v3 Client | Mounted directory
------------------------------------------------------------------------------
10.65.190.xxx | /stornext/snfs1/shares/gw1/gwnfsshare3
NFS Status from: '10.65.173.xxx' (Node: 3, cluster.example.com)
NFSv3 enabled: yes
NFSv4 enabled: no
NFS-HA enabled: yes
------------------------------------------------------------------------------
2 remote clients:
NFSv2/v3 Client | Mounted directory
------------------------------------------------------------------------------
10.65.190.xxx | /stornext/snfs1/shares/gw1/gwnfsshare1
10.65.190.xxx | /stornext/snfs1/shares/gw1/gwnfsshare2
Interpreting the Output:
The following information is displayed for the system show smb
command:
NFS Status from |
The NAS cluster node that is reporting the NFS status. |
NFSv3 enabled |
Whether NFSv3 is enabled. Keep in mind that NFSv3 is automatically enabled when a NAS cluster is created. |
NFSv4 enabled |
Whether NFSv4 is enabled. You must manually enable NFSv4. See Enable NFSv4 Services. |
NFS-HA enabled |
Whether NFS failover is enabled for the active NFS service. Keep in mind that NFSv3 failover is automatically enabled for scale-out NAS clusters. |
x remote clients |
The number of clients accessing the share. |
NFSv2/v3 Client |
The IP address of the NFSv2/v3 client accessing the share, as applicable. |
NFSv4 Client |
The IP address of the NFSv4 client accessing the share, as applicable. |
Mounted directory |
The directory path of the accessed share. |