Setting site upon login

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Setting site upon login

  • Creator
    Topic
  • #53906
    David Teh
    Participant

      Hi folks,

      Testing out CIS 5.8.7 on Solaris 10.

      I thought .cshrc is the place to default the site for ‘hci’ and ‘hcitest’ IDs, but it doesn’t seem to be so.

      For ‘hcitest’ ID, these statements are already in .cshrc:

      alias setsite ‘eval `${CL_INSTALL_DIR}/integrator/sbin/hcisetenv -site csh !*`’

      setroot $CL_INSTALL_DIR/integrator

      setsite hcitest

      But, after logging in as ‘hcitest’, and running showroot:

      HCI root is /quovadx/cis5.8/integrator

      HCI master site is hci

      HCI site is hci

      Any suggestions?

    Viewing 4 reply threads
    • Author
      Replies
      • #79475
        Russ Ross
        Participant

          Check to see if the user ID of interest is setup to login using the csh because at least for the hci user ID the default is the ksh, which looks in $HOME/.profile upon login.

          I checked our clean install of cloverleaf 6.0 and see the following:

          > grep hci /etc/passwd

          hci:!:1001:1:PROD Cloverleaf 6.0:/home/hci:/bin/ksh

          hcitest:!:1002:1::/home/hcitest:/bin/ksh

          hcispt1:*:203:1::/home/hcispt1:/bin/tcsh

          You might want to see how the various hci user ID are defined in your particular /etc/passwd file.

          Russ Ross
          RussRoss318@gmail.com

        • #79476
          James Cobane
          Participant

            The other option is to set the value in the ‘rootInfo’ file in $HCIROOT; where:

            site=yoursitehere

            Jim Cobane

            Henry Ford Health

          • #79477
            David Teh
            Participant

              Here’s what I got:

              > grep hci /etc/passwd  

              hci:x:300:10::/home/hci:/bin/tcsh

              hcitest:x:301:10::/home/hcitest:/bin/tcsh

              hcispt1:x:302:10::/export/home/hcispt1:/bin/tcsh

            • #79478
              David Teh
              Participant

                We have 2 main IDs – hci and hcitest on the same box.

                In CL 5.6 and earlier, we always default the production site in the hci’s login script and the test site in the hcitest’s login script. I also check that in the current 5.6 setup, in the rootInfo file, site is set to the production site, but this does not cause any issue for the hcitest id.

                Hmm…..

                James Cobane wrote:

                The other option is to set the value in the ‘rootInfo’ file in $HCIROOT; where:

                site=yoursitehere

                Jim Cobane

                Henry Ford Health

              • #79479
                David Teh
                Participant

                  After comparing multiple files between the new and old servers, I’ve found a difference  in the .login file. The new server’s .login has an additional line:

                  setroot $CL_INSTALL_DIR/integrator

                  Commenting it off solved the problem.

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.