hcicyclesavemsgs in upgrade from 3.8.1 to 5.3

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf hcicyclesavemsgs in upgrade from 3.8.1 to 5.3

  • Creator
    Topic
  • #48085
    Kathy Young
    Participant

      We are currently running production on 3.8.1 on AIX 5.2.

      We have installed and are testing 5.3

      I set up cron jobs to cyclesave the test messages in 5.3, while production remains on 3.8.1. However, the log is telling me: “/usr/bin/ksh: /hci/qdx5.3/integrator/contrib/hcicyclesavemsgs:  not found.” When I look in the contrib directory, hcicyclesavemsgs is present.

      Here are samples of the old and new crontabs:

      30 0 * * * /usr/bin/ksh -c ‘eval `/hci/bin/hcisetenv -root ksh /hci/root3.8.1P prod3`;/hci/root3.8.1P/contrib/hcicyclesavemsgs -d -o 14’ >/tmp/cyclemsg.prod3.log 2>&1

      50 0 * * * /usr/bin/ksh -c ‘eval `/hci/bin/hcisetenv -remote ksh /hci/qdx5.3/integrator test4`;/hci/qdx5.3/integrator/contrib/hcicyclesavemsgs -d -o 45’ >/tmp/cyclemsg.test4.log 2>&1

      What am I missing? Thanks in advance.

      Kathy

    Viewing 2 reply threads
    • Author
      Replies
      • #57594
        Glenn Friedenreich
        Participant

          Hi Kathy – I checked the perl version referenced in our hcicyclesavemsgs script, which we don’t use, but is in the 5.3 contrib directory:

          #!/hci/qdx5.1/integrator/bin/perl

          I believe the “/usr/bin/ksh: /hci/qdx5.3/integrator/contrib/hcicyclesavemsgs:  not found.”  message that you are seeing is because the perl interpreter is not being found, not the hcicyclesavemsgs script itself.  The error message is a little misleading in this regard, and has fooled us in the past.

          If you update the first line of the hcicyclesavemsgs script to this:

          #!/hci/qdx5.3/integrator/bin/perl

          it should solve the problem.

          – Glenn

        • #57595
          Kathy Young
          Participant

            Glenn,

            You’re probably on the right track. I made the change you suggested and got a different error – “Can’t open perl script “eval `/hci/bin/hcisetenv -root ksh /hci/qdx5.3/integrator test3`;/hci/qdx5.3/integrator/contrib/hcicyclesavemsgs -d -o 45″: A file or directory in the path name does not exist.”

            Any other thoughts?

            Kathy

          • #57596
            Glenn Friedenreich
            Participant

              Kathy – Possibly it’s an environment problem being encountered when running via cron.  If I recall correctly,  there were some changes to hcisetenv in Cloverleaf 5.x that were described in the release notes.  We call the following when executing scripts via cron that need the 5.3 hci environment (note that the ‘sbin’ version of hcisetenv is being used):

              eval $($HCIROOT/sbin/hcisetenv -root ksh $HCIROOT)

              eval $($HCIROOT/sbin/hcisetenv -site ksh $siteName)

              (where $HCIROOT and $siteName are defined earlier in the script)

              To verify if it as environment problem, try running the hcicyclesavemsgs command manually from the command line when logged in as hci.  If it works, then the problem is likely that cron isn’t getting the correct environment.

              You might also want to confirm the location of the perl interpreter on you system using the ‘which’ command:

              $ which perl

              /hci/qdx5.3/integrator/bin/perl

              -Glenn

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