This chapter discusses the DECevent dia command verb and the four main flags you can append to it.
The dia DECevent command verb allows the translation of an event file residing on a Tru64 UNIX system. DECevent allows you to append four main flags to the dia command verb, each accomplishing different functions on an input event file. The four main flags are described in Table 5-1.
The dia -a command option performs a Bit-To-Text translation on the default system event file or on a user specified file if the -f flag is used. The default system event log file on a Tru64 UNIX operating system is /usr/adm/binary.errlog.
The dia command defaults to the -a flag if no main flag is specified on the command line. The dia -a command is the equivalent of the dia command. The following syntax is used for the dia -a command option:
The following flags can be appended to the dia -a command to further expand the utility function. Refer to Appendix C for a definition of these flags.
-f infile [ ...]
-v
-R
-e [s:start_number][e:end_number]
-i keyword [=val] [ ...]
-x keyword [=val] [ ...]
-H hostname [ ...]
-t [s:time][e:time]
-o output_type
> outfile
The dia -a command allows you to use the optional infile parameter. This allows you to choose one or more alternative input event files for translation. Reporting is done in sequential order. If you do not supply a file name for this parameter, the default event file is used. The default event file is defined as either the default system event log for each operating system, or a file specified using the set evt command.
The default system event log file on a Tru64 UNIX system is /usr/adm/binary.errlog.
The dia --b command allows you to copy all or part of a log file into another binary output file. This command is typically used in conjunction with the -i and -x flags and with selection keywords to select only those entries of interest. The binfile is the output file created from the -b command and is not optional.
The following syntax is used for the dia -b command option:
dia -b binfile [-f infile[ ...]]
The following list presents the valid flags and parameters for the dia -b command. Refer to Appendix C for definitions of these flags.
-f infile [ ...]
-v
-R
-j [rejfile]
-e [s:start_number][e:end_number]
-i keyword [=val] [ ...]
-x keyword [=val] [ ...]
-H hostname [ ...]
-t [s:time][e:time]
The dia -c command reads and displays events as they occur directly from the system event logger. The output goes to the user terminal by default unless it is redirected to a file.
The following syntax is used for the dia -c command option:
A special file is created in the /tmp directory when you use the dia -c command: DECevent_MbxYYYY, where YYYY is a four digit number assigned by the system.
Do not delete this file while DECevent is running. These files are deleted upon normal termination of the dia -c command.
The following list presents the valid flags and parameters for the dia -c command. Refer to Appendix C for definitions of these flags.
-i keyword [=val] [ ...]
-x keyword [=val] [ ...]
-o output_type
> outfile
The dia -d command provides a brief report type followed by a dump of a generic buffer. The following syntax is used for the dia -d command option:
The following list presents the valid flags and parameters for the dia -d command. Refer to Appendix C for definitions of these flags.
-f infile [ ...]
-v
-R
-e [s:start_number][e:end_number]
-i keyword [=val] [ ...]
-x keyword [=val] [ ...]
-H hostname [ ...]
-t [s:time][e:time]
> outfile
The dia -d command allows you to use the optional [infile] parameter. This allows you to choose one or more alternative input event files for translation. Reporting is done in sequential order. If you do not supply a file name for this parameter, the default event file is used. The default file is defined as either the default system event log for each operating system, or a file specified using the set evt command.
The default system event log file on a Tru64 UNIX system is /user/adm/binary.errlog.