Example Extractor Script for HPE NonStop

The following illustrates the MEASTATX script file which is one of the default Extractor scripts included.

! MEASTATX - Extractor script to obtain a list of active
! measurements from the output of the MEASCOM STATUS MEASSUBSYS
! command. The output of STATUS MEASSUBSYS looks like:
!
!Number of Active (or Configured) Measurements = 11
! $DEVTST.REL504.DCOLMA16
! $RELTST.TPRG601.DCOLMA16
! $DEVTST.DPRG.DCOLMA16
! $RELTST.TPRG504.DCOLMA16
! $DEVTST.REL601.DCOLMA16
! $PHYS31.TRAIN.DCOLMA16
! $DEVTST.PRGN.DCOLMA16
! $RELTST.TPRGPRE.DCOLMA16
! $RELTST.TPRGPRE.DCOLMA00
! $DEVTST.TV601.DCOLMA16
! $DEVTST.TV.DCOLMA16
!
!Number of Active MEASCTL Processes = 2
! in CPU(s): 0, 1
!
RECORD MEASTAT
FILETYPE TEXT

! Skip the summary line at the top
SKIPLINES 1

ONEOL NEWLINE

LABEL NEWLINE
   SKIPWHITESPACE
   IF "Number of Active MEASCTL Processes" FINISH
   SET FILENAME
   DELIVERRECORD
   ! Ensure we get the new line and jump back to NEWLINE label.
   SKIPLINES 1

LABEL FINISH
EXIT
Provide feedback on this article