Stop or start the CIFS server

Contributors

You can stop the CIFS server on a SVM, which can be useful when performing tasks while users are not accessing data over SMB shares. You can restart SMB access by starting the CIFS server. By stopping the CIFS server, you can also modify the protocols allowed on the storage virtual machine (SVM).

Steps
  1. Perform one of the following actions:

    If you want to…​ Enter the command…​

    Stop the CIFS server

    vserver cifs stop -vserver vserver_name [-foreground {true|false}]

    Start the CIFS server

    vserver cifs start -vserver vserver_name [-foreground {true|false}]

    -foreground specifies whether the command should execute in the foreground or background. If you do not enter this parameter, it is set to true, and the command is executed in the foreground.

  2. Verify that the CIFS server administrative status is correct by using the vserver cifs show command.

Example

The following commands start the CIFS server on SVM vs1:

cluster1::> vserver start -vserver vs1

cluster1::> vserver cifs show -vserver vs1

                                          Vserver: vs1
                         CIFS Server NetBIOS Name: VS1
                    NetBIOS Domain/Workgroup Name: DOMAIN
                      Fully Qualified Domain Name: DOMAIN.LOCAL
Default Site Used by LIFs Without Site Membership:
                             Authentication Style: domain
                CIFS Server Administrative Status: up

Related information