Upgrade installation
What is it?
An upgrade moves an existing SAP Agent install to a newer release while preserving its configuration. You drain SAP work from the agent, stop the services, optionally uninstall the previous version, run the new installer, and restart the services so OpCon can resume submitting SAP work to the agent.
Before you begin
| Check | Why it matters |
|---|---|
| Read the Release notes for the target version | Some versions introduce required behavior changes (see the version notes below). |
| Capture the Log on as account and password for each service | The installer does not migrate this; you reapply it after the install. |
| If multiple agents run on the same host, plan to repeat per instance | See Multiple instances for the per-instance procedure. |
| Confirm where SAPLSAM.ini lives | The installer asks you to point at the previous install directory so settings can be migrated. |
Version notes
As of Release 19.1.0, the SAP Agent acts as the SAP system proxy. Before 19.1.0, this proxy lived in the OpCon server, which no longer provides the functionality.
Customers who run a SAP Agent must upgrade their agents to 19.1.0 when they install OpCon 19.1.0 so that the SAP proxy functionality is available.
With Release 16.1, the SAP Agent was converted from 32-bit to 64-bit.
- To keep the previous install location: uninstall the 32-bit version first, then install the 64-bit version.
- To install side by side: install the 64-bit version to a new location; the 32-bit version is unaffected.
Upgrading the base instance automatically removes additional instances. Run the SAP Agent installation again, once per instance, after the base install completes.
High-level steps
| Phase | What you do | Goes to |
|---|---|---|
| 1 | Drain SAP work and stop the agent's two services | Stop running work and services |
| 2 | (Optional) Uninstall the previous SAP Agent if reusing the install location | Remove the SAP Agent |
| 3 | Run the installer for the new version | Run the installer |
| 4 | (Optional) Delete the old install directory after verifying the upgrade | Delete the old SAP Agent directory |
| 5 | Restart services and resume communication | Restart and resume communication |
| 6 | Verify the upgrade | Verify the upgrade |
Stop running work and services
Before running the installer, drain SAP work from the agent and stop both services. Repeat this phase for each agent instance on the host.
Drain SAP work from the agent
To drain SAP work, complete the following steps:
-
Open Machines Status under the Operation topic. The Machines Status screen displays.
-
Confirm Running Jobs is
0/<max>for the SAP machine. -
If running jobs exist, contact the OpCon administrator to choose one of the following:
Option What happens Wait for the processes to end Jobs finish naturally. Recheck Running Jobs until it shows 0/<max>.Kill the processes on the SAP side See Kill command. Recheck Running Jobs after each kill. -
Right-click the machine and select Stop Communication from the menu.
Stop the agent and JORS services
To stop both services, complete the following steps:
-
On the Application server, go to Start > Administrative Tools > Server Manager. The Administrative Tools window displays.
-
Expand (+) the Configuration option.
-
Select the Services entry. The Services window displays.
-
Stop each service in the order shown:
# Service Action 1 SMA OpCon Agent for SAP Select the service, then go to Action > Stop. Confirm Status is Stopped. 2 SMA OpCon JORS for SAP Select the service, then go to Action > Stop. Confirm Status is Stopped. -
Close the Services window.
-
Repeat this procedure for each instance of the agent on the machine.
Remove the SAP Agent
Skip this phase unless you are upgrading from the 32-bit version and want to reuse the same install location. Go to Run the installer.
To remove the SAP Agent, complete the following steps:
-
Go to Start > Control Panel. The Control Panel window opens.
-
Open the Programs and Features entry. The Programs and Features window displays.
-
Select the SMA Agent for SAP program.
-
Take the action that matches your install:
Install Action Single instance Select Uninstall in the toolbar. The uninstall runs automatically. Multiple instances Select Change in the toolbar and continue with the wizard below. -
(Multiple instances only) Walk through the Change wizard:
# Screen What to do 1 Welcome Select Next. 2 Program Maintenance Select the Remove radio button. Select Next. 3 Remove the Program Select Remove. If the wizard prompts for a reboot, accept and restart when the wizard finishes. 4 InstallShield Wizard Completed Select Finish.
Run the installer
The OpCon installer is a standard InstallShield wizard. The first three steps below get you to the wizard; the table after lists every screen and what to do on each. The upgrade flow differs from a new install at one screen — Select Path for File Migration to ProgramData — where you point the installer at your previous install directory so its settings are migrated forward.
Launch the installer
To launch the installer, complete the following steps:
- On the machine requiring the SAP Agent, log on as a Windows user with Local Administrative Rights.
- Exit all running applications on the desktop (including OpCon applications).
- Run setup.exe from the root of the OpCon installation media.
The Choose Setup Language screen displays.
Walk through the wizard screens
For each screen the wizard shows, take the action in the table below. The File Migration to ProgramData row is what makes this an upgrade rather than a new install.
| # | Screen | What to do |
|---|---|---|
| 1 | Choose Setup Language | Select the language and select Next. |
| 2 | Welcome | Select Next. |
| 3 | Select Components | Select SMA OpCon Agents > SMA OpCon Agent for SAP. Select Install. |
| 4 | Welcome (component installer) | Select Next. |
| 5 | Destination Folder | Change the target location or retain the default. Select Next. |
| 6 | Configure Instance Name | (Optional) Enter a unique instance name. Select Next. |
| 7 | Select Path for File Migration to ProgramData | Browse to the previous install directory so the installer can migrate existing configuration files. Select Next. |
| 8 | Select Path for Output Files | Change the output directory or retain the default. Select Next. |
| 9 | Configure Ports | Change the values or retain the defaults. Select Next. |
| 10 | Setup Type | Select Complete or Custom. Select Next. (For Custom, the Custom Setup screen displays next; otherwise the wizard skips it.) |
| 11 | Ready to Install the Program | Select Install. |
| 12 | InstallShield Wizard Completed | Select Finish. |
Reapply the service Log on as account
After the installer finishes, reapply the Log on as account you captured in Before you begin. See Change the Log on as account.
If the install fails, the installer writes SMA_OpCon_SAP_LSAM_Install.log to the Windows directory. Open that file first.
Delete the old SAP Agent directory
After the install completes and you have verified your upgraded environment, you can delete the previous SAP Agent directory.
Only delete the old directory after Verify the upgrade succeeds — the previous directory is your fastest rollback if the new install does not work.
To delete the old SAP Agent directory, complete the following steps:
- Right-click the Start button.
- Select Explore from the menu.
- Browse to the old SAP Agent directory in the explorer window.
- Select the "0" folder.
- Go to File > Delete.
- Select OK to Confirm File Delete.
- Close the Explorer window.
Restart and resume communication
After the install completes and the Log on as account is reapplied, restart the services and tell OpCon to resume communication with the agent.
Restart the agent service
To restart the agent service, complete the following steps:
- On the Application server, go to Start > Administrative Tools > Server Manager. The Administrative Tools window displays.
- Expand (+) the Configuration option.
- Select the Services entry. The Services window displays.
- In the Services list, select SMA OpCon Agent for SAP.
- Go to Action > Start.
- Confirm the Service's Status is Started.
Repeat for SMA OpCon JORS for SAP so output retrieval is also available. See Managing the SAP Agent for the full start procedure.
Start communication with the SAP Agent
To start communication, complete the following steps:
- Open Machines Status under the Operation topic. The Machines Status screen displays.
- Right-click the machine and select Start Communication from the menu.
Verify the upgrade
To confirm the upgrade succeeded:
- In the Windows Services console, confirm both SMA OpCon Agent for SAP and SMA OpCon JORS for SAP are running.
- In the Machines Status view in the Enterprise Manager, confirm the SAP machine reports communication is up.
- In the agent log (
SAPLSAM.logunder the Output Directory), confirm the agent connected to SAP and the version number matches the upgrade target. See Logging for log locations. - Submit a low-impact test job to confirm end-to-end job execution.
If any of the four checks fail, see the FAQs below or Configuration file to verify your SAPLSAM.ini settings.
FAQs
Do I need to uninstall the existing SAP Agent before upgrading? Only if you are upgrading from the 32-bit version and want to keep the same install location. Otherwise, install the new version to a different location and the previous install is unaffected.
What changed in 19.1.0 that requires the agent to be upgraded? As of 19.1.0, the SAP Agent itself acts as the SAP system proxy. The OpCon server no longer provides that functionality, so customers running a SAP Agent must upgrade to 19.1.0 when they install OpCon 19.1.0.
What happens to additional instances during an upgrade from release 5.20? Upgrading the base instance automatically removes additional instances. Run the SAP Agent installation once per instance after the base install completes.
Where can I find the installer log if the upgrade fails?
SMA_OpCon_SAP_LSAM_Install.log is written to the Windows directory by the installer.
Why does the upgrade procedure prompt for the previous install path? The Select Path for File Migration to ProgramData screen tells the installer where your previous install directory is so existing configuration files (including SAPLSAM.ini) are migrated forward. On a new install you would select Skip here; on an upgrade you point it at the previous directory.
What if I forget to capture the Log on as account before upgrading? The installer does not migrate the Log on as credentials. If you don't have them, the agent service will fail to start under a domain account after the upgrade. Recover the credentials from your password manager or your domain administrator before completing the upgrade.
Can I run the new agent and the old install side by side temporarily? Yes — install the new version to a different directory. The previous install is unaffected and can be removed later via Delete the old SAP Agent directory once the upgrade is verified.