Kevin Holman Premier Field Engineer Windows Server Backup
Kevin Holman Premier Field Engineer
Windows Server Backup MP Agent Health Remediation and Report Old Agents blocking Upgrade RDS MP (Remote Desktop Services – Version Agnostic)
Customer Request: • Domain Controllers – System State Backups to a vault • • OS Version agnostic Detect failures Detect missing jobs Show Health as last backup status
• 1 Class • 1 Discovery • 11 Rules • 2 Monitors • Folder – Last Backup Status – Missing Backup Event – Backup job failures – State View – Alert View
• Discover using Windows Feature from WMI – Win 32_Server. Feature https: //docs. microsoft. com/en-us/windows/win 32/wmisdk/win 32 -serverfeature SELECT Name FROM Win 32_Server. Feature WHERE ID = 296
Investigate and Test-fire Events using MP Event Analyzer https: //kevinholman. com/2011/08/02/how-to-test-fire-any-windows-event-on-any-serverfrom-any-application/
• • • Power. Shell Script Run on a Management Server Find all unhealthy agents Attempt to fix them Report indicating most likely root cause
• • Agents in Heartbeat failure state (grey agents) Resolve IP from DNS Ping Get-Service Fix startup type Start-Service Report
• Remnants of SCOM 2012 agent left behind • Agents cannot upgrade to SCOM 2016/2019 • Management Pack to the rescue! • Discover Registry • View affected agents
• Missing for 2019 • Not a good MP to begin with Simple Customer Request: • Discover the RDS Server Roles regardless of OS • Monitor the 4 Services • Build on this later
• RDS Class (seed) • RDS Role Class (base class) – – Connection Broker Gateway Licensing Session Host
• Discoveries • • • Reg Key / Reg Value Power. Shell Script VBScript Unix Apps WMI query Folder + Alert + State + Perf Folder + Alert + State • Monitors • • Performance Perf then Script Registry (Exists or Content match) Services*** SNMP UNIX Shell Commands Script (Power. Shell and VBScript) Rules • • Views • • Groups • • • Event Log Alerts Event Log Repeated Event Log Correlated SNMP Traps Text logs Timed Scripts Power. Shell Collect Performance Application instances Windows Computers + Watchers AD, SQL query, Posh based Groups Tasks • • Run a command (Agent) Power. Shell Script (Agent) VBScript (Agent) Console Task
Kevin Holman’s Fragment Library https: //github. com/thekevinholman/Fragment. Library Visual Studio Authoring Extensions https: //www. microsoft. com/en-us/download/details. aspx? id=30169 Step By Step for VSAE https: //kevinholman. com/2016/06/04/authoring-management-packs-the-fastand-easy-way-using-visual-studio/ Silect MP Author Professional http: //www. silect. com/mp-author-professional/
- Slides: 18