Set the command-line environment

About this task

On Linux hosts, set the environment before you run any LSF or EGO commands. You need to do this once for each session you open. root, lsfadmin, and egoadmin accounts use LSF and EGO commands to configure and start the cluster.

You need to reset the environment if the environment changes during your session, for example, if you run egoconfig mghost, which changes the location of some configuration files.

Procedure

  • For csh or tcsh, use cshrc.lsf.

    source LSF_TOP/conf/cshrc.lsf

  • For sh, ksh, or bash, use profile.lsf:

    . LSF_TOP/conf/profile.lsf

Results

If enterprise grid orchestrator is enabled in the LSF cluster (LSF_ENABLE_EGO=Y and LSF_EGO_ENVDIR are defined in lsf.conf), cshrc.lsf and profile.lsf, set the following environment variables:
  • EGO_BINDIR

  • EGO_CONFDIR

  • EGO_ESRVDIR

  • EGO_LIBDIR

  • EGO_LOCAL_CONFDIR

  • EGO_SERVERDIR

  • EGO_TOP

See the enterprise grid orchestrator Reference for more information about these variables.

See the LSF Configuration Reference for more information about cshrc.lsf and profile.lsf.