Add WinRM filter, VNC IP fallback, UDC/CLM process detection
displaypcs.asp: - Replace "All Time" filter with WinRM status filter - Options: All, Needs WinRM (Has Equipment), Has WinRM, No WinRM - Add VNC IP fallback when hostname unavailable displaypc.asp: - Add VNC IP fallback when hostname unavailable api.asp: - Add isactive field support for installedapps table - UDC/CLM process detection sets isactive=1 if running, 0 if not displaymachines.asp: - Fix to exclude PC machine types (machinetypeid >= 33) - PCs were incorrectly showing on equipment list Update-ShopfloorPCs-Remote.ps1: - Add UDC.exe and PPMon.exe (CLM) process detection - Set isactive flag based on running process - Add 10.134.* to TrustedHosts for IP fallback connections Update-PC-CompleteAsset.ps1: - Add UDC/CLM process detection for local execution - Set isactive flag on tracked applications 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -854,6 +854,30 @@ function Collect-SystemInfo {
|
||||
}
|
||||
}
|
||||
|
||||
# Detect running processes for UDC and CLM to set isactive
|
||||
$udcRunning = $false
|
||||
$clmRunning = $false
|
||||
$udcProcess = Get-Process -Name "UDC" -ErrorAction SilentlyContinue
|
||||
if ($udcProcess) { $udcRunning = $true }
|
||||
$clmProcess = Get-Process -Name "PPMon" -ErrorAction SilentlyContinue
|
||||
if ($clmProcess) { $clmRunning = $true }
|
||||
|
||||
# Update tracked apps with isactive status
|
||||
foreach ($app in $trackedApps) {
|
||||
if ($app.appid -eq 2) {
|
||||
# UDC
|
||||
$app.isactive = if ($udcRunning) { 1 } else { 0 }
|
||||
Write-Host " UDC process running: $udcRunning" -ForegroundColor $(if ($udcRunning) { "Green" } else { "Yellow" })
|
||||
} elseif ($app.appid -eq 4) {
|
||||
# CLM
|
||||
$app.isactive = if ($clmRunning) { 1 } else { 0 }
|
||||
Write-Host " CLM (PPMon) process running: $clmRunning" -ForegroundColor $(if ($clmRunning) { "Green" } else { "Yellow" })
|
||||
} else {
|
||||
# Other apps - default to active if installed
|
||||
$app.isactive = 1
|
||||
}
|
||||
}
|
||||
|
||||
$systemInfo.TrackedApplications = $trackedApps
|
||||
Write-Host " Found $($trackedApps.Count) tracked applications for database" -ForegroundColor Cyan
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user