From 551b9f1c6929f7b7c5d290efdd28b3faae06f84c Mon Sep 17 00:00:00 2001 From: fortran01 Date: Thu, 23 Mar 2023 16:11:08 -0400 Subject: [PATCH] Create sample wrapper scripts --- windows/run_cpu_util.ps1 | 11 +++++++++++ windows/run_tidal_tools.ps1 | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 windows/run_cpu_util.ps1 create mode 100644 windows/run_tidal_tools.ps1 diff --git a/windows/run_cpu_util.ps1 b/windows/run_cpu_util.ps1 new file mode 100644 index 0000000..8d11f08 --- /dev/null +++ b/windows/run_cpu_util.ps1 @@ -0,0 +1,11 @@ +# Sample wrapper for capturing time-series CPU utilization data +# and sending it to the Tidal Accelerator Platform +c:\machine_stats\windows\runner.ps1 ` +-UserName Administrator ` +-ServersPath "c:\machine_stats\windows\servers.txt" ` +-ServerStatsPath "c:\machine_stats\windows\server_stats.ps1" ` +-SecurePwdFilePath "c:\machine_stats\windows\SecuredText.txt" ` +-CpuUtilizationTimeout 1 ` +-CpuUtilizationOnlyValue ` +-Measurements ` +| tidal request -X POST /api/v1/measurements/import diff --git a/windows/run_tidal_tools.ps1 b/windows/run_tidal_tools.ps1 new file mode 100644 index 0000000..6515654 --- /dev/null +++ b/windows/run_tidal_tools.ps1 @@ -0,0 +1,8 @@ +# Sample wrapper for gathering machine statistics (RAM, storage, CPU, etc) +# and sending them to the Tidal Accelerator Platform +c:\machine_stats\windows\runner.ps1 ` +-UserName Administrator ` +-ServersPath "c:\machine_stats\windows\servers.txt" ` +-ServerStatsPath "c:\machine_stats\windows\server_stats.ps1" ` +-SecurePwdFilePath "c:\machine_stats\windows\SecuredText.txt" ` +| tidal sync servers