[Veritas-bu] How2get robot control host for a robot?
2001-02-02 17:36:09
Subject: |
[Veritas-bu] How2get robot control host for a robot? |
From: |
W. Curtis Preston curtis AT backupcentral DOT com |
Date: |
Fri, 02 Feb 2001 14:36:09 -0800 |
This is a good idea. The only problem is that the field that reports this
information is truncated at 12 characters. Fully qualified domain names
just don't make it.
Any ideas of how to get the full entry?
At 02:44 PM 2/2/01 -0600, Michael Wei wrote:
>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 mailman.eng.auburn DOT edu Fri Feb 2 13:41:04
> > 2001
> > Precedence: bulk
> > List-Id: Discussion of Veritas Inc. backup related products
> <veritas-bu.mailman.eng.auburn.edu>
> >
> > I have the robot NUMBER. What I want is the name of the server that
> > actually has robotic control over the robot.
> >
> > I know that I can rsh/ssh to each of the servers and run tpconfig -d, and
> > that the server that has robotic control will say "robotic path=," and the
> > servers that are just using some of its drives will say "robotic host=."
> >
> > HOWEVER, I need a way to do this from the master WITHOUT SSHing to the
> > media servers. (This method doesn't work too well with NT media servers,
> > for one thing.)
> >
> > Does anyone have any ideas?
> >
> >
> > _______________________________________________
> > 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
|
|
|