linux学习记录
分类:
2008-09-25 15:16:30
The am of this proposal is to recommend a specification for information providers and to define the framework in which they are used. We require a specification so that information providers can be easily written by the many different developers of the systems we use. By having a specification we can ensure that all the information providers can be used in the same framework. A framework is also needed to manage the information providers. The different systems require information, eg local fabric management systems, grid information systems or grid monitoring systems should all be able to interface with the framework. This proposal advocates the use of existing open standards, in particular the standards from the The Distributed Management Task Force .
The DMTF is a standards body which his heavily backed by major industrial players. The Common Information Model () is the foundation for the DMTF technology solution to distributed enterprise management. The CIM schema is made up of two parts, the and the CIM schema. The meta schema is a specification for describing schema. The CIM schema is a collection of defined schema which can be used for system management. The CIM schema can easily be extendended by defining vendor extensions and profiles are used to focus on a subset of the schema which is required for a particular task.
Web-Based Enterprise Management () is a set of management and Internet standard technologies developed to unify the management of distributed computing environments. It includes protocols, query languages, discovery mechanisms, mappings, and anything else needed to exchange CIM information. is a WBEM protocol that uses XML over HTTP to exchange CIM information. The CIM Query Language (CQL) is heavily influenced by SQL.
WBEM implementations are based on a server, usually referred to as CIM Object Manager (CIMOM), running on the managed system and providing access to the system resources via the CIM Operations over HTTP protocol. The CIMOM handles request routing to object manager adapters, services (e.g. event services, query services, ...) and providers based on the CIM model.
Currently, the DMFT does not have a specification for the provider interface, however, The Open Group has defined the Common Management Programming Interface () for information providers and this is now an industry accepted standard.
There exists a number of open source projects that implement the DMFT standards. This following is just an example, it is not and exhaustive list!
Open Pegasus and SBLIM packages are part of the SL4 distribution.
is an open-source implementation of the DMTF WBEM standards. It is coded in C++ so that it effectively translates the object concepts of the CIM objects into a programming model but still retains the speed and efficiency of a compiled language. Pegasus is designed to be inherently portable and builds and runs today on most versions of UNIX, Linux, and Microsoft Windows. In addition, Open Pegasus is part of the Redhat Enterprise Linux Distribution.
Use apt-get to install the rpm from the SCL4 distribution
apt-get install tog-pegasusStart the service
/etc/rc.d/init.d/tog-pegasus start
Open Pegasus requires two files; one file which describes the output of the information the provider and the information provider itself. Open Pegasus uses for information providers as will as enabling use of the CMPI specification.
The MOF files are located in /usr/share/Pegasus/mof/ and the information providers are located in /usr/lib/Pegasus/providers/
Open Pegasus comes with an few example information providers. The /usr/bin/osinfo command can be used to test the server and the default provider.
OperatingSystem Information
Host: pcitgd10.dyndns.cern.ch
Name: Scientific Linux CERN SLC
( 2.6.9-22.0.1.EL.cern #1 Thu Nov 3 20:19:44 CET 2005 )
Version: 2.6.9-22.0.1.EL.cern
UserLicense: Unlimited user license
Number of Users: 2 users
Number of Processes: 96 processes
OSCapability: 32 bit
LastBootTime: Nov 23, 2006 9:34:41 (00100)
LocalDateTime: Nov 23, 2006 16:14:29 (00100)
SystemUpTime: 23988 seconds = 6 hrs, 39 mins, 48 secs
The command wbemexec can be used to experiment with various XML requests. Create a file called request.xml with the following content.
Running the command /usr/bin/wbemexec request.xml will generate the following response.
CIM_OperatingSystem
CIM_UnitaryComputerSystem
pcitgd10.dyndns.cern.ch
Scientific Linux CERN SLC
Open Pegasus has implemented SSL for http connections. Connections can use x509 based certificates for both server and client authentication.
The Standards Based Linux Instrumentation for Manageability ) is an IBM-initiated Open Source project, intended to enhance the manageability of GNU/Linux systems and it does so by enabling WBEM, Web Based Enterprise Management. The SBLIM project covers different aspects of an CIM enabled system. The available SBLIM packages can be subdivided into different categories.
Many SBLIM packages are part of the SL4 distribution
The WBEM Command Line Interface is a standalone, convenient systems management utility for CIMOM access. Invocation and output syntax are problem-oriented and well suited for interactively inclusion in Shell and Perl scripts. It is especially suited for administrators writing their own management scripts or for WBEM developers that want to test their providers. The package can be installed using _ apt-get install sblim-wbemc_
The flowwing command would run the same information provider as used in the Pegasus web interface test.
wbemcli ei
SBLIM also offers a number of existing information providers. The syslog information provider gives an example of how to use obtain information from a log file. The information provider can be installed using apt-get install sblim-cmpi-syslog Running the following command will dump the syslog file to stdout.
wbemcli ei
The package sblim-cmpi-perl is an API which can be used for easily creating information providers in perl.
With the CIM JDBC Mapper the CIM is transformed to a relational view so that all informations are presented in two-dimensional tables. The transformation is done in the following way:
The CIMOM can be compared to an MDS GRIS. Both run information providers and present an interface which can be used to remotely request information. One of the main differences between MDS and a CIMOM is that the CIMOM analysis the request and only runs the information provider which are needed. The other differences is that the CIMOM only acts as an information broker and does not contains a cache.
In general MDS only returns the latest state of the system. As seen above with the syslog information provider, the WBEM framework can also provided logging or monitoring information. This is means that the WBEM framework could also be used in place of the current log file producers used in the Job Status and Grid FTP monitoring applications.
The WBEM clients would be a replacement for the LDAP APIs and ldapsearch command.
All the APIs for writing information providers can seen as providing the same functionality as the Generic Information Provider.
WBEM is an industrial backed standard for the management of distributed computing environments. There are a number of implementations of WBEM component and they are reaching maturing.