endview

Deactivates a view

APPLICABILITY


Product

Command Type

ClearCase


cleartool subcommand


ClearCase LT


cleartool subcommand


Attache


command


Platform

UNIX


Windows

SYNOPSIS

endview [ -ser·ver ] view-tag

DESCRIPTION

Deactivates the specified view. The exact behavior varies according to the kind of view.

We recommend against deactivating a view for the purpose of backing it up.

Dynamic View

The endview command deactivates the dynamic view. It removes all references to the view from the MVFS on the current host. The view-tag disappears from the MVFS directory (on Windows this directory is, by default, M:\). The -server option terminates the view's view_server process. Without -server, endview does not affect the view's availability from computers other than the current one. For information about view_server, see the Administrator's Guide.

If a Windows drive was assigned to the view, the drive is marked unavailable in the drive table (see the Windows net use command) and can be reused.

In a mixed UNIX/Windows environment, any NFS drive that was mounted to support access to the view storage directory gets unmounted (assuming no other active views or VOBs require it).

In Attache, if you execute endview for a view associated with the current workspace, the command fails with the message

Cannot stop the view associated with the current workspace.

CAUTION: Processes set to or associated with a view are stranded if you deactivate that view without exiting the processes. This can cause MVFS activities to fail. To recover from this situation, use startview or setview to restart the view on all computers that were using it, or kill the processes manually with the UNIX kill command or the Windows Task Manager. To avoid this situation, follow these guidelines:

Snapshot View

When issued with the -server option, endview ends the view's view_server process on the host where the view-storage directory resides. Any ClearCase or ClearCase LT command issued from the view-storage directory restarts the snapshot view's view_server process.

endview used without the -server option has no effect on a snapshot view.

RESTRICTIONS

With the -server option, you must have permission to modify the view.

OPTIONS AND ARGUMENTS

STOPPING THE VIEW SERVER.   Default: endview does not stop the view's view_server process; the view remains accessible from other network hosts.

-ser·ver

Terminates the view's view_server process.

SPECIFYING THE VIEW TO DEACTIVATE.   Default: None. You must supply a view-tag.

view-tag

Deactivates view view-tag if view-tag specifies a dynamic view. If view-tag specifies a snapshot view, -server must also be specified to deactivate the view.

EXAMPLES

The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.

The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.

In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.

SEE ALSO

startview, Administrator's Guide