beautypg.com

HP NonStop G-Series User Manual

Page 126

background image

Using the SMM Utility Interface Program (INTFACE)

Silo Media Manager Installation and User’s Guide 541559-001

7 -6

REPORT Function

#push silo^out == variable for naming REPORT output diskfile

#push media_status == output variable for mediacom

#push media_in == input variable to mediacom

#push tape_list == variable to contain REPORT diskfile used in FILETOVAR

#push tapevol == tape cartridge number extracted from tape_list variable in loop

#push line == output variable from VFIND to find tape cartridge in DSM/TC

#push smm^loc == NonStop server location of SMM ISV $.

#push ^status == variable to check status of report function

#push ^pool == DSM/TC pool name. Can be a '*' if you want all pools

==

== Set the SMM $vol.svol

#set smm^loc <$vol>.

==

== Name of the inventory outfile. It will be re-created every time

#set silo^out <$vol>..

==

== Set the POOL for use in MEDIACOM

== In this usage, ALL POOLS will be looked at

#set ^pool *

==

== Utility accepts three parameters (REPORT, LOCATION OF OUTPUT FILE, SMM
ISV)

==

Run [smm^loc].INTFACE/outv ^status/ REPORT [silo^out] [smm^loc]

[#if [#charfind ^status 1 Error] |then|

#output Bad REPORT Status - [^status]

] == endif

mediacom/nowait, outv media_status, inv media_in dynamic/

== Put the inventory file to a variable

filetovar [silo^out] tape_list

==