From bc95ef693a69782900eb9d8d6f23c5fec802ccb9 Mon Sep 17 00:00:00 2001 From: jblu Date: Fri, 5 Aug 2022 10:34:20 -0500 Subject: [PATCH] added additional scripts --- .../REST-Basic-Connection-Template.ps1 | 0 .../REST API/REST-Get-Server-Information.ps1 | 0 powershell/REST API/REST-testing.ps1 | 0 powershell/reconnect_arm.ps1 | 132 ++++++++++++++++++ python/REST API/REST-connection.py | 0 python/REST API/REST-move-user.py | 0 python/eftcom-getusedspace.py | 0 7 files changed, 132 insertions(+) mode change 100644 => 100755 powershell/REST API/REST-Basic-Connection-Template.ps1 mode change 100644 => 100755 powershell/REST API/REST-Get-Server-Information.ps1 mode change 100644 => 100755 powershell/REST API/REST-testing.ps1 create mode 100644 powershell/reconnect_arm.ps1 mode change 100644 => 100755 python/REST API/REST-connection.py mode change 100644 => 100755 python/REST API/REST-move-user.py mode change 100644 => 100755 python/eftcom-getusedspace.py diff --git a/powershell/REST API/REST-Basic-Connection-Template.ps1 b/powershell/REST API/REST-Basic-Connection-Template.ps1 old mode 100644 new mode 100755 diff --git a/powershell/REST API/REST-Get-Server-Information.ps1 b/powershell/REST API/REST-Get-Server-Information.ps1 old mode 100644 new mode 100755 diff --git a/powershell/REST API/REST-testing.ps1 b/powershell/REST API/REST-testing.ps1 old mode 100644 new mode 100755 diff --git a/powershell/reconnect_arm.ps1 b/powershell/reconnect_arm.ps1 new file mode 100644 index 0000000..781c1cd --- /dev/null +++ b/powershell/reconnect_arm.ps1 @@ -0,0 +1,132 @@ +# You can write debug, error, verbose, info etc messages. +# They will appear in EFT.log +# +# Make sure that PowerShell doesn't skip messages +# $DebugPreference = "Continue" +# $VerbosePreference = "Continue" +# +# You can access all EFT context variables via $EFT_CONTEXT +# +# Get context variable and output it to debug log: +# write-debug $EFT_CONTEXT.GetVariable("SITE.NAME") +# +# Create a new context variable +# $EFT_CONTEXT.SetVariable("custom_variable", "this a custom variable") +# +# Modify a context variable +# $EFT_CONTEXT.SetVariable("custom_variable", "this is a modified value"); +<# +.SYNOPSIS + Use EFT's COM interface to configure ARM settings for auditing and reporting. + +.DESCRIPTION + Use EFT's COM interface to check status of ARM and reconnect if needed + +.PARAMETER serverName + +.PARAMETER eftAdminPort + +.PARAMETER authMethod + +.PARAMETER eftAdminName + +.PARAMETER eftAdminPassword + +#> + +param( + [Parameter(Mandatory=$False)][string]$serverName = "localhost", + [Parameter(Mandatory=$False)][int]$eftAdminPort = 1100, + [Parameter(Mandatory=$False)][int]$authMethod = 1, + [Parameter(Mandatory=$False)][string]$eftAdminName = "", + [Parameter(Mandatory=$False)][string]$eftAdminPassword = "" +) +#------------------------------------------------------------ +# Setup logging to a file +#------------------------------------------------------------ +#Output