#!/bin/sh
#++
# Copyright (c) 2005, 2008, Oracle and/or its affiliates.All rights reserved. 
#
#    NAME
#      emocmutl - OCM utility to return data.
#
#    DESCRIPTION
#      This script is invoked by consumers to get information in a consistent
#      form, ala the hostname of the machine this is running on.
#
#      Supports only the get_hostname option currently.
#
#    EXIT CODES
#      0 - Success
#--

_binDir=/bin
HOSTNAME_CMD=${_binDir}/hostname

if [ -z "$1" ]; then

   echo "Usage: $0 <option>"
   exit 1
fi

if [ "$1" = "get_hostname" ]; then
   exec ${HOSTNAME_CMD}
fi
