Browse Prior Art Database

New Options for Managing and Analyzing the Audit Trail in Distributed Computing Environment Control Program Command

IP.com Disclosure Number: IPCOM000119144D
Original Publication Date: 1997-Dec-01
Included in the Prior Art Database: 2005-Apr-01

Publishing Venue

IBM

Related People

Tran, TM: AUTHOR

Abstract

Disclosed is a new set of Distributed Computing Environment Control Program (DCECP) commands options. The new set is introduced to help the Distributed Computing Environment (DCE) Administrator manage and analyze the Audit Trail effectively.

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

New Options for Managing and Analyzing the Audit Trail in Distributed
Computing Environment Control Program Command

      Disclosed is a new set of Distributed Computing Environment
Control Program (DCECP) commands options.  The new set is introduced
to help the Distributed Computing Environment (DCE) Administrator
manage and analyze the Audit Trail effectively.

The new set of DCECP commands options are listed below:
  1.  For audtrail show command
      o  reverse - To reverse and display the audit records from
          newest to oldest recorded dates.
      o  before - To retrieve only the audit records that were
          recorded before the specified date.
      o  after - To retrieve only the audit records that were
          recorded after the specified date.
      o  first - To retrieve only the first audit record in the
          specified audit trail.
      o  last - To retrieve only the last audit records in the
          specified audit trail.
  2.  For audevent query command
        To display the event name from given event number or
       vice versa
  3.  For audevent show command
        To display all the pre-defined event names in DCE or
       all the event names defined in the specified event class

The procedure for modifying the above-identified routines as shown
below:
  1.  Add the new options in the declaration of the arg_table{}
  2.  Initialize the new options accordingly
  3.  Set the value of the new options if required
  4.  Check for mutual exclusive options (before and after) or
       (first and last)
  5.  Execute the options if the option's flags are set

The detail modifications of each routine are shown on the next pages.
  int audevents_show(ClientData clientData, Tcl_Interp *interp,
                int argc, char **argv)
  {
    int          i, j, ev_count, listc;
    unsigned32   ec_number, *events;
    char         tmp{32}, **listv;
    char        *msg, *msgbuff;
    char        *allevents = NULL;
  /* Check to see if the user just wants help */
  DCP_NO_COMMAND_HELP();
  /* Check for insufficient arguments */
  if (argc < 2) {
    DCP_SET_RESULT_CODE(dcp_s_need_arg);
    return TCL_ERROR;
  }
  /* Check for extraneous arguments */
  if (argc > 2) {
    if (argv{2}{0} == '-') {
      msgbuff = (char *)dce_sprintf(dcp_s_bad_opt, argv{2});
      msg = malloc (strlen(msgbuff)+20);
      sprintf (msg, "msgID=0x%X  %s", dcp_s_bad_opt, msgbuff);
      Tcl_SetResult(interp, msg, TCL_DYNAMIC);
     }
     else {
       msgbuff = (char *)dce_sprintf(dcp_s_bad_arg, argv{2});
       msg = malloc (strlen(msgbuff)+20);
       sprintf (msg, "msgID=0x%X  %s", dcp_s_bad_arg, msgbuff);
       Tcl_SetResult(interp, msg, TCL_DYNAMIC);
     }
     return...