You can update the package 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 Package Upgrade
- Description: Patch script to update Chrome
- Execution Time: 60 seconds
- Platform: Linux
Paste this following script in the script content:
#!/bin/bash set -ex WORKDIR="/tmp" PATCH_ARCHIVE="2202_manual_patch.tar.gz" PATCH_FOLDER="2202patch" S3_URL="https://opsramp-gateway.s3.us-east-2.amazonaws.com/patching/ManualPatch/2202/$PATCH_ARCHIVE" cd "$WORKDIR" # Clean any previous run so no stale files are reused rm -rf "$PATCH_FOLDER" "$PATCH_ARCHIVE" # Download the patch bundle wget -q "$S3_URL" mkdir -p "$PATCH_FOLDER" tar -xzf "$PATCH_ARCHIVE" -C "$PATCH_FOLDER" cd "$PATCH_FOLDER" if [ -f build.sh ]; then sh build.sh else echo "Error: build.sh not found in $PATCH_FOLDER" exit 1 fiSave 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.
To get the script version :
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://opsramp-gateway.s3.us-east-2.amazonaws.com/patching/ManualPatch/2202/2202_manual_patch.tar.gz
- Or using command:
wget https://opsramp-gateway.s3.us-east-2.amazonaws.com/patching/ManualPatch/2202/2202_manual_patch.tar.gz
- Untar the downloaded file using the following command:
tar -xvzf 2202_manual_patch.tar.gz6. Run the script using the following commands:sh build.sh7. Run the following command to verify the installed package versions:google-chrome --version
microsoft-edge --version
uname -rNote: Reboot is required to apply the latest kernel version.
Expected Versions:
| Package | Expected Version |
|---|---|
| On-Prem Kernels | 7.0.0-38.38 |
| Google Chrome | 155.0.8059.79 |
| Chrome Driver | 155.0.8059.79 |
| Microsoft Edge | 155.0.4283.60 |
| Edge WebDriver | 155.0.4283.60 |