From f22cdf6b93bf7b3d1239b431b7fe26604d7a2db4 Mon Sep 17 00:00:00 2001 From: halenius <77324501+halenius@users.noreply.github.com> Date: Sun, 17 Oct 2021 15:32:15 +0300 Subject: [PATCH] Delete Acceleration directory --- .../Capture-SHMobileInterfacesTrace.ps1 | 56 ------------------- Acceleration/Check-SHMobileStatus.ps1 | 46 --------------- Acceleration/Clear-SHMobileStats.ps1 | 47 ---------------- Acceleration/Disable-SHMobileOptimization.ps1 | 50 ----------------- Acceleration/Enable-SHMobileOptimization.ps1 | 50 ----------------- 5 files changed, 249 deletions(-) delete mode 100644 Acceleration/Capture-SHMobileInterfacesTrace.ps1 delete mode 100644 Acceleration/Check-SHMobileStatus.ps1 delete mode 100644 Acceleration/Clear-SHMobileStats.ps1 delete mode 100644 Acceleration/Disable-SHMobileOptimization.ps1 delete mode 100644 Acceleration/Enable-SHMobileOptimization.ps1 diff --git a/Acceleration/Capture-SHMobileInterfacesTrace.ps1 b/Acceleration/Capture-SHMobileInterfacesTrace.ps1 deleted file mode 100644 index 25bd56e..0000000 --- a/Acceleration/Capture-SHMobileInterfacesTrace.ps1 +++ /dev/null @@ -1,56 +0,0 @@ -<# -.Synopsis - Aternity - Remediation Script: Capture-SHMobileInterfacesTrace -.DESCRIPTION - Launch a network capture on the SteelHead Mobile agent - - References: - * https://www.aternity.com - * https://help.aternity.com/search?facetreset=yes&q=remediation - -.EXAMPLE - Deploy in Aternity (Configuration > Remediation > Add Action) - Action Name: Capture-SHMobileInterfacesTrace - Description: Launch a network capture on the SteelHead Mobile agent - Run the script in the System account: checked -#> - -try -{ - # Load Agent Module - Add-Type -Path $env:STEELCENTRAL_ATERNITY_AGENT_HOME\ActionExtensionsMethods.dll - - #region Remediation action logic - - # Add your remediation code here and set the variable $result with the Output Message to be visible visible in Aternity's dashboards. - # - # For example: - # Clear-DnsClientCache - # $result="DNS Cache Cleared" - -# Parameters -$duration = "120s" - -# Check if rbtdebug is installed. Default install path is "C:\Program Files (x86)\Riverbed\Steelhead Mobile\" -Get-Command rbtdebug.exe -ErrorAction Stop - -if (Get-Process rbtdebug -ErrorAction SilentlyContinue) { - throw "Cannot start if rbtdebug is already running." -} - -#preparation -$timestamp = $(Get-Date -Format "yyMMddHHmmss") -$traceFileName = "Trace-$timestamp" - -# Capture trace -rbtdebug.exe --trace-all $duration $traceFileName - - #endregion - - # Set Output message - [ActionExtensionsMethods.ActionExtensionsMethods]::SetScriptOutput($result) -} -catch -{ - [ActionExtensionsMethods.ActionExtensionsMethods]::SetFailed($_.Exception.Message) -} diff --git a/Acceleration/Check-SHMobileStatus.ps1 b/Acceleration/Check-SHMobileStatus.ps1 deleted file mode 100644 index 14aaf93..0000000 --- a/Acceleration/Check-SHMobileStatus.ps1 +++ /dev/null @@ -1,46 +0,0 @@ -<# -.Synopsis - Aternity - Remediation Script: Check-SHMobileStatus -.DESCRIPTION - Check the status and stats of the SteelHead mobile agent - - References: - * https://www.aternity.com - * https://help.aternity.com/search?facetreset=yes&q=remediation - -.EXAMPLE - Deploy in Aternity (Configuration > Remediation > Add Action) - Action Name: Check-SHMobileStatus - Description: Check the status and statistics of the SteelHead mobile agent - Run the script in the System account: checked - Requires confirmation: No -#> - -try -{ - # Load Agent Module - Add-Type -Path $env:STEELCENTRAL_ATERNITY_AGENT_HOME\ActionExtensionsMethods.dll - - #region Remediation action logic - - # Add your remediation code here and set the variable $result with the Output Message to be visible visible in Aternity's dashboards. - # - # For example: - # Clear-DnsClientCache - # $result="DNS Cache Cleared" - -Get-Command rbtdebug.exe -ErrorAction Stop - -#Default install path is "C:\Program Files (x86)\Riverbed\Steelhead Mobile\" -$result = rbtdebug.exe --status-all -$result += rbtdebug.exe --stats-all - - #endregion - - # Set Output message - [ActionExtensionsMethods.ActionExtensionsMethods]::SetScriptOutput($result) -} -catch -{ - [ActionExtensionsMethods.ActionExtensionsMethods]::SetFailed($_.Exception.Message) -} \ No newline at end of file diff --git a/Acceleration/Clear-SHMobileStats.ps1 b/Acceleration/Clear-SHMobileStats.ps1 deleted file mode 100644 index bc783c4..0000000 --- a/Acceleration/Clear-SHMobileStats.ps1 +++ /dev/null @@ -1,47 +0,0 @@ -<# -.Synopsis - Aternity - Remediation Script: Clear-SHMobileStats -.DESCRIPTION - Resets stats of the SteelHead mobile agent - - References: - * https://www.aternity.com - * https://help.aternity.com/search?facetreset=yes&q=remediation - -.EXAMPLE - Deploy in Aternity (Configuration > Remediation > Add Action) - Action Name: Clear-SHMobileStats - Description: Reset statistics of the SteelHead mobile agent - Run the script in the System account: checked - Requires confirmation: No -#> - -try -{ - # Load Agent Module - Add-Type -Path $env:STEELCENTRAL_ATERNITY_AGENT_HOME\ActionExtensionsMethods.dll - - #region Remediation action logic - - # Add your remediation code here and set the variable $result with the Output Message to be visible visible in Aternity's dashboards. - # - # For example: - # Clear-DnsClientCache - # $result="DNS Cache Cleared" - -# Check if rbtdebug is installed. Default install path is "C:\Program Files (x86)\Riverbed\Steelhead Mobile\" -Get-Command rbtdebug.exe -ErrorAction Stop - -rbtdebug.exe --clear-stats - -$result = rbtdebug.exe --stats-all - - #endregion - - # Set Output message - [ActionExtensionsMethods.ActionExtensionsMethods]::SetScriptOutput($result) -} -catch -{ - [ActionExtensionsMethods.ActionExtensionsMethods]::SetFailed($_.Exception.Message) -} \ No newline at end of file diff --git a/Acceleration/Disable-SHMobileOptimization.ps1 b/Acceleration/Disable-SHMobileOptimization.ps1 deleted file mode 100644 index 9b11a62..0000000 --- a/Acceleration/Disable-SHMobileOptimization.ps1 +++ /dev/null @@ -1,50 +0,0 @@ -<# -.Synopsis - Aternity - Remediation Script: Disable-SHMobileOptimization -.DESCRIPTION - Disable optimization on the SteelHead mobile agent - - References: - * https://www.aternity.com - * https://help.aternity.com/search?facetreset=yes&q=remediation - -.EXAMPLE - Deploy in Aternity (Configuration > Remediation > Add Action) - Action Name: Disable-SHMobileOptimization - Description: Disable optimization on the SteelHead mobile agent - Run the script in the System account: checked - Requires confirmation: No -#> - -try -{ - # Load Agent Module - Add-Type -Path $env:STEELCENTRAL_ATERNITY_AGENT_HOME\ActionExtensionsMethods.dll - - #region Remediation action logic - - # Add your remediation code here and set the variable $result with the Output Message to be visible visible in Aternity's dashboards. - # - # For example: - # Clear-DnsClientCache - # $result="DNS Cache Cleared" - -Get-Command rbtdebug.exe -ErrorAction Stop - -#Default install path is "C:\Program Files (x86)\Riverbed\Steelhead Mobile\" - -rbtdebug.exe --optimize disable - -Start-Sleep -Seconds 3 - -$result = rbtdebug.exe --status-all - - #endregion - - # Set Output message - [ActionExtensionsMethods.ActionExtensionsMethods]::SetScriptOutput($result) -} -catch -{ - [ActionExtensionsMethods.ActionExtensionsMethods]::SetFailed($_.Exception.Message) -} \ No newline at end of file diff --git a/Acceleration/Enable-SHMobileOptimization.ps1 b/Acceleration/Enable-SHMobileOptimization.ps1 deleted file mode 100644 index 9a83d32..0000000 --- a/Acceleration/Enable-SHMobileOptimization.ps1 +++ /dev/null @@ -1,50 +0,0 @@ -<# -.Synopsis - Aternity - Remediation Script: Enable-SHMobileOptimization -.DESCRIPTION - Enable optimization on the SteelHead mobile agent - - References: - * https://www.aternity.com - * https://help.aternity.com/search?facetreset=yes&q=remediation - -.EXAMPLE - Deploy in Aternity (Configuration > Remediation > Add Action) - Action Name: Enable-SHMobileOptimization - Description: Enable optimization on the SteelHead mobile agent - Run the script in the System account: checked - Requires confirmation: No -#> - -try -{ - # Load Agent Module - Add-Type -Path $env:STEELCENTRAL_ATERNITY_AGENT_HOME\ActionExtensionsMethods.dll - - #region Remediation action logic - - # Add your remediation code here and set the variable $result with the Output Message to be visible visible in Aternity's dashboards. - # - # For example: - # Clear-DnsClientCache - # $result="DNS Cache Cleared" - -Get-Command rbtdebug.exe -ErrorAction Stop - -#Default install path is "C:\Program Files (x86)\Riverbed\Steelhead Mobile\" - -rbtdebug.exe --optimize enable - -Start-Sleep -Seconds 3 - -$result = rbtdebug.exe --status-all - - #endregion - - # Set Output message - [ActionExtensionsMethods.ActionExtensionsMethods]::SetScriptOutput($result) -} -catch -{ - [ActionExtensionsMethods.ActionExtensionsMethods]::SetFailed($_.Exception.Message) -} \ No newline at end of file