#!/bin/bash

# Script to query the billing info for Cod.  This script is intended for use
# by Service Agent and will invoke the lscod command.
#
# Usage:
#     lsCOD <parms>
#
#     <parms>  valid parms sent to lscod
#
#     For example:     lsCOD -t bill -m type-model*serial -r proc|mem  
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
#
# Module History:
# 00 04/07/2004  M. Gregor     Initial release

actzTrace "ESA    T: -> lsCOD $*"

if (($# < 6)); then                                                        
   actzTrace 'ESA    F: Missing required argument(s).'
   exit 1
fi

/opt/hsc/bin/lscod $1 $2 $3 $4 $5 $6

actzTrace 'ESA    T: <- lsCOD'

exit 0
