Veritas-bu

[Veritas-bu] Getting a list of robots

2000-03-20 15:59:44
Subject: [Veritas-bu] Getting a list of robots
From: Michael Wei wei AT colltech DOT com
Date: Mon, 20 Mar 2000 14:59:44 -0600 (CST)
The only place on the master that might have this information is acutally
in the VM database.  vmquery -w -a will give out all the media that VM
knows and if they're in a library, shows the robot # and the robot control
host.  A Perl script can parse it pretty easily:

#!/opt/third-party/bin/perl

open(VMQUERY, "vmquery -w -a |");

# skip first three lines of garbage
$line = <VMQUERY>; $line = <VMQUERY>; $line = <VMQUERY>;

while ($line = <VMQUERY>) {
    @tmp = split /\s+/, $line;
    next if ($tmp[7] eq "-");
    $robot_control_host{$tmp[7]} = $tmp[5];
}

foreach $robot_num (keys %robot_control_host) {
    print "$robot_num\t$robot_control_host{$robot_num}\n";
}

--Mike

> From veritas-bu-admin AT eng.auburn DOT edu  Mon Mar 20 14:23:11 2000
> X-BeenThere: veritas-bu AT mailman.eng.auburn DOT edu
> 
> OK, I've tried everything.  I want a list of robots that contains which 
> host has the robotic control.  I've been using bpstulist, but that lists 
> every media server that has a storage unit connected to that robot, not 
> just the main robotic control.  And to my knowledge, there's no way to 
> distinguish the "main" robot storage unit from the others.  What would be 
> perfect would be something like what you get from tpconfig -raw, but that 
> only works on the server you're running it on.  (I don't want to be forced 
> to rsh/ssh out to the slaves to get their robots.)
> 
> Any ideas?
> ---
> W. Curtis Preston, Principal Consultant at Collective Technologies
> Email: curtis AT colltech DOT com                (Best way to contact me)
> Work : 408 452 5555                       (Leave a message.)
> Pager: 800 946 4646, pin#1436065        (If urgent.)
> 
> Tap into the Collective Intellect (TM): http://www.colltech.com
> Backup & Restore resources:        http://www.backupcentral.com
> 
> 
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> 


-- 
Mike Wei       Collective Technologies, a Pencom Company
Email: wei AT colltech DOT com





<Prev in Thread] Current Thread [Next in Thread>