### Windows vob_snapshot Setup and Execution
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=vobs-vob-snapshot
This example shows how to add a local VOB to the current host's snapshot list and then take VOB database snapshots for all VOBs in the list on a Windows system. It involves changing the directory to the ClearCase installation and using `vob_snapshot_setup` with specific parameters before executing `vob_snapshot`.
```batch
cd "c:\Program Files\IBM\RationalSDLC\ClearCase\etc"
vob_snapshot_setup modparam –dbcheck yes \
–snap_to \saturn\bigdisk\snaps\proj1\vob_prj1 vob_snapshot
```
--------------------------------
### Example: Record Response File - Windows
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=crfimwi-recording-response-file-installation-manager
An example of recording an IBM product installation response file on Windows, specifying the output XML file path and a directory to skip installation.
```shell
IBMIM.exe -record c:\response_files\install_product.xml -skipInstall c:\skipInstall\IBM_product
```
--------------------------------
### Complete Response File Example for Installation Manager and ClearCase
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=imim-installing-silently-using-response-file
This XML shows a consolidated response file example that includes repositories and offering details for both IBM Installation Manager and IBM ClearCase.
```xml
```
--------------------------------
### Configure Snapshot and Take Snapshots (Windows)
Source: https://www.ibm.com/docs/en/clearcase/11.0_topic=vobs-vob-snapshot
This example shows how to add a local VOB to the current host's snapshot list and then take VOB database snapshots for all VOBs in the list on a Windows system. It includes steps for changing directories and configuring snapshot parameters with the vob_snapshot_setup utility.
```shell
cd "c:\Program Files\DevOps\Code\ClearCase\etc"
vob_snapshot_setup modparam –dbcheck yes \
–snap_to \\saturn\bigdisk\snaps\proj1\vob_prj1 vob_snapshot
```
--------------------------------
### Example: Record Response File - Linux/UNIX
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=crfimwi-recording-response-file-installation-manager
An example of recording an IBM product installation response file on Linux or UNIX, specifying the output XML file path and a directory to skip installation.
```shell
./IBMIM -record /response_files/install_product.xml -skipInstall skipInstall/IBM_product
```
--------------------------------
### Example: Relocating Subdirectory 'glib' (ClearCase Shell)
Source: https://www.ibm.com/docs/en/clearcase/11.0_topic=views-relocate
This example demonstrates relocating the 'glib' subdirectory and its contents from '/vobs/lib' to '/vobs/gui'. It uses query mode ('-qall') and prompts for confirmation before proceeding. It also shows how to examine the target VOB after relocation.
```shell
%` cd /vobs/lib`
cmd-context` setcs –default`
cmd-context` relocate -qall ./glib ../gui`
Logfile is "relocate.log.2007-04-09T14:11:37".
Selected "glib".
Selected "glib/file.c".
Do you want to relocate these objects? [no] `yes`
Checked out "." from version "/main/3".
Checked out "/vobs/gui" from version "/main/0".
Locking selected objects
Locked "glib"
Locked "glib/file.c"
Recreating selected objects
Created "glib"
updated branch "/main"
updated version "/main/0"
created version "/main/1"
Created "glib/file.c"
updated branch "/main"
updated version "/main/0"
created version "/main/1"
Cataloging new objects
cataloged symbolic link "/vobs/lib/glib/.@@/main/2/glib" ->
"../gui/glib"
cataloged symbolic link "/vobs/lib/glib/.@@/main/3/glib" ->
"../gui/glib"
cataloged "/vobs/lib/.@@/main/CHECKEDOUT.32/glib"
cataloged symbolic link "/vobs/lib/glib/.@@/main/1/file.c" ->
"../gui/glib/file.c"
cataloged symbolic link "/vobs/lib/glib/.@@/main/2/file.c" ->
"../gui/glib/file.c"
cataloged "/vobs/gui/glib@@/main/1/file.c"
Removing original objects
removed "glib/file.c"
removed "glib"
Checked in "/vobs/lib/." version "/main/4".
Checked in "/vobs/gui/." version "/main/1".
cmd-context ` describe vob:/vobs/gui`
versioned object base "/vobs/gui"
created 2007-04-09T13:50:16 by CCase Admin (clearadm.sys@propane)
"relocate target for former directory /vobs/lib/gui"
VOB storage host:pathname "propane:/usr1/vobstore/gui.vbs"
VOB storage global pathname "/net/propane/usr1/vobstore/gui.vbs"
VOB ownership:
owner clearadm
group sys
Hyperlinks:
RelocationVOB@33@/vobs/gui vob:/vobs/gui -> vob:/vobs/lib/
```
--------------------------------
### Silent Installation Command Example
Source: https://www.ibm.com/docs/en/clearcase/9.1_topic=packages-installation-manager-command-line-arguments
This example shows a typical command-line invocation for performing a silent installation using IBM Installation Manager. It specifies the use of a silent installation configuration file (`silent-install.ini`) and includes flags to suppress errors and the splash screen. The `-input` argument is used here to specify an external input file path.
```shell
./install --launcher.ini silent-install.ini -input input_file_path_and_name
```
--------------------------------
### UNIX/Linux vob_snapshot Setup and Execution
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=vobs-vob-snapshot
This example demonstrates how to list VOBs on a local host's snapshot list and then take VOB database snapshots for all VOBs in that list on a UNIX or Linux system. It utilizes the `vob_snapshot_setup` command to manage the snapshot list and `vob_snapshot` to perform the actual snapshot.
```shell
/opt/rational/clearcase/etc/vob_snapshot_setup lsvob
/vobs/src
/vobs/lib
/opt/rational/clearcase/etc/vob_snapshot
```
--------------------------------
### Install Commands for IBM Installation Manager
Source: https://www.ibm.com/docs/en/clearcase/11.0_topic=manager-installing-as-administrator-nonadministrator
Provides example commands for installing software using IBM Installation Manager. It details parameters for silent installations and requires the Installation Manager executable.
```shell
IBMIM.exe \
-skipInstall \
-install \
-installationDirectory \
-repositories \
-acceptLicense \
-showProgress
```
--------------------------------
### Create a Project with Options (UNIX/Linux)
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=ucm-mkproject
This example shows how to create a project named 'CQ_ASP_V6.0' in 'RootFolder' with specific configurations. It includes options to disable default creation (`-nc`), define a modifiable component ('comp1'), and set a baseline name template (`project,component,date`). The example is intended for csh and uses line continuation characters.
```csh
mkproject -nc -modcomp comp1 -in RootFolder ^ \
-blname_template project,component,date CQ_ASP_V6.0
```
--------------------------------
### Installation Manager Directory Paths for Silent Install
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=drive-running-silent-install
Specifies the path to the Installation Manager directory on the shared drive for silent installations. Provides examples for Windows and Linux/UNIX systems.
```text
g:\\installation_files\\EnterpriseCD-platform\\InstallationManager
```
```text
/installation_files/InstallationManager
```
--------------------------------
### UNIX/Linux: List VOBs and Take Snapshots
Source: https://www.ibm.com/docs/en/clearcase/9.1_topic=vobs-vob-snapshot
This example demonstrates how to list all VOBs on a local host's snapshot list and then initiate VOB database snapshots for all listed VOBs on a UNIX or Linux system. It uses `vob_snapshot_setup` to manage the list and `vob_snapshot` to perform the backup.
```bash
/opt/rational/clearcase/etc/vob_snapshot_setup lsvob
/opt/rational/clearcase/etc/vob_snapshot
```
--------------------------------
### List VOBs and Take Snapshots (UNIX/Linux)
Source: https://www.ibm.com/docs/en/clearcase/11.0_topic=vobs-vob-snapshot
This example demonstrates how to list all VOBs on a local host's snapshot list and then take VOB database snapshots for each VOB in the list using ClearCase utilities on UNIX or Linux systems. It assumes vob_snapshot_setup has been used to configure snapshot parameters.
```shell
/opt/devops/code/clearcase/etc/vob_snapshot_setup lsvob
/opt/devops/code/clearcase/etc/vob_snapshot
```
--------------------------------
### Create a Project with Options (Windows ClearTool Interactive)
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=ucm-mkproject
This example demonstrates creating a project named 'CQ_ASP_V6.0' in 'RootFolder' using Windows `cleartool` interactive mode. It specifies a modifiable component 'comp1' and a baseline naming template. Note the use of `^` for line continuation in interactive mode.
```cleartool
mkproject -nc -modcomp comp1 -in RootFolder ^
-blname_template project,component,date CQ_ASP_V6.0
```
--------------------------------
### Install Product A Version 1.0.1 (XML)
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=crfm-response-file-commands
Example of installing Product A version 1.0.1 using a specific repository.
```xml
```
--------------------------------
### Windows: Add VOB to Snapshot List and Take Snapshots
Source: https://www.ibm.com/docs/en/clearcase/11.0_topic=commands-vob-snapshot
This example shows how to add a local VOB to the current host's snapshot list and then take VOB database snapshots for all VOBs in that list on a Windows system. It involves changing the directory to the ClearCase etcdirectory and using `vob_snapshot_setup` with specific parameters to configure and initiate the snapshot process.
```batch
cd "c:\Program Files\DevOps\Code\ClearCase\etc"
vob_snapshot_setup modparam –dbcheck yes \
–snap_to \saturn\bigdisk\snaps\proj1\vob_prj1 vob_snapshot
```
--------------------------------
### Install Product A Version 1.0 (XML)
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=crfm-response-file-commands
Example of installing Product A version 1.0 using a specific repository.
```xml
```
--------------------------------
### Example Makefile with Dependencies and Build Script
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=make-makefile-ccase
A comprehensive example showing a target, its dependencies, and a multi-line build script. This illustrates the interaction between makefile structure and command execution.
```makefile
output.o: input.c
@echo "Compiling input.c..."
$(CC) $(CFLAGS) -c input.c -o output.o
final_executable: output.o
$(LD) $(LDFLAGS) output.o -o final_executable
```
--------------------------------
### Example XML Preference: Disable Update Checks
Source: https://www.ibm.com/docs/en/clearcase/10.0_topic=crfm-silent-installation-preference-keys
An example of an XML preference entry used in a response file to disable the automatic search for updates during installation. It sets the 'com.ibm.cic.common.core.preferences.searchForUpdates' key to 'false'.
```xml
```
--------------------------------
### Move Version Between Activities (Windows Example)
Source: https://www.ibm.com/docs/en/clearcase/9.1_topic=ucm-chactivity
This example illustrates moving a version between activities in Windows using `cleartool`. It highlights potential differences in quoting and wildcard handling compared to UNIX/Linux shells.
```cleartool
cleartool chactivity -fcset update_date -tcsets fix_copyright add_proc@@/main/chris_webo_dev/1
```