Print Email PDF

Close an Open SMB Session

IN THIS ARTICLE 

Outlines how to close an open SMB session via the Shared Folders MMC snap-in or qq command-line with Qumulo Core

REQUIREMENTS

  • Cluster running Qumulo Core version 3.1.0 or above
  • Administrator or Data Administrator Role
  • Windows 7 // Server 2008R2 or newer client
  • Command line (CLI) tools installed via API & Tools in the Web UI

OVERVIEW

If you need to force reauthentication after an SMB share update or review all of your open SMB sessions, we’ve got you covered. With the release of Qumulo Core 3.1.0, Windows admins can easily list and force close SMB sessions on a cluster with the Shared Folders MMC snap-in or via the qq command-line. 

Keep in mind that this action will prevent the client from sending any new requests for this session, releasing all locks and forcing the client to reauthenticate. The client will not be given the opportunity to flush cached writes. Please consider the needs of your workflow before proceeding.

Close an Open SMB Session via Shared Folders MMC Snap-in

Important! Shared Folders MMC snap-in needs to be configured in order to successfully close an open session. Check out the Manage File Shares with Shared Folders MMC Snap-in article for more details.

  1. Click on the Sessions list item to display the sessions of users currently connected to the cluster.

    MMC_sessions_open.png

  2. Right click on the session you’d like to forcibly close and select Close Session.

    MMC_close_session.png

  3. Click Yes to confirm.

    MMC_close_confirm.png

TIP! To manage a large number of open sessions, use the QQ CLI instead of the Shared Folders MMC snap-in. See additional details below.

Close an Open SMB Session via QQ CLI

  1. To gather details on the session you wish to forcibly close, use the following command to review all open sessions on your cluster:
    qq smb_list_sessions
    {
    "session_infos": [
    {
    "is_encrypted": false,
    "is_guest": false,
    "last_access_time": "1970-01-02T04:02:42.860554601Z",
    "location": "1.1",
    "num_opens": 2,
    "open_time": "1970-01-01T00:00:55.603507324Z",
    "originator": "10.XXX.XXX.XX",
    "user": "500"
    },
    {
    "is_encrypted": false,
    "is_guest": false,
    "last_access_time": "1970-01-02T04:02:43.375275376Z",
    "location": "2.1",
    "num_opens": 1,
    "open_time": "1970-01-01T00:00:56.123602836Z",
    "originator": "10.XXX.XXX.XX",
    "user": "500"
    }
    ]
    }
  2. Specify the identity, location, or IP address with the command below to close an open SMB session:
    qq smb_close_sessions [--identity IDENTITY][--location LOCATION][--ip IP-ADDRESS]

    EXAMPLES
    qq smb_close_sessions --identity
    "uid:500"
    qq smb_close_sessions --location "2.1"
    qq smb_close_sessions --ip "10.XXX.XXX.XX"

NOTE: The identity attribute can include (1) a name or a SID optionally qualified with a domain prefix (e.g "local:name", "world:Everyone", "ldap_user:name", "ad:name") or (2) An ID type (e.g. "uid:1001", "auth_id:513", "SID:S-1-1-0").

RESOLUTION

You should now successfully be able to use the Shared Folders MMC snap-in or qq command-line to close open SMB sessions with Qumulo Core

ADDITIONAL RESOURCES  

Manage File Shares with Shared Folders MMC Snap-in

Close an Open SMB File via QQ CLI

QQ CLI: SMB Shares

 

Like what you see? Share this article with your network!

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Have more questions?
Open a Case
Share it, if you like it.