1 Reply Latest reply on Oct 25, 2016 6:49 AM by Bill Robinson

    bad PATH variable after agent upgrade

    Olivier Renault

      Hi,

      When I upgrade agents to 8.2.03.430 using a file deploy job, the PATH variable becomes incorrect:

      in nsh:

      dfl30eb2% nexec -e 'echo $PATH'

      /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/bladelogic/current/NSH/bin:/opt/bladelogic/

      current/NSH/sbin

       

      in putty:

      [root@dfl30eb2] ~

      $ echo $

      PATH

      /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

       

       

      I upgrade the agent.

      Then I see that the PATH variable has changed:

       

      dfl30eb2% nexec -e 'echo $PATH'

      /bin:/sbin:/usr/bin:/usr/sbin:/usr/ucb:/etc:/usr/bsd:/opt/bladelogic/current/NSH/bin:/opt/bladelogic/current/NSH/sbin

      In putty the PATH did not change:

      [root@dfl30eb2] ~

      $ echo $PATH

      /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

       

      I stop and start the agent:

      [root@dfl30eb2] ~

      $ /opt/bladelogic/v82/NSH/sbin/agentctl stop

      [root@dfl30eb2] ~

      $ /opt/bladelogic/v82/NSH/sbin/agentctl start

      [root@dfl30eb2] ~

       

      the PATH becomes good as before the upgrade:

      dfl30eb2% nexec -e 'echo $PATH'

      /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/bladelogic/current/NSH/bin:/opt/bladelogic/

      current/NSH/sbin

       

      Is it a know problem? How can I fix that on all my agents?