From:	SMTP%"MACRO32%WKUVX1.BITNET@uu7.psi.com" 12-JUN-1993 10:50:13.42
To:	EVERHART
CC:	
Subj:	Re: Layout of error log entries

X-Listname: "VMS Internals, MACRO, & BLISS Discussions" <MACRO32@WKUVX1.BITNET>
Warnings-To: <>
Errors-To: MacroMan%WKUVX1.BITNET@uu7.psi.com
Sender: MacroMan%WKUVX1.BITNET@uu7.psi.com
Date: 11 Jun 1993 19:00:44 -0800 (PST)
From: James Wilkinson <JWILKINSON%HMCVAX.CLAREMONT.EDU@ULKYVM.LOUISVILLE.EDU>
Reply-To: MACRO32%WKUVX1.BITNET@uu7.psi.com
Subject: Re: Layout of error log entries
To: MACRO32@WKUVX1.BITNET
Message-Id: <01GZ9GGEUMB695MOPP@HMCVAX.CLAREMONT.EDU>
X-Vms-To: IN%"MACRO32%WKUVX1.BITNET@ULKYVM.LOUISVILLE.EDU"
X-Vms-Cc: JWILKINSON
Mime-Version: 1.0
Content-Transfer-Encoding: 7BIT

        Mike Frederick asks:

    Is there a way to determine the layout of the records in the error log
    files?  I have figured some of it out, but any help would be
    appreciated.

Check out the various $EMB*DEF available in SYS$LIBRARY:LIB.MLB.  Below is
an example for entries created by the SYS$SNDERR system service.

*       AUTHOR          James Wilkinson
*       CREATION DATE   29 Febrary 1992

        ! The following structure and its related offsets were determined from
        ! the relevant macros in SYS$LIBRARY:LIB.MLB.
        !
        integer*4
        1       EMB$C_SS_LENGTH
        parameter                                       ! length of system
        1       (EMB$C_SS_LENGTH = 66)                  ! service message header

        integer*4
        1       EMB$S_SS_SCS_NAME
        parameter
        1       (EMB$S_SS_SCS_NAME = 16)                ! nodename size

        integer*4
        1       EMB$S_SS_TIME
        parameter
        1       (EMB$S_SS_TIME = 8)                     ! write time size

        integer*4
        1       EMB$S_SS_SWVERS
        parameter
        1       (EMB$S_SS_SWVERS = 8)                   ! software version size

        structure /EMBSSDEF/                            ! structure of records

          integer*4     EMB$L_SS_SID                    ! system id
          integer*2     EMB$W_SS_HDR_REV                ! hardware revision
          integer*4     EMB$L_SS_XSID
          integer*4     EMB$L_SS_CPUID                  ! cpu id
          byte          EMB$B_SS_DEV_CLASS              ! device class
          byte          EMB$B_SS_DEV_TYPE               ! device type
          character*(EMB$S_SS_SCS_NAME)
        1               EMB$T_SS_SCS_NAME               ! system name
          integer*2     EMB$W_SS_FLAGS                  ! flags
          byte          EMB$B_SS_OS_ID                  ! operating system
          byte          EMB$B_SS_HDRSZ                  ! header size
          integer*2     EMB$W_SS_ENTRY                  ! entry
          integer*4     EMB$Q_SS_TIME(2)                ! write time
          integer*2     EMB$W_SS_ERRSEQ                 ! sequence number
          character*8   EMB$Q_SS_SWVERS                 ! software version
          integer*4     EMB$L_SS_ERRMSK                 ! error mask
          integer*4     EMB$L_SS_ABSTIM                 ! absolute time
          integer*2     EMB$W_SS_MSGS                   ! message length
          character*446 EMB$T_SS_MSGTXT                 ! text of message

        end structure

James Wilkinson
jwilkinson@hmcvax.claremont.edu
