#! /usr/bin/ksh
#
# @(#)cmsreport.sh	1.3	98/05/28 SMI
#
# Copyright (c) 1998, by Sun Microsystems, Inc.
# All rights reserved.
#
# cmsreport name number attribute value
#
# Purpose:      This function is a wrapper for u4ftctl report_attribute.
#
# name                  - class name of CMS Object setting attribute
# number                - instance number of CMS Object setting attribute
# attribute             - attribute to be set
# value                 - value that attribute is to be set to
#
# Error Codes:
# Return 0 on success, non-zero otherwise
#

if [[ $# -ne 4 ]]
then
	$CMSHOME/lib/cmsdebug "cmsreport: wrong no. of args $1 $2 $3 $4"
	exit 1
fi

name="$1"
number="$2"
attribute="$3"
value="$4"

$CMSHOME/lib/u4ftctl report_attribute 1 \
	"($name#$number)" "$attribute" "$value" "cmsreport"
