#!/bin/bash

# Script to call inventory scout to gather VPD  This script is intended for use
# by Service Agent and will invoke the invscout command.
#
# Usage:
#     invSCOUT <parms>
#
#     <parms>  valid parms sent to invSCOUT
#                                $1 $2        $3         $4     $5
#     For example:     invSCOUT -v -m machType-machModel -s machSerial
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
#
# Module History:
# 00 04/07/2004  M. Gregor     Initial release
# 00 06/14/2004  M. Gregor     Fixes required to support invscout updates

actzTrace "ESA    T: -> invSCOUT $*"

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

/usr/sbin/invscout $1 $2 $3 $4 $5

actzTrace 'ESA    T: <- invSCOUT'

exit 0
