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:
-
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
-
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.
-
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
-
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
-
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
-
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
-
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
-
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
-
Repeat steps 2 through
8 for all grid mode machines.
-
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.