home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
rxneterr.zip
/
neterr.doc
< prev
next >
Wrap
Text File
|
2001-01-01
|
3KB
|
108 lines
- read and clear LAN errors from OS/2 LAN servers
1. Introduction
The user is assumed to be familiar with the OS/2 LAN server
History:
94/06/20 - original version by courtesy of WoFa93
Function
- read and clear LAN errors
Call
NETERR /optionlist
Options
Clear - clear log (default: only read)
Verbose - chat heavily
Quiet - no chat (default)
Logging - write to logfile (default: no write)
LOCal - local error file only (default: all servers)
ReturnCodes
0 - all done (boolean false)
1 - Help requested (boolean true)
2 - REXX Syntax error
3 - User interrupted
Notes
NONE
2. What is NETERR.CMD ?
NETERR.CMD reads the error log from OS/2 LAN servers, assigns
the associated error message, and writes a file,displaying all
entries found in the error log, including raw data.
On request via /CLEAR switch, it deletes the error entries in the
LAN server.
For each server found in the current domain, a file <ServerName.ERR>
is written unless instructed otherwise with the LOCAL switch which
only reads the local LAN error entries.
3. Corequisites/Prerequisites
The following DLLs are required:
- REXXUTIL (supplied with OS/2 operating system)
This must be installed with OS/2 classic REXX
- LSRXUTIL (supplied with OS/2 LAN server)
This file LSRXUT.DLL is included in this package
The NETERR.TAB file must be placed in the directory, from which
the NETERR command is invoked.
The NETERR.TAB file is an error table, containing prepared error
numbers and their meanings. It is derived from the LAN Server
source file \IBMLAN\ERROR.TXT by the command ERRTAB.
Other COs or PREs aren't known.
4. Installation:
Copy the NETERR.CMD file into a subdirectory which is included in
the PATH statement in CONFIG.SYS.
Copy the NETERR.TAB file into the same subdirectory.
Assure that REXXUTIL.DLL and LSRXUTIL.DLL are in a subdirectory
which is included in the LIBPATH statement in CONFIG.SYS.
That's all
5. What does NETERR ?
If all servers are requested, a list of servers is retrieved from
then current domain controller. Otherwise, the program assumes
that only the local error log should be scanned.
For each requested server, the error log is read. Each error entry
consists of errordate, errornummber, and errordata.
The NETERR.TAB is scanned for the associated error message.
A record is written to the file <servername.LOG>, where servername
is derived from the list of servers found in this domain. If only
local scanning is performed, servername matches the local machinename.
For ease of interpretation, the errordata is displayed in raw data
form, including unreadable characters, and a hexadecimal representation.
If the /Clear switch is on, the error entries are deleted.
6. Parms and Options
No parameters are defined
Options are:
/Verbose - give messages during the run
/Silent - be quiet
/Logging - write messages to a log file named yyddd.LOG
where yy is the current year
and ddd is the current julian day of the year
/Nirvana - when finished close the whole OS/2 session