Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides a modeling method for automatically configuring an automatic secondary equipment model, and realizes the automatic configuration of the automatic secondary equipment model.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a modeling method for automatic configuration of an automatic secondary equipment model comprises the following steps:
the provincial dispatching control system determines automatic secondary equipment to be monitored, gives the secondary equipment a unique equipment ID, organizes the ledger information of the secondary equipment into a standard first XML file, and sends the first XML file to a local dispatching data acquisition system through wide area transmission service; the first XML file comprises the equipment name and the equipment ID of the secondary equipment and the service system where the secondary equipment is located;
after receiving equipment standing account information sent by a provincial dispatching control system, the local dispatching data acquisition system automatically matches the equipment information acquired by the equipment hardware information acquisition service module, wherein the matched equipment information comprises an equipment name, and if the equipment names are matched, a unique equipment ID of the secondary equipment set in the provincial dispatching control system is given to the matched equipment in the local dispatching acquisition system; the equipment information acquired by the equipment hardware information acquisition service module also comprises component information; the component information comprises disk information and network card information;
the local dispatching data acquisition system sends the monitored component information of the secondary equipment to a provincial dispatching control system through a wide area transmission service in a standard second XML file;
the provincial dispatching control system gives a unique component ID to each component of the secondary equipment, completes the construction of a complete secondary equipment model, and is organized into a third XML file which is sent to a local dispatching data acquisition system through wide area transmission service; the third XML file comprises a device ID, a component ID of each component and related information;
and the local tone data acquisition system analyzes the third XML file and imports complete secondary equipment model information into a database.
Preferably, the method further comprises:
in the life cycle of the secondary equipment, if the local dispatching data acquisition system judges that the component information acquired by the equipment hardware information acquisition service module is inconsistent with the stored secondary equipment model, automatically sending the component information corresponding to the newly added equipment component to the provincial dispatching control system;
the provincial dispatching control system gives a unique component ID to the newly added component to complete the reconstruction of the complete equipment model, and the provincial dispatching control system is organized into a fourth XML file and sends the fourth XML file to the local dispatching data acquisition system through wide area transmission service; the fourth XML file comprises a device ID, a component ID of each component and related information;
and the local tone data acquisition system analyzes the fourth XML file and imports complete secondary equipment model information into a database.
Preferably, the method further comprises:
in the life cycle of the secondary equipment, if the component or/and the component information changes, sending the component or/and the component information change information to the provincial dispatching control system in a timed polling manner, updating the component related information in the model by the provincial dispatching control system to complete the reconstruction of the complete equipment model, and organizing a fifth XML file to be sent to a local dispatching data acquisition system through wide area transmission service; the fifth XML file comprises a device ID, a component ID of each component and related information;
and the local tone data acquisition system analyzes the fifth XML file and imports complete secondary equipment model information into a database.
Preferably, the dispatching data acquisition system sends the monitored component information of the secondary device to the provincial dispatching control system through a wide area transmission service in a standard XML format, and specifically includes:
and the local dispatching data acquisition system organizes the monitored component information of the secondary equipment into a standard XML format and sends the standard XML format to the provincial dispatching control system in a one-time timed polling mode in preset minutes.
Preferably, the method further comprises:
and when the local dispatching data acquisition system monitors that the secondary equipment model completely issued by the provincial dispatching control system is consistent with the actual equipment, stopping polling and sending the component information of the secondary equipment.
Preferably, the matching device information further includes a service system, and the matching is indicated only when the service system and the device name are consistent.
The invention has the following beneficial effects:
(1) the modeling method for automatic configuration of the automatic secondary equipment model realizes full control of the secondary equipment model on the province and the region, and ensures the consistency of the secondary equipment model between the province and the region;
(2) according to the modeling method for automatic configuration of the automatic secondary equipment model, manual processing is not needed in the construction of the equipment model and the subsequent reconstruction and formation of the model of equipment component change, so that the labor cost is greatly reduced;
(3) the invention relates to a modeling method for automatic configuration of an automatic secondary equipment model, which ensures the real-time property of the secondary equipment model, the changed component information can be timely sent up to complete the automatic construction of a new model, and the component information change can be timely transmitted to a provincial dispatching control system;
(4) the modeling method for automatic configuration of the automatic secondary equipment model can be applied to automatic secondary equipment and is also applicable to model construction of an automatic database, an automatic machine room environment and the like.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the modeling method for automatically configuring an automatic secondary device model according to the present invention includes:
s101, the provincial dispatching control system determines the secondary equipment account information needing model configuration, and sends the account information to the local dispatching data acquisition system.
Specifically, the provincial dispatching control system determines automatic secondary equipment to be monitored, gives the secondary equipment a unique equipment ID, organizes the ledger information of the secondary equipment into a standard first XML file, and sends the first XML file to a local dispatching data acquisition system through wide area transmission service; the first XML file comprises the equipment name and the equipment ID of the secondary equipment and the service system where the secondary equipment is located.
The structural diagram of the first XML file is shown in fig. 2. The "name" field indicates the device name, "system" field indicates the service system, and "ID" field indicates the device ID.
And S102, the local dispatching data acquisition system associates and matches the equipment ID in the standing book information with the actual equipment, automatically monitors the component information of the equipment after successful matching, organizes the component information into complete equipment information, and sends the equipment information to the provincial dispatching control system.
Specifically, the local dispatching data acquisition system analyzes and processes the received equipment ledger information, matches the equipment information with the existing automatic operating equipment, records and stores basic model information (including equipment ID, equipment name, located service system and the like) of the equipment if matching is successful, and automatically monitors component information of the equipment, and does not process if matching is failed.
It should be noted that:
a. the matching is successful only if the business system where the secondary equipment is located and the equipment name are completely matched, and the matching failure is not processed;
b. the device component information includes information such as a disk, a network card, a business process and the like under the device, and after the device is matched with the device, the component information under the device is monitored, and the components are assigned to the device.
A schematic diagram of the structure of the device information collected by the device hardware information collection service module is shown in fig. 3, where a "namevalue" field indicates a device name.
Further, the local dispatching data acquisition system sends the monitored component information of the secondary equipment to a provincial dispatching control system through a wide area transmission service in a standard second XML file. The structural diagram of the second XML file is shown in fig. 4.
S103, the provincial dispatching control system gives a unique component ID to the component, and the component information is sent to the local dispatching data acquisition system again.
Referring to fig. 4, the device component information monitored by the local dispatching data acquisition system is organized into a standard XML format file (a second XML file), and periodically polled and sent to the provincial dispatching control system, the provincial dispatching control system summarizes the model information of the device, and issues the full model to the local dispatching data acquisition system again; and when the local dispatching data acquisition system monitors that the issued equipment full model is consistent with the actual equipment, stopping polling and sending the equipment component information.
It should be noted that:
a. the monitored equipment component information is transmitted to a provincial dispatching control system in a polling mode every 1 minute, and transmission and receiving are prevented from being missed;
b. if the model issued by the provincial dispatching control system is different from the actual local dispatching, the different component information is repeatedly transmitted in a polling mode until the model is consistent with the actual dispatching.
Specifically, the provincial dispatching control system gives a unique component ID to each component of the secondary equipment, completes the construction of a complete secondary equipment model, and organizes a third XML file to be sent to a local dispatching data acquisition system through wide area transmission service; the third XML file includes a device ID, a component ID of each component, and related information.
The third XML file structure is shown in fig. 5, in which the "ID" field of the "node" section indicates a device ID, "ID" of the "disk" section indicates a disk assembly ID, and "ID" of the "net" section indicates a network card assembly ID.
And S104, the local dispatching data acquisition system automatically imports the equipment model into a database to complete the construction of the complete model of the equipment between provincial dispatching and local dispatching.
Specifically, the local tone data acquisition system analyzes the third XML file, and imports complete secondary equipment model information into a database.
Further, the method further comprises:
in the life cycle of the secondary equipment, if the local dispatching data acquisition system judges that the component information acquired by the equipment hardware information acquisition service module is inconsistent with the stored secondary equipment model, automatically sending the component information corresponding to the newly added equipment component to the provincial dispatching control system;
the provincial dispatching control system gives a unique component ID to the newly added component to complete the reconstruction of the complete equipment model, and the provincial dispatching control system is organized into a fourth XML file and sends the fourth XML file to the local dispatching data acquisition system through wide area transmission service; the fourth XML file comprises a device ID, a component ID of each component and related information;
and the local tone data acquisition system analyzes the fourth XML file and imports complete secondary equipment model information into a database.
Further, the method further comprises:
in the life cycle of the secondary equipment, if the component or/and the component information changes, sending the component or/and the component information change information to the provincial dispatching control system in a timed polling manner, updating the component related information in the model by the provincial dispatching control system to complete the reconstruction of the complete equipment model, and organizing a fifth XML file to be sent to a local dispatching data acquisition system through wide area transmission service; the fifth XML file comprises a device ID, a component ID of each component and related information;
and the local tone data acquisition system analyzes the fifth XML file and imports complete secondary equipment model information into a database.
It should be noted that the invention can also be used for building models of equipment such as UPS, precision air conditioner and the like in a database, a service system process and a machine room power environment.
The modeling method for automatically configuring the automatic secondary equipment model ensures the accuracy and timeliness of model information of the secondary equipment monitoring platform and greatly reduces the maintenance workload of the equipment model.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.