› Clovertech Forums › Cloverleaf › setsite command not found
Keep getting an error for setsite. Any ideas?
$ showroot
HCI root is /opt/cloverleaf/cis6.2
HCI site is live
imngr1:/
$ setsite live_adt
-bash: Fail: command not found
can you show the output of these commands:
whoami
set
cat /etc/passwd | grep hci
Peter Heggie
$ cat /etc/passwd | grep hci
hci:x:500:500::/home/hci:/bin/bash
hcitest:x:501:500::/home/hcitest:/bin/bash
hcispt1:x:502:500::/home/hcispt1:/bin/tcsh
It’s also odd that when I first putty into the server I can run the command once and that’s it.
$ showroot
HCI root is /opt/cloverleaf/cis6.2
HCI site is live_adt
imngr1:~
$ setroot /opt/cloverleaf/cis6.2/ live_dft
-bash: Fail: command not found
imngr1:~
$ showroot
HCI root is /opt/cloverleaf/cis6.2
HCI site is live_adt
imngr1:~
$ setroot /opt/cloverleaf/cis6.2/ live_dft
-bash: Fail: command not found
Another example of the command only working once. These are the only commands running after connecting.
imngr1:~
$ showroot
HCI root is /opt/cloverleaf/cis6.1/integrator
HCI site is live
imngr1:~
$ setroot /opt/cloverleaf/cis6.2/ live_adt
imngr1:~
$ showroot
HCI root is /opt/cloverleaf/cis6.2
HCI site is live_adt
imngr1:~
$ setroot /opt/cloverleaf/cis6.2/ live_dft
-bash: Fail: command not found
imngr1:~
$ setsite live_dft
-bash: Fail: command not found
imngr1:~
can you post the contents of /home/hci/.profile and /home/hci/.profile.local.end ?
I’m thinking that some part of the user environment is not setup right, and usually all of that is taken care of in the .profile scripts.
Peter Heggie
$ cat .profile
#######################################################################
#
# Infor Cloverleaf provided .profile
#
# Copyright (c) 2014, Infor. All Rights Reserved. http://www.infor.com
#
# .profile is the startup file for use with sh and ksh shells
# This file is read in after /etc/profile and /etc/environment.
# (However, this behavior is platform dependent; check your system ksh
# man page or other documentation for exact details.)
#
# This file is used to set up a per-user login environment. Since this
# .profile is in the hci user’s home directory, it is used to set up the
# environment for the hci user.
#
# This file is often replaced during Cloverleaf upgrades to make
# necessary changes to the user environment. THEREFORE, DO NOT MODIFY
# THIS FILE DIRECTLY.
#
# Should you need to change the behavior of this .profile, it is recommended
# that you you create either a .profile.local.start or a
# .profile.local.end file. These files will be sourced (or included)
# when this .profile runs at login time. As you might guess, the
# .profile.local.start file is sourced at the beginning of this file.
# The .profile.local.end is sourced at the end.
#
#######################################################################
# set this to the install root
#CL_INSTALL_DIR=/quovadx/qdx5.0
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.:/usr/local/bin:/usr/local/scripts:${CL_INSTALL_DIR}/integrator/sbin
export PATH
if [ -r .profile.local.start ] ; then . .profile.local.start ; fi
umask 002
if [ -s “$MAIL” ] # This is at Shell startup. In normal
then echo “$MAILMSG” # operation, the Shell checks
fi # periodically.
# SHXMON* only needed for 2.1
export SHXMON_INTERVAL=5
if [ -x /bin/uname ]; then
if [ /bin/uname = “Linux” ]; then
export PATH=$PATH:/bin
FPATH=${CL_INSTALL_DIR}/integrator/kshlib; export FPATH
. $FPATH/setroot
. $FPATH/setsite
fi
fi
# Use this line to get the machine’s default root.
setroot
# Use this line to get a 2.1 (i.e., HCI-LINK) root (if installed)
# setroot /hci/hciRel_v2.1
#
# Modify this line to get a 3.0 (i.e., Cloverleaf) root
# setroot /hci/root3.0.xP
if [ “tty” = “/dev/hft/0” ]; then
# Initialize X environment at system console
export DISPLAY=unix:0.0
open xinit
elif [ “tty” = “/dev/lft0” ]; then
# Initialize X environment at AIX4.x system console
export DISPLAY=unix:0.0
xinit
elif [ -n “$XSTATION” ]; then
# Initialize X environment on XStation
truncx=echo ${XSTATION} | sed "s/:0//"
DISPLAY=${truncx}:0.0
export DISPLAY
startx &
fi
if [ -r .profile.local.end ] ; then . .profile.local.end ; fi
imngr1:~
There’s no /home/hci/.profile.local.end. Just the .profile, profile.pre-6.1 and .profile.pre-6.2
ok good – that rules out a lot of causes. But something is changing your environment, and it happens ‘between’ the first command (successful) and second command (fail). Never seen that happen.
What does this mean: imngr1:~
Its like the act of executing a command causes the current environment to change.
When did you install this version and what OS are you on?
You will probably get better and faster service opening a ticket with Infor, unless someone here recognizes this behavior.
Peter Heggie
imngr1 is the name of the server. RHEL version 2.6.32-431.29.2.el6.x86_64. I believe the OS was installed in 2014
I’ve also noticed that when I login showroot by default shows the old version.
As soon as I setroot to the new version I begin receiving command not found for both setsite and setroot but showroot will still work.
I had to uninstall and reinstall. However, initially I didn’t install in a folder labeled integrator.
Original location was /opt/cloverleaf/cis6.2/
Reinstall location /opt/cloverleaf/cis6.2/integrator/