endview
Deactivates a view
Applicability
Product |
Command type |
---|---|
ClearCase® |
cleartool subcommand |
ClearCase Remote Client |
rcleartool subcommand |
Platform |
---|
UNIX |
Linux |
Windows |
Synopsis
- ClearCase--Deactivate a dynamic view
- endview [ -ser/ver ] view-tag
- ClearCase--Deactivate a snapshot view
- endview -ser/ver view-tag
- ClearCase Remote client--Deactivate an
automatic view
- endview view-tag
Description
Deactivates the specified dynamic, automatic, or snapshot view (endview is not applicable to web views). The view tag must be registered in the same region as that of the host at which this command is issued. If the view tag is registered in another region, this command reports that the view tag cannot be found. Do not deactivate a view for the purpose of backing it up.
The exact behavior of this command varies according to the kind of view.
Dynamic and automatic views
- For an automatic view, this command terminates the rview_agent. and unmounts VOBs that are mounted for that view. Sometimes, endview fails because a VOB cannot be unmounted. In this case, terminate processes that are set to or associated with the VOB, then issue endview again. If that procedure fails, reboot the machine.
- For a dynamic view, 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.
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, Linux, and Windows environment, any NFS drive that was mounted to support access to the view storage directory is unmounted (assuming no other active views or VOBs require it).
- Use startview (dynamic or automatic views) or setview (dynamic views only) to restart the view or
- Terminate the processes manually with the UNIX and Linux kill command or the Windows Task Manager.
To avoid this situation, follow these guidelines:
- Before you run endview (without -server) on your computer, exit all processes on your computer that are set to or associated with the view. If the view type is dynamic, also exit any processes started by other users. Any processes that are running when you deactivate the view will be stranded.
- Before you run endview -server, exit all processes set to or associated with the view. If the view type is dynamic also exit associated processes on other computers that were started by other users.
Snapshot view
This command ends the view's view_server process on the host where the view-storage directory resides. Any ClearCase command issued from the view-storage directory restarts the snapshot view's view_server process.
Restrictions
The -server option requires permission to modify the view.
Options and arguments
Stopping the view server
- Default
- endview stops an automatic view's rview agent. endview does not stop a dynamic 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.
- view-tag
- Deactivates view view-tag if view-tag specifies a dynamic or automatic view. If view-tag specifies a snapshot view, -server must also be specified to deactivate the view.
Examples
The UNIX system and Linux examples in this section are written for use in csh. If you use another shell, you might 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 might 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 system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.
- Deactivate the dynamic view r3_main on
the local host. Do not terminate the view_server process.
cmd-context endview r3_main
- Same as previous example, but terminate the view_server
process, making the view temporarily unavailable to all hosts.
cmd-context endview -server r3_main
- On a Windows system, stop and restart the dynamic view
alh_main, which is currently assigned to drive W.
cmd-context endview alh_main
cmd-context startview alh_main
net use
...
Unavailable W: \\view\alh_main ClearCase Dynamic Views
...
net use w: \\view\alh_main
Command completed successfully. - Deactivate the snapshot view r4_main.
cmd-context endview -server r4_main
See also
startview, DevOps Code ClearCase Administrator's Guide