Re: [Networker] Scripting question
2011-06-21 05:07:16
Hello,
I don't know what your script looks like, but in fact, you can test the 'inuse'
flag of the mminfo command.
It sends you a list of tapes that are currently in use, so it would be easy to
exclude these tapes from your off-site list.
e.g :
mminfo -avot -q "inuse" -r "volume"
reports things like that :
VOL001
VOL002
...
Denis
----- "STANLEY R. HORWITZ" <stan AT TEMPLE DOT EDU> a écrit :
> I have a report generated by a perl script that generates a list of
> tapes
> to be sent off-site. Occasionally, that list includes a tape that is
> in a
> tape drive still being written. This confuses our operators who will
> dutifully try to remove said tape from the tape drive even though the
> report clearly says not to do that. It would be better if the report
> did
> not identify any tapes currently being written in the list in the
> first
> place.
>
> The report is written in perl on a Linux NetWorker 7.6 SP1 server.
> Does
> anyone have any perl code that does what I am looking for so I can
> avoid
> reinventing the wheel?
>
> To sign off this list, send email to listserv AT listserv.temple DOT edu and
> type "signoff networker" in the body of the email. Please write to
> networker-request AT listserv.temple DOT edu if you have any problems with
> this list. You can access the archives at
> http://listserv.temple.edu/archives/networker.html or
> via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
To sign off this list, send email to listserv AT listserv.temple DOT edu and
type "signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
|
|
|