SAS9 on Linux Quick Start Guide
Welcome to the SAS Enterprise Session Monitor Quick Start guide for SAS 9. In this tutorial you will complete a basic SAS Enterprise Session Monitor installation, including integration with a SAS 9 deployment on a Linux system.
Before you begin¶
A SAS Enterprise Session Monitor deployment is completed in three stages:
We must always complete our installations in this order because each stage, apart from the Server component installation, has a dependency on the previous stage.
Before you begin, you should ensure that your system meets the minimum system requirements:
Step 1: Download and Install the Server¶
- Download the latest version1 of the Server component to the machine where you want to run the Server from. The installation packages come as either
esm-server-linux-<version>.tar.gz
oresm-server-win-<version>.zip
depending on whether you are installing on Linux or Windows2. - Unpack the archive to a suitable temporary location. When extracted, it will create a new folder called "esm-server-installer".
tar xzf ./esm-server-linux-<version>.tar.gz -C /pub/esm
-
Change directory to the destination of the unpacked installation package and execute the
setup.sh
script to start the SAS Enterprise Session Monitor Server installation wizard.cd /pub/esm/esm-server-installer/ ./setup.sh
-
The SAS Enterprise Session Monitor Server installation wizard will now start. We can accept the defaults for all options but you will want to make note of or consider changing the following:
-
The
esm-server
install path: This the location where the installation wizard will deploy the Server in a folder calledesm-server
. On Linux, the default is the home directory of the executing user and on Windows the default isC:\esm
. -
The SAS Enterprise Session Monitor admin settings username and password: This is the default administrative account for your installation. It is the username/and password that we will use to access the UI.
-
Once the installation wizard has completed, and after about 30 seconds, the Enterprise Session Monitor UI will become available at: http://
:18080/esm/ . When you successfully login to the application for the first time, it will prompt you for a license key. You can find this in the email that was sent be SAS Licensing Operations.
Step 2: Download and Install the Agent¶
Elevated Permissions Required
In order to be able to install the Agent, elevated permissions are needed on all platforms. On Linux systems, this can either be with direct access to the root
account, or with sudo
.
-
Download the latest version1 of the Agent component to the machine where you want to run the Server from. The installation packages come as either
esm-agent-linux-<version>.tar.gz
oresm-agent-win-<version>.zip
depending on whether you are installing on Linux or Windows2. -
Unpack the archive to a suitable temporary location. When extracted, it will create a new folder called "esm-agent-installer".
tar xzf ./esm-agent-linux-<version>.tar.gz -C /pub/esm
-
Change directory to the destination of the unpacked installation package and execute the
setup.sh
script to start the SAS Enterprise Session Monitor Agent installation wizard.cd /pub/esm/esm-agent-installer/ sudo ./setup.sh
-
The SAS Enterprise Session Monitor Agent installation wizard will now start. We can accept the defaults for all options but you will want to make note of or consider changing the following:
-
The Server hostname/IP address: The Agent installation wizard will prompt for the hostname or IP address of the Server machine. As part of the installation process, the Agent will check connectivity to the Server. If a connection cannot be made, the installation wizard will exit.
- The Agent install path: This the location where the installation wizard will deploy the Agent in a folder called
esm-agent
. On Linux, the default is the home directory of the executing user and on Windows the default isC:\esm
. You must change this to a location that will be accessible to all users.
Step 3: Integrate with SAS¶
-
Copy and paste the below code block into the
sasenv_local
file of your SAS installation (for example,/sas/SASFoundation/9.4/bin/sasenv_local
) updating the value of theESMHOME
variable to the location of your SAS Enterprise Monitor Agent.# ESM CONFIG START export ESMACTIVE=1 export ESMHOME=/path/to/esm-agent if [ -f $ESMHOME/bin/esm-bootstrap.sh ]; then . $ESMHOME/bin/esm-bootstrap.sh fi # ESM CONFIG END
-
Update line 9 of
/path/to/esm-agent/bin/esm-bootstrap.sh
by adding a semi-colon separated list of any additional SAS application server contexts that exist in your deployment.
Congratulations! You have completed a basic installation and configuration of SAS Enterprise Session Monitor. You've deployed and tested the UI of the Server, installed the Agent, and configured SAS to tell ESM about every session that starts. If you start using SAS, you will see your sessions appear in the Live View of the UI.
If you're looking for some next steps or some more advance configuration options, perhaps consider looking at:
- How to collect job Flow and exit status information
- How to track per-session UTILLOC size
- How to capture SAS procedures and Dataset access events
- How to monitor SAS infrastructure services like the Metadata Server or Object Spawner
Created: April 24, 2023