setsite command not found

Clovertech Forums Cloverleaf setsite command not found

  • Creator
    Topic
  • #114789
    Stewart
    Participant

      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

    Viewing 11 reply threads
    • Author
      Replies
      • #114790
        Peter Heggie
        Participant

          can you show the output of these commands:

          whoami

          set

          cat /etc/passwd | grep hci

          Peter Heggie

        • #114793
          Stewart
          Participant

            $ 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

          • #114794
            Stewart
            Participant

              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

            • #114795
              Stewart
              Participant

                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:~

              • #114803
                Peter Heggie
                Participant

                  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

                • #114804
                  Stewart
                  Participant

                    $ 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:~

                  • #114842
                    Stewart
                    Participant

                      There’s no  /home/hci/.profile.local.end.  Just the .profile, profile.pre-6.1 and .profile.pre-6.2

                    • #114859
                      Peter Heggie
                      Participant

                        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

                      • #114860
                        Stewart
                        Participant

                          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

                        • #114863
                          Stewart
                          Participant

                            I’ve also noticed that when I login showroot by default shows the old version.

                          • #114864
                            Stewart
                            Participant

                              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.

                            • #114883
                              Stewart
                              Participant

                                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/

                            Viewing 11 reply threads
                            • You must be logged in to reply to this topic.