# LOGSYS READ

## Qualifiers:

<logname> ALL

<logname> ALL MATCH <string>

<logname> INTO <filename> ALL

<logname> INTO <filename> ALL MATCH X

<logname> NEWEST X

<logname> NEWEST X MATCH <string>

<logname> INTO <filename> NEWEST X

<logname> INTO <filename> NEWEST X MATCH X

<logname> OLDEST X

<logname> INTO <filename> OLDEST X

<logname> INTO <filename> OLDEST X MATCH X

## Purpose:

Reads all or part of the specified log on the Maintenance Command window.

## Details:

An invalid destination message will be returned if this command is entered while the SMDR Real Time Reporting option is enabled in the SMDR Options form. To allow the command, ensure that the option is disabled and a log file is defined.

The ALL qualifier outputs all entries in the log.

The NEWEST X qualifier outputs the most recent X number of entries.

The OLDEST X qualifier outputs the oldest X number of entries in the log.

The INTO filename qualifier specifies the name of a file into which the log entries are written.

The MATCH X qualifier displays only those entries which contain the specified character string. The string may be specified in upper, lower, or mixed case. The string must be enclosed in double quotation marks if it contains embedded spaces or characters (such as / or >).

### Reading Hotel Logs

Hotel Logs provide access to the logs generated by the system during operation of the Hotel/Motel feature package. Wake-Up Logs, Call Block Logs, Room Monitor Logs and Time Logs can be generated. See Hotel/Motel Access System Logs for additional information.

To generate a Hotel Log, use the LOGSYS READ command with the HOTEL logname (see example below).

## Examples:

### Entry: LOGSYS READ SMDR ALL MATCH "04/26"

System Response:

04/26 15:30 0000:00:03 4104 001 4105 I 4105

### Entry: LOGSYS READ HOTEL NEW 2

System Response:

2004 - JUN - 10 22:57:22 HOTEL A/Active - Info - Mn42 #0000

CALL BLOCK: Cleared By

SYSTEM

2004 - JUN - 10 22:57:22 HOTEL A/Active - Info - Mn42 #0000

CALL BLOCK: Cleared By SYSTEM 2004 - JUN - 10

20:57:59 HOTEL A/Active - Info - Mn42 #0002

TIME: New Time-2004 - JUN - 10 20:57:45.00 THU