200 likes | 345 Views
Windows NT. 5.2. . Windows Server 2003. Workstation. Server. 3.1, 3.5, 3.51. √. √. 4.0. √. √. 5.0. Windows 2000. Windows 2000 Server. 5.1. Windows XP. . 6.0. Windows Vista. Windows Server 2008. 7.0. Windows 7. Windows Server 2008 R2. WMI.
E N D
Windows NT 5.2 Windows Server 2003 Workstation Server 3.1, 3.5, 3.51 √ √ 4.0 √ √ 5.0 Windows 2000 Windows 2000 Server 5.1 Windows XP 6.0 Windows Vista Windows Server 2008 7.0 Windows 7 Windows Server 2008 R2
WMI • basisarchitectuur: WMI versus SNMP • WMI klassen en objecten • WMI CIM Studio • Qualifiers • Associatorklassen • WMI Query Language (WQL) • Event providers versus interne polling • Notification queries (WbemTest) • Permanente Eventregistratie
WMI versus SNMP MIB GET / SET EXTERNE POLLING SCALAIRE OBJECTEN + TABELLEN NETWORK MANAGEMENT APPLICATION (NMA) NETWORK MANAGEMENT STATION (NMS) MANAGER AGENTEN
WMI versus SNMP API API API MIB MIB MIB SUB AGENT SUB AGENT SUB AGENT MANAGER TRANSPORT MASTER AGENT SNMP COMMUNICATIE MET NMSs STANDAARD UDP POORTEN 161 & 162 SNMP PROTOCOL SPECIFIEK PROTOCOL OF IPC MECHANISME
WMI • basisarchitectuur: WMI versus SNMP • WMI klassen en objecten • WMI CIM Studio • Qualifiers • Associatorklassen • WMI Query Language (WQL) • Event providers versus interne polling • Notification queries (WbemTest) • Permanente Eventregistratie
WMI Qualifiers Klassequalifiers (objectqualifiers) Attribuutqualifiers Methodequalifiers Methodeparameterqualifiers
WMI Qualifiers Klassequalifiers (objectqualifiers) • Description • Singleton • Abstract • Dynamic • Provider • Association Attribuutqualifiers Methodequalifiers Methodeparameterqualifiers
WMI Qualifiers Klassequalifiers (objectqualifiers) Attribuutqualifiers • Description • CIMType • Read en/of Write • Keys • ValueMap • Values • Template Methodequalifiers Methodeparameterqualifiers
WMI Qualifiers Klassequalifiers (objectqualifiers) Attribuutqualifiers Methodequalifiers • Description • CIMType • ValueMap • Values • Static • Privileges Methodeparameterqualifiers
WMI Qualifiers Klassequalifiers (objectqualifiers) Attribuutqualifiers Methodequalifiers Methodeparameterqualifiers • Description • CIMType • ValueMap • Values • Out • Optional • ID
WMI • basisarchitectuur: WMI versus SNMP • WMI klassen en objecten • WMI CIM Studio • Qualifiers • Associatorklassen • WMI Query Language (WQL) • Event providers versus interne polling • Notification queries (WbemTest) • Permanente Eventregistratie
WMI Query Language (WQL) • SELECT ... FROM klasse [ WHERE ... ] • REFERENCES OF {…} [ WHERE ... ] • ASSOCIATORS OF {…} [ WHERE ... ] • AssocClass = klassenaam • ResultClass = klassenaam • ResultRole = sleutelattribuutnaam • Role = sleutelattribuutnaam • ClassDefsOnly • Schemaqueries • SELECT * FROM meta_class [ WHERE ... ] • ASSOCIATORS OF {…} WHERE schemaonly
SNMP MIB GET / SET EXTERNE POLLING TRAP SCALAIRE OBJECTEN + TABELLEN NETWORK MANAGEMENT APPLICATION (NMA) NETWORK MANAGEMENT STATION (NMS) MANAGER AGENTEN
WMI Event Providers • ideaal scenario: • consumers registreren (cfr. notification query) condities waarin men geïnteresseerd is • event providers creëren event objecten in repository van zodra condities optreden • consumers hierdoor onmiddellijk geactiveerd • probleem: weinig providers zijn eveneens event providers
Event Polling • tussenoplossing: CIMOM interne polling • WMI service ondervraagt periodiek specifieke klassen bij de corresponderende providers • PreviousInstance en TargetInstancesnapshots • WMI service creëert event objecten in repository van zodra condities optreden • externe polling door consumer • verslindt bandbreedte en processorcycli • bovendien opletten met caching door CIMOM: opfrissen noodzakelijk !
WMI • basisarchitectuur: WMI versus SNMP • WMI klassen en objecten • WMI CIM Studio • Qualifiers • Associatorklassen • WMI Query Language (WQL) • Event providers versus interne polling • Notification queries (WbemTest) • Permanente Eventregistratie
Permanente Eventregistratie • periodieke eventgenerator • standaard eventconsumers • LogFileEventConsumer • NTEventLogEventConsumer • SMTPEventConsumer. • CommandLineEventConsumer • ActiveScriptEventConsumer
Permanente Eventregistratie • configuratie via drie objecten: • __EventFilter object (WQL Query) • __EventConsumer object • o.a. via templates verwijzend naar informatie van het object dat het event veroorzaakt heeft: • %__SERVER% • %TargetInstance.Name% • %NumberOfEvents% • %Representative.TargetInstance.Name% • ... • __FilterToConsumerBinding object