#
#	$Header: Begin00,v 4.300 91/06/09 00:58:58 root Rel41 $
#
# This script will produce the average hourly throughput
# for the 24 hours in a day (0 - 23).
#
# Written by Wengyik Yeong for the NYSERNet 4/19/88
# Added threshold Errors
# Added I/O byte totals
# Further modifications on data reduction and auto-configuration
# by Bill Caloccia, NYSERNet Feb, 1989
# Copyright 1990 Performance Systems International Inc.
# Copyright 1988, 1989 NYSERNet, Inc.
# Copyright 1990 Sony Corp.
# All rights reserved.
#
#       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.
#
#
#
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;
