Network Appliance(TM)

Manual Pages


Table of Contents

NAME

cifs terminate - terminate CIFS service

SYNOPSIS

cifs terminate [ workstation ] [ -t mins ]

DESCRIPTION

If you stop CIFS service without warning, it is possible that users could lose data in currently opened files because writes that have been cached but not executed will be lost when CIFS service stops. The cifs terminate command includes provision to warn users and let them close their files.

cifs terminate has one optional argument, the name of a specific workstation. When you specify a workstation, the command terminates CIFS sessions for that workstation only. If you don't specify a workstation, the command will terminate all open CIFS sessions, and CIFS service will no longer be available to anyone.

The argument -t mins permits you to set the number of minutes before the shutdown of CIFS services will take effect. The system immediately sends a notice of the impending shutdown to all the affected workstations. (However, users of Windows 95 and Windows for Workgroups won't see the notification unless they're running WinPopup). There's no guarantee that all users will see the notification, nor that all users will be able to close their open files, but it does provide for a warning where possible.

The shutdown takes effect at the end of the interval you've specified, or when CIFS clients have no open files, whichever comes sooner.

If you execute cifs terminate from an rsh session, you must use the -t option. If you enter the command without -t from the filer's console or via telnet and there are CIFS clients with open files, you'll get a message telling you the number of CIFS clients and the number of open files. Then the system will prompt you to enter the number of minutes until shutdown:

  There are currently 23 CIFS users that have 44 open files.

       Disconnecting while files are open may cause data loss!!
       How many minutes should I wait? [5]:

If you used cifs terminate without limiting it to a specific workstation, when the command completes no further CIFS logins will be accepted and CIFS service will be disabled.

To restart CIFS service, use the cifs restart command.

It you use cifs terminate -t 0, CIFS sessions will terminate immediately. A message will be logged, since files that were open may suffer data corruption.

SEE ALSO

na_halt(1), na_reboot(1).


Table of Contents