Further Information

Example of Scheduled Eject of Media

given in the next section. The script (HP-UX and Solaris systems) or the starting batch file (Windows systems) must reside in the /opt/omni/lbin (HP-UX and Solaris systems) or <Data_Protector_home>\bin (Windows systems) directory.

On Windows systems, the contents of the batch file containing command for starting the script is:

<perl_home>\perl.exe

"<Data_Protector_home>\bin\omnirpt_eject.pl"

6.Click the >> button to add this recipient. Click Finish. The Report Group is now scheduled and configured.

Copy the Script to the Specified Directory

Copy or create the script with the name omnirpt_eject.pl in the /opt/omni/lbin (HP-UX and Solaris systems) or <Data_Protector_home>\bin directory (Windows systems).

#!/usr/contrib/bin/perl

#=======================================================

========================

# FUNCTION Library_Eject

#

 

 

 

 

 

#

ARGUMENTS

param

1

=

Library to eject from

#

 

param

2

=

Slots to eject

#

 

 

 

 

 

#DESCRIPTION Function ejects specified slots from specified library

#=======================================================

========================

sub Library_Eject {

local ($lib,$slots)=@_;

print "[Normal] Ejecting slot(s) ${slots}from library \"$lib\"\n";

print("[Normal] Executing \"${OMNIBIN}omnimm\" -eject \"$lib\" $slots\n");

Appendix A

A-15

Page 745
Image 745
HP B6960-90078 manual Copy the Script to the Specified Directory, Arguments