Skip to content

Commit

Permalink
Adding the configuration to server.psd1
Browse files Browse the repository at this point in the history
  • Loading branch information
tinuwalther committed May 20, 2023
1 parent ed4f654 commit 1950e7f
Show file tree
Hide file tree
Showing 8 changed files with 192 additions and 21 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
Version | Description | Date | Author
-|-|-|-
1.0.0 | Initial upload | 2023-05-19 | Martin Walther
1.0.1 | Fix ID in Layouts and Elements of cloud_esxi_tbl.ps1 and classic_esxi_tbl.ps1 | 2023-05-19 | Martin Walther
1.0.1 | Fix ID in Layouts and Elements | 2023-05-19 | Martin Walther
1.0.2 | Adding the configuration to server.psd1 | 2023-05-20 | Martin Walther
10 changes: 4 additions & 6 deletions bin/Start-PodeServer.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Requires -Modules Pode, Pode.Web, PSHTML, mySQLite
#Requires -Modules PsNetTools, PSHTML, Pode, Pode.Web, mySQLite
<#
.SYNOPSIS
Start Pode server
Expand Down Expand Up @@ -77,7 +77,7 @@ function Set-PodeRoutes {
New-PodeLoggingMethod -File -Name 'requests' -MaxDays 4 | Enable-PodeRequestLogging
New-PodeLoggingMethod -Terminal | Enable-PodeErrorLogging

Use-PodeWebTemplates -Title "PSXi App v$($script:version)" -Theme Auto
Use-PodeWebTemplates -Title "PSXi App v$((Get-PodeConfig).PSXiVersion)" -Theme Dark

Add-PodeRoute -Method Get -Path '/classic_ESXiHosts_diag' -ScriptBlock {
Write-PodeViewResponse -Path 'Classic-ESXiHost-Diagram'
Expand Down Expand Up @@ -309,10 +309,6 @@ if($PSVersionTable.PSVersion.Major -lt 6){
}
#endregion

$version = Get-Content (Join-Path $($PSScriptRoot -replace 'bin') -ChildPath 'CHANGELOG.md') | Select-String -Pattern '\d\.\d\.\d' | Select-Object -Last 1
$version | Out-Default
$script:version = $version.ToString().Substring(0,5)

#region Pode server
if($CurrentOS -eq [OSType]::Windows){
if(Test-IsElevated -OS $CurrentOS) {
Expand All @@ -321,6 +317,8 @@ if($CurrentOS -eq [OSType]::Windows){
Write-Host "Running on Windows with elevated Privileges since $(Get-Date)" -ForegroundColor Red
Write-Host "Press Ctrl. + C to terminate the Pode server" -ForegroundColor Yellow

Get-PodeConfig | Out-Default

# Initialize new SQLite database
$DBRoot = Join-Path $($PSScriptRoot).Replace('bin','pode') -ChildPath 'db'
$DBFullPath = Join-Path $DBRoot -ChildPath 'psxi.db'
Expand Down
37 changes: 37 additions & 0 deletions data/cloud_Datastores.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
vCenterServer;DatastoreFolder;DatastoreCluster;ClusterStatus;DatastoreName;Type;CapacityGB;FreeSpaceGB;Used
vcsa0100.cloud.ch;Prod;G-Prod-G;green;G_Prod_G_VMFS_01;VMFS;4096;3894;95%
vcsa0100.cloud.ch;Prod;G-Prod-G;green;G_Prod_G_VMFS_02;VMFS;4096;4070;99%
vcsa0100.cloud.ch;Int;G-Int-G;green;G_Int_G_VMFS_3;VMFS;4096;3550;87%
vcsa0100.cloud.ch;Int;G-Int-G;green;G_Int_G_VMFS_1;VMFS;4096;2683;66%
vcsa0100.cloud.ch;Int;G-Int-G;green;G_Int_G_VMFS_2;VMFS;4096;3006;73%
vcsa0100.cloud.ch;Prod;M-Prod-G;green;M_Prod_G_VMFS_105;VMFS;4096;1022;25%
vcsa0100.cloud.ch;Prod;M-Prod-G;green;M_Prod_G_VMFS_104;VMFS;4096;990;24%
vcsa0100.cloud.ch;Prod;M-Prod-G;green;M_Prod_G_VMFS_102;VMFS;4096;1022;25%
vcsa0100.cloud.ch;Prod;M-Prod-G;green;M_Prod_G_VMFS_103;VMFS;4096;1022;25%
vcsa0100.cloud.ch;Prod;M-Prod-G;green;M_Prod_G_VMFS_106;VMFS;4096;546;13%
vcsa0100.cloud.ch;Prod;M-Prod-G;green;M_Prod_G_VMFS_101;VMFS;4096;3596;88%
vcsa0100.cloud.ch;Prod;M-Prod-S;green;M_Prod_S_VMFS_153;VMFS;4096;4094;100%
vcsa0100.cloud.ch;Prod;M-Prod-S;green;M_Prod_S_VMFS_152;VMFS;4096;4093;100%
vcsa0100.cloud.ch;Prod;M-Prod-S;green;M_Prod_S_VMFS_154;VMFS;4096;4094;100%
vcsa0100.cloud.ch;Prod;M-Prod-S;green;M_Prod_S_VMFS_151;VMFS;4096;3820;93%
vcsa0100.cloud.ch;Dev;M-Int-G;green;M_Dev_G_VMFS_101;VMFS;4096;4093;100%
vcsa0100.cloud.ch;Dev;M-Int-G;green;M_Dev_G_VMFS_102;VMFS;4096;4092;100%
vcsa0100.cloud.ch;Dev;M-Int-S;green;M_Dev_S_VMFS_152;VMFS;4096;4075;99%
vcsa0100.cloud.ch;Dev;M-Int-S;green;M_Dev_S_VMFS_151;VMFS;4096;4094;100%
vcsa0100.cloud.ch;Prod;S-Prod-S;green;S_Prod_S_VMFS_52;VMFS;4096;4094;100%
vcsa0100.cloud.ch;Prod;S-Prod-S;green;S_Prod_S_VMFS_51;VMFS;4096;4094;100%
vcsa0100.cloud.ch;Int;S-Int-S;green;S_Int_S_VMFS_52;VMFS;4096;2848;70%
vcsa0100.cloud.ch;Int;S-Int-S;green;S_Int_S_VMFS_51;VMFS;4096;2786;68%
vcsa0100.cloud.ch;Int;S-Int-S;green;S_Int_S_VMFS_53;VMFS;4096;2590;63%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_008;VMFS;3072;1034;34%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_005;VMFS;3072;1059;34%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_002;VMFS;3072;652;21%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_009;VMFS;3072;659;21%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_006;VMFS;3072;1043;34%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_011;VMFS;3072;859;28%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_012;VMFS;3072;850;28%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_003;VMFS;3072;704;23%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_007;VMFS;3072;1060;35%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_001;VMFS;3072;827;27%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_004;VMFS;3072;659;21%
vcsa0023.cloud.ch;Prod;green;M_Prod_S_VMFS_010;VMFS;3072;654;21%
5 changes: 1 addition & 4 deletions data/cloud_ESXiHosts.csv
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ esxi567.cloud.ch;6.5.0;HP;ProLiant DL380p Gen8;vcsa21prd.cloud.ch;Airlock;Connec
esxi558.cloud.ch;6.5.0;HP;ProLiant DL380p Gen8;vcsa21prd.cloud.ch;Airlock;Connected;NORD
esxi557.cloud.ch;6.5.0;HP;ProLiant DL380p Gen8;vcsa21prd.cloud.ch;Airlock;Connected;OST
esxi568.cloud.ch;6.5.0;HP;ProLiant DL380p Gen8;vcsa21prd.cloud.ch;Airlock;Connected;NORD
esxi562.cloud.ch;6.5.0;Quanta Computer Inc;D51B-2U dual 1G LoM;vcsa21prd.cloud.ch;Temp;Connected;NORD
esxi582.cloud.ch;6.5.0;Quanta Computer Inc;D51B-2U dual 1G LoM;vcsa21prd.cloud.ch;Temp;Connected;NORD
esxi581.cloud.ch;6.5.0;Quanta Computer Inc.;D51B-2U dual 1G LoM;vcsa21prd.cloud.ch;Temp;Connected;OST
esxi574.cloud.ch;6.0.0;HP;ProLiant DL380 Gen9;vcsa21prd.cloud.ch;vSAN;Connected;NORD
esxi562.cloud.ch;6.0.0;HP;ProLiant DL380p Gen8;vcsa21prd.cloud.ch;vSAN;Connected;NORD
esxi563.cloud.ch;6.0.0;HP;ProLiant DL380p Gen8;vcsa21prd.cloud.ch;vSAN;Connected;OST
Expand All @@ -44,7 +41,7 @@ esxi581.cloud.ch;6.5.0;HP;ProLiant DL380 Gen9;vcsa10prd.cloud.ch;Special;Connect
esxi411.cloud.ch;6.5.0;HPE;ProLiant DL380 Gen10;vcsa10prd.cloud.ch;DWH;Connected;OST
esxi415.cloud.ch;6.5.0;HP;ProLiant DL380 Gen9;vcsa10prd.cloud.ch;DWH;Connected;OST
esxi417.cloud.ch;6.5.0;HP;ProLiant DL380 Gen9;vcsa10prd.cloud.ch;DWH;Connected;OST
esxi401.cloud.ch;6.5.0;HPE;ProLiant DL380 Gen10;vcsa10prd.cloud.ch;Spez-Office;Connected;OST
esxi401.cloud.ch;6.5.0;HPE;ProLiant DL380 Gen10;vcsa10prd.cloud.ch;Office;Connected;OST
esxi707.cloud.ch;7.0.3;HPE;Synergy 480 Gen10;vcsa10prd.cloud.ch;Windows;Maintenance;OST
esxi708.cloud.ch;7.0.3;HPE;Synergy 480 Gen10;vcsa10prd.cloud.ch;Windows;Maintenance;OST
esxi907.cloud.ch;7.0.3;HPE;Synergy 480 Gen10;vcsa10prd.cloud.ch;Windows;Maintenance;NORD
Expand Down
134 changes: 134 additions & 0 deletions data/cloud_Networks.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
vCenterServer;NetworkName;NetworkType;NetworkFolder;VDSwitch;NetworkStatus
vcsa0100.cloud.ch;TN-AK|AP-AK|EP-AK-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AK|AP-AK|EP-AK-WLC;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AK|AP-AK|EP-AK-WLC-HA;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-AZPK-AVI_Mgmt;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-AZPK-Fabric_Hosts_ESX;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-AZPK-vMotion;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-AZPK-vMotion_Core;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-Fabric_Hosts;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-Fabric_Mgmt;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-Backup;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-Config;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-FirewallMgmt;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-Security;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-WorkplaceMgmt;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-BI|AP-BI|EP-BI-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-EY|AP-EY-SUB1|EP-EY-SUB1-COS;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-EY|AP-EY-SUB2|EP-EY-SUB2-MGMT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-EY|AP-EY-SUB2|EP-EY-SUB2-MGMT2;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-EY|AP-EY-SUB4|EP-EY-SUB4-MGMT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-EY|AP-EY-SUB6|EP-EY-SUB6-SharedServices;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-EY|AP-EY-SUB7|EP-EY-SUB7-SharedServices;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-GK|AP-GK|EP-GK-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-GK|AP-GK|EP-GK-Gegensprechanlage;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-GL|AP-GL|EP-GL-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-IH|AP-IH|EP-IH-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-IH|AP-IH|EP-IH-ArubaMgmt;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-IH|AP-IH|EP-IH-FortiManagement;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-IX|AP-IX|EP-IX-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-IX|AP-IX|EP-IX-ALB-INT-TST;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-ALB-INT-TST;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-NAC;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-ALB-COS;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-Backup;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-OS|AP-OS|EP-OS-Accessor;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-OS|AP-OS|EP-OS-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-OS|AP-OS|EP-OS-ALB-INT-TST;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-OS|AP-OS|EP-OS-Manager;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-OS|AP-OS|EP-OS-ManagerData;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-AccessGW_Internal;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-ALB-INT-TST;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-NAC;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-SS|AP-SS|EP-SS-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-SWISSLIFE|AP-SL-ALB|EP-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-VI|AP-VI|EP-VI-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-VI|AP-VI|EP-VI-BMC_APP_PRD_AppB;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-ZL|AP-ZL|EP-ZL-NAC;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-ZR|AP-ZR|EP-ZR-ALB-INT;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TN-ZR|AP-ZR|EP-ZR-NAC;Distributed;DS-Prod;DS-Prod;green
vcsa0100.cloud.ch;TK-EY;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AK|AP-AK|EP-AK-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AK|AP-AK|EP-AK-Mail_In;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AK|AP-AK|EP-AK-Mail_Out;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-AZPK-AVI_Mgmt;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-AZPK-Fabric_Hosts_ESX;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-AZPK-vMotion_DMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-AZPK-WAF-SYNC;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-MGMT|EP-Cluster_CSV;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-Avi;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-Backup;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-DNS-orangeDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-DNS-redDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-FML-orangeDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-FML-redDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-Malicious-redDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-Orange-FortiMailF5;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-orangeDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-redDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-Sandbox-redDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-SHARED-orangeDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-TENABLE-orangeDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-TENABLE-redDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-AZPK-WAF-XPNCPA002;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-AZPK|AP-AZPK-SHARED|EP-Proxy;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-BI|AP-BI|EP-BI-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-BI|AP-BI|EP-BI-Avi;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-EY|AP-EY-SUB1|EP-EY-SUB1-COS;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-IH|AP-IH|EP-IH-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-IH|AP-IH|EP-IH-Cargoserver;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-IH|AP-IH|EP-IH-Securemail_In;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-IH|AP-IH|EP-IH-Securemail_Out;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-INT-SHARED|AP-INT-SHARED|EP-XP-F5;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-INT-SHARED|AP-INT-SHARED|EP-XP-na-vlan1001;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-IX|AP-IX|EP-IX-AccessGW_In;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-IX|AP-IX|EP-IX-AccessGW_Out;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-IX|AP-IX|EP-IX-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-IX|AP-IX|EP-IX-ALB-EXT-TST;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-JW|AP-JW|EP-JW-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-JW|AP-JW|EP-JW-ALB-INT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-AccessGW_In;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-AccessGW_Out;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-Airlock_Int;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-Airlock_Int_Test;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-Airlock_Mgmt;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-Airlock_Mgmt_Test;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-Airlock_Pub;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-ALB-EXT-TST;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-FML-orangeDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-FML-redDMZ;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-KP|AP-KP|EP-KP-Orange-FortiMailF5;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-Airlock_Int;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-Airlock_Int_Test;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-Airlock_Mgmt;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-Airlock_Mgmt_Test;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-Airlock_Pub;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-ALB-COS;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-OF|AP-OF|EP-OF-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-OS|AP-OS|EP-OS-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-OS|AP-OS|EP-OS-ALB-EXT-TST;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-AccessGW_In;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-AccessGW_Out;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-ALB-EXT-TST;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-F5_ext;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-Mail_In;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-RS|AP-RS|EP-RS-Mail_Out;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-SS|AP-SS|EP-SS-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-SS|AP-SS|EP-SS-ClearPass;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-SS|AP-SS|EP-SS-F5_ext;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-VB|AP-VB|EP-VB-Mail_In;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-VB|AP-VB|EP-VB-Mail_Out;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-VI|AP-VI|EP-VI-ALB-EXT;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-XX|AP-XX|EP-XX-AVI;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-XX|AP-XX|EP-XX-EY;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-XX|AP-XX|EP-XX-F5;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-ZL|AP-ZL|EP-ZL-Mail_In;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-ZL|AP-ZL|EP-ZL-Mail_Out;Distributed;DS-Int;DS-Int;green
vcsa0100.cloud.ch;TN-ZR|AP-ZR|EP-ZR-ALB-EXT;Distributed;DS-Int;DS-Int;green
7 changes: 0 additions & 7 deletions pode/pages/cloud_esxi_tbl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
if(Test-Path $PodeDB){

New-PodeWebContainer -NoBackground -Content @(

# $PSModule = Get-Module -ListAvailable pode*
# New-PodeWebCard -Name 'Module check' -Content @(
# foreach($module in $PSModule){
# New-PodeWebAlert -Value "Module: $($module.Name), Version: $($module.Version)" -Type Info
# }
# )

$TableExists = foreach($item in $SqlTableName){
$SqliteQuery = "SELECT * FROM sqlite_master WHERE name like '$item'"
Expand Down
7 changes: 4 additions & 3 deletions pode/pages/home.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@

$PodeRoot = $($PSScriptRoot).Replace('pages','db')
$PodeDB = Join-Path $PodeRoot -ChildPath 'psxi.db'
$SqlTableName = 'classic_summary', 'cloud_summary', 'classic_ESXiHosts', 'cloud_ESXiHost'
$SqlTableName = (Get-PodeConfig).PSXiTables

if(Test-Path $PodeDB){

New-PodeWebContainer -NoBackground -Content @(

$PSModule = Get-Module -ListAvailable pode*
$PSModule = (Get-PodeConfig).PSModules
New-PodeWebCard -Name 'Module check' -Content @(
foreach($module in $PSModule){
foreach($item in $PSModule){
$module = (Get-Module -ListAvailable $item) | Sort-Object Version | Select-Object -Last 1
New-PodeWebAlert -Value "Module: $($module.Name), Version: $($module.Version)" -Type Info
}
)
Expand Down
10 changes: 10 additions & 0 deletions pode/server.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@{
PSModules = 'PsNetTools', 'PSHTML', 'Pode', 'Pode.Web', 'mySQLite'
PSXiVersion = '1.0.2'
PSXiTables = @(
'classic_summary'
'cloud_summary'
'classic_ESXiHosts'
'cloud_ESXiHosts'
)
}

0 comments on commit 1950e7f

Please sign in to comment.