Download presentation
Presentation is loading. Please wait.
Published byMaria Houston Modified over 8 years ago
1
© 2005 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice LCA2006 Systems Administration Miniconf: System Monitoring with WBEM Tim Potter Software Engineer, HP
2
11/16/20162 What is WBEM? Web Based Enterprise Management
3
11/16/20163 WBEM is: A protocol for managing network resources.
4
11/16/20164 WBEM is: Peer and successor to SNMP.
5
11/16/20165 WBEM is: XML requests and responses over HTTP TCP port 5988 (insecure) TCP port 5989 (SSL)
6
11/16/20166 WBEM is: An object oriented database With remote procedure calls With async notifications −Indications −Like SNMP traps
7
11/16/20167 Scenario New widget on your network Managed by WBEM What do you do?
8
11/16/20168 PyWBEM Download and install PyWBEM http://pywbem.sourceforg e.net http://pywbem.sourceforg e.net Start tooling around
9
11/16/20169 Exploring WBEM Connect to device $ python >>> import pywbem >>> conn = pywbem.WBEMConnection ('widget.foo.com', ('username','password'))
10
11/16/201610 Exploring WBEM Get list of CIM classes >>> conn.EnumerateClassNames( DeepInheritance = True) ['CIM_AFService', 'CIM_AuthenticationRole,...]
11
11/16/201611 Schema Reference Latest version available on the DMTF website http://dmtf.org/standards/c im/ cim_schema_v211 http://dmtf.org/standards/c im
12
11/16/201612 Schema Reference Class diagrams show CIM class ancestry Properties of superclass inherited in subclass
13
11/16/201613 Schema Reference
14
11/16/201614 Schema Reference MOF files contain property descriptions Equivalent to a SNMP MIB CIM schema distributed as MOF files
15
11/16/201615 Exploring WBEM Some classes that may be present on your device −CIM_ComputerSystem −CIM_Sensor −CIM_PowerSupply
16
11/16/2016 Exploring WBEM Get overall status of device >>> cs = conn.EnumerateInstanceNames ('CIM_ComputerSystem') >>> i = conn.GetInstance(cs[0])
17
11/16/2016 Exploring WBEM Get overall status of device >>> print i['OperationalStatus'] [3] >>> print i['StatusDescriptions'] ['Degraded']
18
11/16/2016 Exploring WBEM >>> ps = conn.EnumerateInstances ('CIM_PowerSupply') >>> print ps[0]['Description'] 'Power Supply 1'
19
11/16/201619 Associations Can relate managed objects to each other via associations e.g temperature sensor X is connected to CPU Y API quite complicated
20
11/16/2016 Associations Simple monitoring script >>> for s in : >>> i = conn.GetInstance(s) >>> print i['OperationalStatus']
21
11/16/201621 Indications Equivalent of SNMP traps Sent as HTTP POST request to a WBEM server Subscription API also quite complicated
22
11/16/201622 Example Code The PyWBEM home page has lots of examples http://pywbem.sf.net/exam ples/ http://pywbem.sf.net/exam ples/
23
11/16/201623 Key Takeaways Mmmm... Takeaway... WBEM = CIM Schema + XML + HTTP + SSL Object oriented manageability Use PyWBEM for exploration
24
11/16/201624 Key Takeaways Not present in many devices yet Being pushed by big vendors Will appear on your radar sometime!
25
11/16/2016 Modelling, Modelling, Modelling, Modelling!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.