Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: Automated way to disconnect/stop all running views on a client?: msg#00017

version-control.clearcase.general

Subject: RE: Automated way to disconnect/stop all running views on a client?

Sometime back I had to wite a script which was for some other purpose, but a part of it handled what you are actually looking for. I have pasted below those snippet of perl code which did the work work. Explore them and try to build a perl script with this. I cannot assure it will work straight away, as I just picked relevant sections and pasted here
 
================================================
use Win32::TieRegistry;
#*********Global Variable********
my $mvfs_drive=undef;
 
#***********Main*********
$Registry->Delimiter("/");
 
##Syntax Check
 
##Get Value of MVFS drive and
##end all active views and Unmount VOBs
 endVOBView(GetMVFSDrive());
#***********Subroutine Section******
sub GetMVFSDrive{
 $drive=$Registry->{"HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Mvfs/InstallParameters"} or  die $!;
    foreach(  keys %$drive  ) {
 return $drive->{$_} if ($_=~ /\/drive/)
    }
 
}
sub endVOBView{
 my $mvfs_drive=shift;
 
# Unmount all VOBS
 print "Unmounting all mounted VOBs\n";
 system("cleartool umount -a");
 
# End all active views
 opendir(DIR,"$mvfs_drive:\\") or die "can't opendir $dirname: $!";
 while (defined($view = readdir(DIR))) {
 print "Stopping $view ...\n" if ($view !~ /^\.|.specdev/);
 system("cleartool endview $view") if ($view !~ /^\.|.specdev/)
 }
 closedir(DIR);
}


From: owner-cciug@xxxxxxxxxxxxxxxx [mailto:owner-cciug@xxxxxxxxxxxxxxxx] On Behalf Of Paul N
Sent: 08 June 2006 15:59
To: joe@xxxxxxxxxx
Cc: CCIUG
Subject: Re: [cciug] Automated way to disconnect/stop all running views on a client?

hi,
I believe this is a manual procedure, as it would require the user to type this command for each view, separately, once they can get the list of the views.
 
I'm trying to find a scripted (or an existing command) method to automate the process.
thanks!

 
On 6/8/06, Joe Wildish <joe@xxxxxxxxxx> wrote:
cleartool endview -server <tag> ? Probably needs to be done as a user in
the albd account if you're a windoze shop.

Joe


On Thu, 8 Jun 2006, Paul N wrote:

> Hi all,
> Using CC SR5, Win2k - we are migrating to new servers shortly, and want to
> ensure all users stop their views before-hand.
>
> Is there an easy way (or a script you may have :) that would allow each user
> to easily stop or disconnect all currently running views on their client
> hosts?
>
> It would be nice if CC had such a feature built in, but I gather that is not
> the case :(
>
> thanks!
> --
> --Paul A Nusbaum, CM Tools Admin - Ottawa,ON--
>



--
--Paul A Nusbaum, CM Tools Admin - Ottawa,ON--

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation