Skip to main content

Configuration overview

Theme: Overview
Who Is It For? System Administrator

What is it?

This section covers the configuration tasks required to make the Unix Agent operational after installation. It includes guidance on editing the agent configuration file and control scripts, setting up security controls, configuring the time zone and automatic startup, running multiple agent instances, and preparing the environment for job execution. System administrators who have completed installation and need to configure the agent for their environment should start here.

When would you use this section?

  • You have completed installation and need to configure the Unix Agent before placing it into production.
  • You need to update the agent or SMAFT control script variables after running the installation script.
  • You want to restrict which users are permitted to run jobs by configuring security allow lists or block lists.
  • You need to configure the agent to start and stop automatically when the system boots or shuts down.
  • You are setting up multiple Unix Agent instances on a single machine.
  • You need to understand script formatting requirements, environment variable loading, or STDOUT redirection behavior for jobs.
  • You need to enable TLS-secured communication between the agent and OpCon.

What is in this section?

TopicDescription
Unix Agent configurationOverview of the configuration steps required to set up the Unix Agent, including the control script, configuration file, and root profile.
Unix Security Configuration OptionsReference for configuring black list and white list security settings in the Unix Agent to control which users are permitted to run jobs.
Agent Configuration FileStep-by-step instructions for modifying the Unix Agent configuration file using the agent configuration program.
Updating the agent Control ScriptReference and procedures for reviewing and editing the Unix Agent control script variables, including LSAM_ROOT, SAM_SOCKET, and PATH, after running the install_lsam installation script.
Updating the SMA File Transfer (SMAFT) Control ScriptReference and procedures for reviewing and editing the SMAFT control script variables to ensure they match the Unix Agent control script settings.
Configuring the Time Zone in the Root ProfileInstructions for setting the TZ environment variable in the root profile or agent startup script to ensure the Unix Agent uses the correct time zone.
Automatic Startup Configuration for the agentInstructions for configuring the Unix Agent to start and stop automatically during system boot and shutdown using symbolic links to init.d and rc directories.
Running Multiple agents on One MachineInstructions for simultaneously running multiple Unix Agent instances on a single system, covering environment variable configuration and OpCon machine registration for each instance.
UNIX Script RequirementsReference for the script formatting rules that OpCon jobs run by the Unix Agent must follow, including shell invocation, child process handling, and exit codes.
Loading Environment VariablesInstructions for using SMA Technologies-provided setup scripts and the userinfo program to load a user's operating environment before the Unix Agent runs a job.
Redirecting STDOUTReference for redirecting STDOUT output from Unix Agent jobs, including use of the captureSTDOUT script and behavior differences based on the path_to_su parameter.
UNIX TLS Security ProceduresProcedures for enabling and configuring TLS-secured communication between the Unix Agent and OpCon/SAM, including certificate creation and lsam.conf file changes.

Frequently asked questions

How do I change a configuration setting?
Use the agent configuration program — never edit lsam.conf directly. Run lsam<SAM_Socket> config to open the interactive configuration menu, make your changes, and save. Then run lsam<SAM_Socket> refresh to apply changes to the running agent without a full restart. If the change affects a process other than sma_lsam or sma_JORS (for example, sma_fad), restart the agent instead.

What is the difference between LSAM_ROOT and SMA_LSAM_INSTANCE?
LSAM_ROOT is the path to the agent installation directory (for example, /usr/local/lsam). SMA_LSAM_INSTANCE is a label that identifies a specific agent instance running under that installation and determines the subdirectory name used for configuration and log files under LSAM_ROOT/config/ and LSAM_ROOT/log/. Multiple instances can share the same LSAM_ROOT but must each have a unique SMA_LSAM_INSTANCE and a unique SAM_SOCKET.

Should I use path_to_su set to yes or no?
Setting path_to_su to yes causes the agent to use su - to impersonate users, which loads the user's full login profile and group list. Setting it to no uses the legacy impersonation method without loading the profile. Use yes for most modern environments. Use no on platforms — such as Jack Henry AIX/Episys — where the login profile contains interactive commands that fail when run without a console. Refer to Agent Configuration Parameters for the full discussion.

How do I allow only specific IP addresses to connect to the agent?
Set allowed_sam_ip_address_1 through allowed_sam_ip_address_5 in lsam.conf to the IP addresses of the SMANetCom instances that are permitted to connect. The agent will reject connections from any address not in the list. Refer to TCP/IP Configuration Parameters for full details.

What happens if the agent certificate expires?
When the TLS certificate expires, the TLS handshake fails and communication between the agent and OpCon stops. Use lsam<SAM_Socket> show_cert <file> to check the expiration date, and lsam<SAM_Socket> create_cert <days> to generate a new self-signed certificate. Update the lsam_pem_file and lsam_private_key_file entries in lsam.conf and restart the agent.