[Veritas-bu] Which CLI-Utiliy for Schedule config ?
2002-10-09 10:26:22
Subject: |
[Veritas-bu] Which CLI-Utiliy for Schedule config ? |
From: |
arne AT topnet DOT de (Arne Kloecker) |
Date: |
Wed, 9 Oct 2002 16:26:22 +0200 |
Hi,
with the help of your answers (thanks a lot) i wrote this simple perl-hack do
do my task:
-------------------------------------------------------------
#!/usr/bin/perl
$MPX=2;
@classes=`bpcllist`;
chomp @classes;
foreach $class (@classes)
{
@schedules=`bpcllist $class -l|grep "SCHED "|awk '{print \$2}'`;
chomp @schedules;
foreach $schedule (@schedules)
{
$result=`bpclschedrep $class $schedule -mpxmax $MPX`;
print "$class-$schedule: $$result\n";
}
}
-----------------------------------------------------------
to just get a list of all Classes and their Schedules you can use:
for i in `bpcllist` ;do echo $i; bpcllist $i -l|grep "SCHED "|awk '{print
$2}'; echo "-------------------------";done;
THANKS
Arne
|
|
|