Installing and Configuring SAS Environment Manager in a Grid Environment

If you are installing SAS Environment Manager in a grid environment where more than one grid machines share a configuration directory, you must perform manual configuration steps so that the SAS Environment Manager agents point to the correct machine. A script is available on support.sas.com to automate this process. The manual steps are provided below.
The following procedure is for two grid machines running on UNIX. Follow these steps:
  1. Stop the SAS Environment Manager agent running on the SAS Grid Control server.
    $SAS_config/Web/SASEnvironmentManager/agent-5.8.0-EE/bin/hq-agent.sh stop
  2. Create a target directory for the SAS Environment Manager agent on a grid node.
    mkdir -p $SAS_config/Web/SASEnvironmentManager/grid/$grid_node
    grid_node is the name of a grid node machine.
  3. Copy the agent directory structure from the SAS Grid Control server into the target directory on the grid node
    cp -pr $SAS_config/Web/SASEnvironmentManager/agent-5.8.0-EE 
    $SAS_config/Web/SASEnvironmentManager/grid/$grid_node
  4. Remove the agent data/ directory on the grid node machine.
    rm -rf $SAS_config/Web/SASEnvironmentManager/grid/$grid_node/agent-5.8.0-EE/data
  5. Create a backup of the agent property file on the grid node machine.
    mv $SAS_config/Web/SASEnvironmentManager/grid/$grid_node/agent-5.8.0-EE/conf/agent.properties 
    $SAS_config/Web/SASEnvironmentManager/grid/$grid _node/agent-5.8.0-EE/conf/agent.properties.orig
  6. Update the agent property file on the grid node machine.
     sed "s/^agent.setup.agentIP=.*/agent.setup.agentIP=$grid_host/" 
    $SAS_config/Web/SASEnvironmentManager/grid/$grid_node/agent-5.8.0-EE/conf/agent.properties.orig > 
    $SAS_config/Web/SASEnvironmentManager/grid/$grid_node/agent-5.8.0-EE/conf/agent.properties
  7. Create a backup of the SAS custom agent property on the grid node machine.
    mv $SAS_config/Web/SASEnvironmentManager/grid/$grid_node/agent-5.8.0-EE/conf/sas.properties 
    $SAS_config/Web/SASEnvironmentManager/grid/$grid_node/agent-5.8.0-EE/conf/sas.properties.orig
  8. Link the SAS custom agent property file to the original custom agent property file on the grid node machine.
    ln -s $SAS_config/Web/SASEnvironmentManager/agent-5.8.0-EE/conf/sas.properties 
    $SAS_config/Web/SASEnvironmentManager/grid/$grid_node/agent-5.8.0-EE/conf/sas.properties
  9. Repeat steps 2 through 8 for all grid mode machines.
  10. Start the SAS Environment Manager agent on the SAS Grid Control server.
    $SAS_config/Web/SASEnvironmentManager/agent-5.8.0-EE/bin/hq-agent.sh start
See Grid Computing in SAS for information about using SAS Environment Manager to monitor and control grid resources.