Mike's PBX Cookbook

History File

The History File provides the capability to allocate an area of protected data to store system messages until a printout is requested by a technician. The size of the History File is defined on a system basis and can be up to 65,534 characters.

As the History File can be larger than the scroll-back buffer, capture it to a text file which can then be opened in Notepad.

Create a History File:

... in LD 17, CHG, TYPE ADAN, NEW HST:

REQ  chg
TYPE adan
ADAN new hst
SIZE 64000
USER mtc bug sch

MEM AVAIL: (U/P): 46091    USED: 936948    TOT: 983039
DISK RECS AVAIL: 2541
DCH  AVAIL:    63    USED:     1    TOT:    64
AML  AVAIL:    15    USED:     1    TOT:    16

ADAN DATA SAVED
ADAN ****

>
OVL000

Print the History File:

... in LD 22, PRT, TYPE AHST (all history). This will display the entire history file:

>ld 22
PT2000

REQ  prt
TYPE ahst
% MEM AVAIL: (U/P): 46091    USED: 936948    TOT: 983039
% DISK RECS AVAIL: 2541
% DCH  AVAIL:    63    USED:     1    TOT:    64
% AML  AVAIL:    15    USED:     1    TOT:    16
%
% ADAN DATA SAVED
%
% ADAN ****
%
% >
% OVL000
% >LD 22
% PT2000
%
% TTY #02 LD 022 15:38 46  10/2/2004
%
% REQ  PRT
% TYPE AHST

View History File (VHST):

Use the following commands in LD 22 to navigate, search, and display portions of the history file:

PromptResponseComment
REQPRTPrint
TYPEVHSTView the History File
VHST(%ON)Turn ON display features
%OFFTurn OFF display features
BFIND aaaSearch backward in the History File
BFINDRepeats the previous backward search
DOWN BOTMoves to the top of the file
DOWNMove forward 6 lines in the History File
FIND aaaaFile Search Forward in the history file
FINDRepeats the previous forward search
HELPList valid responses
HSTView the system history file
NEXT BOTMoves to the end of the file
NEXT xMove forward x lines in the History File, display all lines in between
PREV TOPMoves to the top of the file
PREV xMove backward x lines in the History File, display all lines in between
TRFView the system traffic log file
TTYLOG nView the log file for TTY port n
UP TOPMoves to the top of the file
UPMove backward 6 lines in the history file

System Even Log:

With the Alarm Management feature (LD 117), system events are logged into a new disk-based System Event List (SEL).
Unlike the System History File, the System Event List survives Sysload, Initialisation and power failures.

Use the following commands in LD 117:

CommandDescription
PRT SEL [nn] [aaaa]Print most recent record(s) in system event list, where:
  • [nn] = 0-(20)-SELSIZE
  • [aaaa] = category name (for example, BUG)
    All categories are printed if not specified
PRT SELSIZEPrint System Event List size, the default is 500 records
CHG SELSIZE 5-(500)-2000Change size, where: 5-(500)-2000 = number of events in SEL