1. Preface
Because we need to do some development on Ca, we need to do some research on Ca SDK. The following is a brief introduction.
2. Version
NSM uses version 3.1
3. Detailed introduction
The ca sdk mainly includes three aspects: worldview API, Agent API, and enterprises management API.
Currently, worldview APIs and elastic ISES Management APIs are used in our project development.
Worldview APIs mainly include:
L Kernel Function
L respository Function
L classes Function
L objects function
L notified funcion
L alarm function
Enterprises Management APIs mainly include:
L calendar management
L Event Management
L problem (help desk) Management
L Security Management
L station management
L workload management
In this case, event management may be used.
4. Get Object Information
In the process of obtaining object information using the worldview API, it takes a long time to traverse the objects in the CA database without knowing the object information due to incomplete information, finally, through multi-party testing, we can figure out the relationship between some object classes in the API.
The data organization of CA objects is object-oriented. In our use process, we need to traverse three objects:
L managedobject: Basic Object Information
L projection, object containing information
L link: link information
Each object has different classes. In these objects, each class of objects contains some inherent attributes. The managedobject object includes all the objects that can be managed in the system, however, it does not include the topological relationship between objects. The explicit sion object includes the description of the topological relationship of the system objects, but there is no object information. The parent sion and managedobject objects are associated through childuuid-UUID, link has not been studied in detail.
The managedobject object includes the uuid, name, and other attributes.
The values include UUID, parent_uuid, child_uuid, and others.
The object Traversal method of the entire object database is as follows:
First, obtain the uuid of the root object A and A, and then traverse the upload sion object list. If the parent_uuid is equal to the uuid of A, the lower-level node of A is generated, the UUID of the lower-level node is equal to child_uuid in the sion object, and then the child_uuid is used to find the object name and other attributes of the object. Then, you can generate lower-level nodes of relevant nodes as needed.
The above are the basic methods for getting management objects in the CA system.