Browse Prior Art Database

Test Driver for Producing LAN Server Administrative Alerts

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

Publishing Venue

IBM

Related People

Baier, KJ: AUTHOR [+3]

Abstract

Disclosed is a function for producing ADMIN alerts using a command line interface for the NetAlertRaise function.

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

Test Driver for Producing LAN Server Administrative Alerts

       Disclosed is a function for producing ADMIN alerts using
a command line interface for the NetAlertRaise function.

      Testing code that processes ADMIN 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 ADMIN 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_DOSSIGNALS
 #define  INCL_DOSPROCESS
 #include <os2.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 #include <netcons.h>
 #include <alert.h>
 #include <alertmsg.h>
 char  buffer|256|;
 struct std_alert         far *alert_buf;
 struct admin_other_info  far *other_info;
 unsigned short i,rc;
 char  far *text_string;
 unsigned long  timeout;
 void     main(argc, argv)
   int     argc;
   char  *argv||;
 {
   alert_buf = (struct std_alert *)buffer;
   alert_buf->alrt_timestamp = 12L;              /* dummy value
*/
   strcpy(alert_buf->alrt_eventname, "ADMIN");
   strcpy(alert_buf->alrt_servicename, "Alrttest");
   other_info = ALERT_OTHER_INFO_F(alert_buf);   /* macro to get ptr
*/
   other_info -...