Dismiss
InnovationQ will be updated on Sunday, Oct. 22, from 10am ET - noon. You may experience brief service interruptions during that time.
Browse Prior Art Database

Test Driver for Producing LAN Server ERRORLOG Alerts

IP.com Disclosure Number: IPCOM000110751D
Original Publication Date: 1992-Dec-01
Included in the Prior Art Database: 2005-Mar-25
Document File: 2 page(s) / 38K

Publishing Venue

IBM

Related People

Baier, KJ: AUTHOR [+3]

Abstract

Disclosed is a function for producing ERRORLOG alerts using a command line interface for the NetErrorlogWrite function.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 81% of the total text.

Test Driver for Producing LAN Server ERRORLOG Alerts

       Disclosed is a function for producing ERRORLOG alerts
using a command line interface for the NetErrorlogWrite function.

      Testing code that processes ERRORLO G alert information is
difficult since it is almost impossible to set up the conditions to
trigger many of those alerts.  The following C code function provides
a simple command line interface to produce those alerts on an OS/2*
LAN server.  The user invokes the function with the function name
followed by the ERRORLOG alert message number (as found in the
alertmsg.h file), and further followed by the dynamic text strings
that will be inserted into the message.
#define  INCL_NETERRORLOG
#define  INCL_NETERRORS
#include <os2.h>
#include <netcons.h>
#include <errlog.h>
CHAR         stringbuf |32|;
void     main(argc, argv)
 int     argc;
 char  *argv||;
{
 USHORT       i,rc,nstrings;
 USHORT       buflen;
 USHORT       error_number;
 error_number=atoi(argv |1|);
 if (argc > 2)                  /* if there are any message */
 {                              /* xt strings, put them     */
   for(i=2;i<argc;i++)          /* in the buffer            */
   {
      strcpy(stringbuf, argv |i|);
      stringbuf = stringbuf + (strlen(stringbuf)) + 1;
   };
}
else
  strcpy(stringbuf, "        ");
nstrings = argc-2;
  rc...