This document provides the procedure for updating Google Chrome and Microsoft Edge browser components in Classic Gateway (20.x.x, 21.x.x and 22.x.x) versions. Follow the applicable procedure to apply the updated browser components.
You can update the Chrome and Edge packages using one of the following methods:
- Method 1: Using OpsRamp Agent Remote Script (Recommended)
- Method 2: Manual Execution
Method 1: Using OpsRamp Agent Remote Script
- Navigate to Automation > Scripts v2.
- Create a Script Category (Global, Partner-specific, or Client-specific).
- Click the Add to create a new script. Provide the following script details:
- Name: Example- Chrome and Edge Package Upgrade
- Description: Patch script to update Chrome and Edge
- Execution Time: 60 seconds
- Platform: Linux
- Paste this following script in the script content:
#!/bin/bash set -ex if [ "$(id -u)" -ne 0 ]; then echo "This script must be run as root: sudo $0" exit 1 fi WORKDIR="/tmp" PATCH_ARCHIVE="chrome_edge-158.0-manualpatch.tar.gz" PATCH_FOLDER="chrome_edge-158.0_patch" S3_URL="https://nexus-qa.opsramp.net/repository/opsramp-content/content/chrome_edge/158.0/$PATCH_ARCHIVE" cd "$WORKDIR" || { echo "Error: unable to access $WORKDIR"; exit 1; } # Clean any previous run so no stale files are reused rm -rf "$PATCH_FOLDER" "$PATCH_ARCHIVE" # Download the patch bundle wget -q "$S3_URL" || { echo "Error: failed to download $S3_URL"; exit 1; } mkdir -p "$PATCH_FOLDER" || { echo "Error: unable to create $PATCH_FOLDER"; exit 1; } tar -xzf "$PATCH_ARCHIVE" -C "$PATCH_FOLDER" || { echo "Error: failed to extract $PATCH_ARCHIVE"; exit 1; } cd "$PATCH_FOLDER" || { echo "Error: unable to access $PATCH_FOLDER"; exit 1; } if [ -f build.sh ]; then bash build.sh || { echo "Error: build.sh failed"; exit 1; } else echo "Error: build.sh not found in $PATCH_FOLDER" exit 1 fi - Save the script
- Schedule the script execution:
- Select the script
- Click
Schedule(right panel) - Fill in details:
- Schedule Name
- Target Resource(s)
- Schedule Type:
One-time
- Click Save.
- Run the Scheduled Script from the Scheduled Script section.
- Review Execution Logs from the right-side panel for the status.
Method 2: Manual Execution
Use this if Agent based execution isn’t possible.
Prerequisites
- Access to the gateway system
- Appropriate user credentials
Steps for Manual Execution:
- Login to Gateway using:
ruser - Take root access by using the following command and enter password:
sudo su -3. Run the following command to change directory:cd /tmp/4. Download the Patch File:- Using patch link: https://nexus-qa.opsramp.net/repository/opsramp-content/content/chrome_edge/158.0/chrome_edge-158.0-manualpatch.tar.gz
- Or using command:
wget https://nexus-qa.opsramp.net/repository/opsramp-content/content/chrome_edge/158.0/chrome_edge-158.0-manualpatch.tar.gz
- Untar the downloaded file using the following command:
tar -xvzf chrome_edge-158.0-manualpatch.tar.gz6. Run the script using the following commands:sh build.sh7. Run the following command to Verify the installed package versions:dpkg -l | grep chrome
dpkg -l | grep edge
google-chrome --version
microsoft-edge --version
chromedriver --version
msedgedriver --versionExpected Versions:
| Package | Expected Version |
|---|---|
| Google Chrome | 158.0.8127.88 |
| Microsoft Edge | 158.0.4370.45 |
| Chrome Driver | 158.0.8127.88 |
| Edge Driver | 158.0.4370.45 |