beautypg.com

Step 3: build the data dictionary, Creating records for different time windows – HP NonStop G-Series User Manual

Page 93

background image

Formatting Reports and Plots

Measure User’s Guide 520560-003

4- 33

Step 3: Build the Data Dictionary

1. Build a command (OBEY) file containing the appropriate LIST

entity-type

or

LISTALL

entity-type

commands.

2. Load the structured report files by executing the OBEY file from within MEASCOM.

Measure appends new records to existing structured files. To purge existing files
before writing out new values, issue this command or add it to your OBEY file:

42+ RUN FUP PURGE filename [, filename ] ...!

Creating Records for Different Time Windows

Each record in the structured report file describes the performance of a single entity
over the specified report window. For example, for the CPU file, each record describes
the performance of a single CPU over the report window. For the PROCESS file, each
record describes the performance of a single process over the report window.

To create separate records for different time windows, use the LOADID clause in the
MEASCOM LIST

entity-type

or LISTALL

entity-type

command to identify each

window. You can also use this clause to identify the different measurements whose
records you want to write to the structured files. Finally, you can use the LOADID
clause to identify sets of records for the same entity type. For example, this LOADID
clause identifies two sets of process records:

8+ ADD MEASUREMENT $PERF.DATA.JUN04
9+ LIST PROCESS SYSTEM-PROCESSES, LOADID SYSPROC
10+ LIST DISC $DATA1
11+ LIST PROCESS $*.*.BILLING, LOADID BILLING

Step 3: Build the Data Dictionary

The DDL source file, $SYSTEM.SYS

nn

.MEASDDLS, contains RECORD statements

that describe the record structure for each structured report file of each entity type. To
find the subvolume name for SYS

nn

on your system, use the TACL STATUS *

command. SYS

nn

is the subvolume that contains the OSIMAGE file. Use this

subvolume name in the TACL DDL command that builds the dictionary. For example:

45> DDL /IN $SYSTEM.SYSnn.MEASDDLS, OUT $S/ DICT!

Or issue this command from MEASCOM:

23+ RUN DDL /IN $SYSTEM.SYSnn.MEASDDLS, OUT $S/ DICT!

Note.

When you use the LOADID clause with the LISTALL command, the LOADID field

contains the interval number, in ASCII, associated with the time the record was copied to the
data file. LOADID is no longer unique per LISTALL command. Therefore, if you are performing
Enform queries that use LOADID as a unique identifier, you must use the LOAD-ID.PREFIX-ID
format or a LOADID of six or more characters to maintain the uniqueness of the field. To
reference any part of the LOAD-ID redefine, you must create a new dictionary:

VOLUME your-subvolume
DDL /IN $SYSTEM.SYSnn.MEASDDLS/ DICT!