This commit is contained in:
Florian Späth
2025-01-31 01:49:31 +01:00
commit afb2f418fc
56 changed files with 2822 additions and 0 deletions

33
zeitgeber.ps1 Normal file
View File

@@ -0,0 +1,33 @@
#$env:getjob
#$env:setjob
#do {
if ($env:setjob) {
$command = $env:setjob
$env:setjob = $false
}
cd "C:\Program Files\Dell\SysMgt\rac5"
$collection = $(.\racadm.exe -r "spaeth-bayern.de:5005" -u root -p "kt}y/6ZHF~.@" getsysinfo)
foreach ($item in $collection) {
if ($null -ne $item) {
$r710_log.Text += "$item`n"
if($item -match "DNS RAC Name"){
$index = ($item.IndexOf("="))
$env:r710_log_mac.Text = $item.Substring($index+1)
}
if($item -match "Firmware Version"){
$index = ($item.IndexOf("="))
$env:r710_log_bios.Text = $item.Substring($index+1)
}
if($item -match "Power Status"){
$index = ($item.IndexOf("="))
$env:r710_log_power.Text = $item.Substring($index+1)
}
}
}
Start-Sleep -milliseconds 50
#} until (
# $quit
#)