#
#	$Header: Begin00,v 4.300 91/06/09 00:59:50 root Rel41 $
#
# Loosely based on a script written by Wengyik Yeong for the NYSERNet 4/19/88
# Further modifications on data reduction and auto-configuration
# by Bill Caloccia, NYSERNet Feb, 1989
#
#       This awk script extracts I/O thruput/errors
#       information from an snmppoll output file, whose format is:
#	<Unix Date Stamp><Object Name><Hex Value><Value Decimal>
#	Items are seperated by tabs.
#
#	Copyright 1990, Performance Systems International Inc.
#	Copyright 1988,1989 NYSERNet, Inc.
#	Copyright 1990, Sony Corp.
#	All Rights Reserved.
#
BEGIN {

  FS	= "\t";			# <tab> as field separator

  DateO	= 1;			# offsets to portion of the input line
    DDay = 1;			#   offsets when date is split
    DMon = 2;
    DDate = 3;
    DTime = 4;
      THour = 1;		#   offsets when time is split
      TMin = 2;
      TSec = 3;
    DYear = 5;
  VarO	= 2;			# key for awk
  HexO	= 3;
  ValO	= 4;

# some minor initializations

  RDay	= "";			# used in report header
  RMon	= "";
  RDate	= "";
  RYear = "";

  # the number of days from the beginning of the year to the
  # month PRECEDING the one used as index;

  month["Jan"] = 0;
  month["Feb"] = 31;
  month["Mar"] = 59;
  month["Apr"] = 90;
  month["May"] = 120;
  month["Jun"] = 151;
  month["Jul"] = 181;
  month["Aug"] = 212;
  month["Sep"] = 243;
  month["Oct"] = 273;
  month["Nov"] = 304;
  month["Dec"] = 334;
