ADSM-L

Re: Stoping the server through a script

2000-04-17 09:51:06
Subject: Re: Stoping the server through a script
From: Brian Johnson <bjohnson AT AFCE DOT COM>
Date: Mon, 17 Apr 2000 08:51:06 -0500
Scott,
This script ends backup stg if it still runs after a certain time in the day. It
gets the proc number and strips out the
comma it one exists - then enters the cancel proc command.

#!/usr/local/bin/perl
open(procs, "dsmadmc -tabdelimited -id=***  -pass=*** q pr|grep 'Backup Storage
Pool'|");

while (<procs>) {
        $l=$_; chomp($l);
         @record=split(/\t/, $l);
        $procname="$record[0]";
$procname=~tr/,//d;
system("dsmadmc -id=*** -pass=*** can pr $procname\n");
                }

Regards,
Brian Johnson