#! /bin/bash

#
# Copyright (c) 2002 Hewlett-Packard Company.  All Rights Reserved.
#
# Permission to use, copy, and modify this software and its documentation
# is hereby granted under the following terms and conditions.  The above
# copyright notice, this permission notice, and the following disclaimer
# must appear in all copies of the software, derivative works or modified
# versions.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND HEWLETT-PACKARD CO. DISCLAIMS ALL
# WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL HEWLETT-PACKARD
# COMPANY BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
#

#
# default libexecdir used to bootstrap scripts
libexecdir=${GLOBUS_LOCATION}/libexec

#
# load GRIS CPU common code and initialization
. ${libexecdir}/grid-info-mem-common

#########################################################################

#
# meminfo command
meminfo=${sbindir}/grid_info_mem_hpux_helper

probe_resource_mem ()
{
	eval `"${meminfo}"`
	emit_resource_mem_descriptions
}

#############
# do the work
probe_resource_mem
