Programmatically determine if a given VOB is installed in ClearCase

I am trying to programmatically determine if VOB is installed in the definition box. In particular, I want to run a command and analyze the output.

However, I cannot find this information in cleartool describe.

+3
source share
2 answers
cleartool lsvob \theVob

should be enough

If there is a star ( *): it is set

* \thevob

If not: it is not installed yet.

See the lsvob command .

: _

By default, it lsvoblists all VOBs registered in the current network area, regardless of whether they are installed or not (active).
The default output string can include up to six fields, as shown in this example:

* /vobs/src /net/host2/usr/vobstore/src_vob public (ucmvob, replicated)

:

  • VOB (*)
  • VOB
  • VOB
  • VOB (. mkvob )
  • VOB UCM VOB (ucmvob)
  • VOB (replicated)
+2

, , " " \view\\VOB. (, , CAL, )

..

Perl

if (-d "\\view\onaclov\TESTVOB")
{
    #do something now
}

if not exists \\view\onaclov\TESTVOB <insert mount command here>

, , mount vob.

VB.NET

If System.Io.Directory.Exists("\\view\onaclov\TESTVOB") then
    'Blah
end if

. ( Clearcase/Quest, , )

+2

Source: https://habr.com/ru/post/1712488/


All Articles