beautypg.com

HP NonStop G-Series User Manual

Page 135

background image

Creating a Custom Measurement Application

Measure User’s Guide 520560-003

6- 23

Modifying D-Series Applications for G-Series

Systems

Modifying D-Series Applications for G-Series
Systems

You might have to make changes in custom measurement applications after migrating
from a D-series RVU to a G-series RVU.

D-series RVUs use channel, controller, and unit numbers to identify specific storage
devices (DEVICE, DISC) and communication devices (LINE, NETLINE, TERMINAL).
In G-series RVUs, instead of channel, controller, and unit numbers, you must specify
group, module, and slot numbers for storage devices or track ID, CLIP, and line
numbers for communication devices. Therefore, you must change any application that
identifies an entity by channel, controller, or unit.

For example, if you have a D-series application that calls the MEASREADACTIVE
procedure and passes DISC identifiers to it, you must change that application.
MEASREADACTIVE requires the procedure call to identify a single entity, so the call
includes channel, controller, and unit identifiers. For a G-series disk, you must change
the identifiers to group, module, and slot.

You do not have to change applications in which channel, controller, and unit are
specified as -1 (ALL). For example, an application that calls the MEASREAD_DIFF_
procedure and passes DISC identifiers of -1 for channel, controller, and unit can be
used to measure all DISC entities on a system running a G-series RVU.

IF ERROR := MEASOPEN(FILENAME,DFNUM,FALSE,TRUE)
THEN ... ! handle error
IF ERROR := MEASREADCONF(DFNUM,CONTAB,BUFSIZE,BYTESRET,
STARTTIME,STOPTIME,INTERVAL,
ENTITIES,CTRSPACE)
THEN ... ! handle error
IF ERROR := MEASCLOSE(DFNUM)
THEN ... ! handle error

Now start measurement. Reopen the data file, specifying
! both read and write access. Pass the configuration table
! to MEASCONFIGURE and start the measurement immediately,
! using the measurement interval returned by MEASREADCONF.

IF ERROR := MEASOPEN(FILENAME,DFNUM,TRUE,TRUE)
THEN ... ! handle error
IF ERROR := MEASCONFIGURE(MEASCB,DFNUM,MEASNUM,CONTAB)
THEN ... ! handle error
IF ERROR := MEASCONTROL(MEASCB,MEASNUM, CONVERTTIMESTAMP
(JULIANTIMESTAMP,0), -1F, INTERVAL);
THEN ... ! handle error

Note.

OPDISK entities are also identified by channel, controller, and unit numbers. Optical

disks are currently supported only in D-series RVUs.

Example 6-6. Restarting a Measurement (page 2 of 2)