# IBM_PROLOG_BEGIN_TAG 
# This is an automatically generated prolog. 
#  
#  
#  
# Licensed Materials - Property of IBM 
#  
# Restricted Materials of IBM 
#  
# (C) COPYRIGHT International Business Machines Corp. 2008 
# All Rights Reserved 
#  
# US Government Users Restricted Rights - Use, duplication or 
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 
#  
# IBM_PROLOG_END_TAG 
#*===========================================================================*/
#*                                                                           */
#* Module Name:  recfgctnid                                                  */
#*                                                                           */
#* Description:                                                              */
#*      Script to invoke the "recfgct -i Node_ID" command.                   */
#*                                                                           */
#* Input: a single argument that is the Node ID to pass to recfgct.          */
#*        See the man page for recfgct.                                      */
#*                                                                           */
#* N.B. This is purely a wrapper script intended to detect the presence of   */
#*      the support for "recfgct -i Node_ID" without having to determine     */
#*      the level of RSCT installed, i.e. if recfgctnid is present, the      */
#*      function is present.                                                 */
#*                                                                           */
#*===========================================================================*/
#*   @(#)82   1.1   src/rsct/rmc/mcdaemon/recfgctnid.sh, mcdaemon, rsct_rfos, rfos0838a 7/23/08 17:53:21 

PATH=/usr/sbin/rsct/install/bin:/usr/sbin/rsct/bin:/usr/bin:/usr/sbin:/bin
export PATH

NID=$1

if [[ -z $NID ]]
then
	exit 2
fi

if ! recfgct -i $NID
then
	exit 1
fi

exit 0
