CN116684282B - Method and device for initializing newly-added cloud server and computer equipment - Google Patents
Method and device for initializing newly-added cloud server and computer equipment Download PDFInfo
- Publication number
- CN116684282B CN116684282B CN202310932195.2A CN202310932195A CN116684282B CN 116684282 B CN116684282 B CN 116684282B CN 202310932195 A CN202310932195 A CN 202310932195A CN 116684282 B CN116684282 B CN 116684282B
- Authority
- CN
- China
- Prior art keywords
- cloud
- platform
- maintenance
- server information
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000012423 maintenance Methods 0.000 claims abstract description 373
- 238000004590 computer program Methods 0.000 claims description 29
- 238000012795 verification Methods 0.000 claims description 18
- 238000013508 migration Methods 0.000 claims description 6
- 230000005012 migration Effects 0.000 claims description 6
- 238000012790 confirmation Methods 0.000 claims description 5
- 238000001914 filtration Methods 0.000 claims 2
- 238000007726 management method Methods 0.000 description 90
- 238000011423 initialization method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/0816—Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to a method, a device, computer equipment and a storage medium for initializing a newly-added cloud server. The method comprises the following steps: acquiring a cloud server information table; acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; the plurality of operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; determining differences between the cloud server information table and each platform information table, and determining newly deployed cloud servers corresponding to each operation and maintenance platform according to the determined differences; transmitting information of the newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers. By adopting the method, the efficiency of maintaining and managing the server on the cloud can be improved.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for initializing a newly added cloud server, a computer device, a storage medium, and a computer program product.
Background
In the "internet +" age background, cloud computing services have become the basis for the most advanced technology and digital economy of enterprises. More and more enterprises deploy enterprise services in the cloud, and the enterprise services are provided outside through the cloud, and are usually maintained by an operation and maintenance platform.
However, the number of servers currently deployed on the cloud is increasing, and server information is frequently modified. In these cases, manually synchronizing cloud server information to the operation and maintenance platform generates a lot of repeated work, and manual server initialization work is also prone to configuration item omission.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, computer device, computer readable storage medium, and computer program product for initializing a newly added cloud server that can improve maintenance and management efficiency.
In a first aspect, the present application provides a method for initializing a newly added cloud server. The method comprises the following steps:
acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
Acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is a platform for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
determining differences between the cloud server information table and each platform information table, and determining new deployment cloud servers corresponding to each operation and maintenance platform according to the determined differences;
for each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
In one embodiment, the acquiring the cloud server information table includes: acquiring server information stored in the cloud based on a server information acquisition interface corresponding to the cloud; generating the cloud server information table based on the obtained server information stored in the cloud; the platform information table corresponding to each of the plurality of operation and maintenance platforms comprises: based on the server information acquisition interface corresponding to each operation and maintenance platform, acquiring the server information stored in the corresponding operation and maintenance platform; and generating a platform information table corresponding to each operation and maintenance platform based on the acquired server information stored by each operation and maintenance platform.
In one embodiment, the obtaining, based on the server information obtaining interface corresponding to the cloud, the server information stored in the cloud includes: reading an access credential in the cloud configuration file; based on the access credentials in the read cloud configuration file, calling the server information acquisition interface corresponding to the cloud to acquire server information stored in the cloud; the server information obtaining interface based on the respective corresponding server information of each operation and maintenance platform obtains the server information stored in the corresponding operation and maintenance platform, and the method comprises the following steps: reading access credentials in the operation and maintenance platform configuration files corresponding to each operation and maintenance platform; and calling a server information acquisition interface corresponding to the corresponding operation and maintenance platform based on the access certificate in each read operation and maintenance platform configuration file so as to obtain the server information stored by the corresponding operation and maintenance platform.
In one embodiment, the determining the difference between the cloud server information table and each platform information table, and determining, according to the determined difference, a newly deployed cloud server corresponding to each operation and maintenance platform, includes: for each of the plurality of operation and maintenance platforms, determining first target server information which exists in the cloud server information table but does not exist in a platform information table corresponding to the current operation and maintenance platform; and determining a newly deployed cloud server corresponding to the current operation and maintenance platform according to the first target server information.
In one embodiment, the cloud server information table records internet protocol addresses and hostnames of all cloud servers deployed in the cloud; the platform information corresponding to the current operation and maintenance platform records the internet protocol address and the host name of at least part of cloud servers deployed in the cloud; the first target server information includes a first target internet protocol address and a first target hostname; the determining the first target server information existing in the cloud server information table but not in the platform information table corresponding to the current operation and maintenance platform includes: determining a first target internet protocol address and a first target host name which exist in the cloud server information table but do not exist in a platform information table corresponding to the current operation and maintenance platform; the determining, according to the first target server information, a newly deployed cloud server corresponding to the current operation and maintenance platform includes: and taking the cloud server pointed by the first target Internet protocol address and the first target host name as a newly deployed cloud server corresponding to the current operation and maintenance platform.
In one embodiment, before the acquiring the cloud server information table, the method further includes: naming servers deployed in the cloud according to a preset server naming format to obtain multi-dimensional names of the servers deployed in the cloud; the multidimensional name at least comprises a host name, an Internet protocol address, a business line name and a use team name; the sending, for each of the plurality of operation and maintenance platforms, information of a newly deployed cloud server corresponding to the operation and maintenance platform, including: for each of the plurality of operation and maintenance platforms, acquiring a multi-dimensional name of a newly deployed server corresponding to the aimed operation and maintenance platform, and sending the multi-dimensional name to the aimed operation and maintenance platform; and the transmitted multidimensional name is used for triggering the aimed operation and maintenance platform to store so as to obtain server information stored in the aimed operation and maintenance platform.
In one embodiment, selecting any operation and maintenance platform from a plurality of operation and maintenance platforms as a target operation and maintenance platform, and acquiring a platform information table corresponding to the target operation and maintenance platform, wherein the platform information table corresponding to the target operation and maintenance platform records information of at least part of cloud servers deployed in a cloud; determining the difference between the cloud server information table and the platform information table corresponding to the target operation and maintenance platform, and determining a newly deployed cloud server corresponding to the target operation and maintenance platform according to the difference; aiming at the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the target operation and maintenance platform to the plurality of operation and maintenance platforms; and the sent information of the newly deployed cloud servers is used for triggering the operation and maintenance platforms to initialize the corresponding newly deployed cloud servers.
In one embodiment, traversing the plurality of operation and maintenance platforms, and determining second target server information which exists in a platform information table corresponding to the traversed operation and maintenance platform but does not exist in the cloud server information table; the second target server information comprises modified server information stored in the cloud; generating an information content verification prompt according to the second target server information; and sending the information content verification prompt to a terminal, wherein the information content verification prompt is used for prompting to confirm the second target server information.
In a second aspect, the present application further provides a newly added cloud server initializing device. The device comprises:
the cloud unit is used for acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
the platform unit is used for acquiring platform information tables corresponding to the operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is a platform for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
the determining unit is used for determining differences between the cloud server information table and each platform information table respectively and determining newly deployed cloud servers corresponding to each operation and maintenance platform according to the determined differences;
the sending unit is used for sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform aiming at each of the plurality of operation and maintenance platforms; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is a platform for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
determining differences between the cloud server information table and each platform information table, and determining new deployment cloud servers corresponding to each operation and maintenance platform according to the determined differences;
for each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is a platform for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
determining differences between the cloud server information table and each platform information table, and determining new deployment cloud servers corresponding to each operation and maintenance platform according to the determined differences;
for each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is a platform for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
determining differences between the cloud server information table and each platform information table, and determining new deployment cloud servers corresponding to each operation and maintenance platform according to the determined differences;
for each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
According to the method, the device, the computer equipment, the storage medium and the computer program product for initializing the newly-added cloud server, the server information on the cloud end and the server information of the operation and maintenance platform are firstly obtained, then the newly-deployed server and the corresponding server information on the cloud end are determined according to the difference between the server information on the cloud end and the server information on the operation and maintenance platform, and the determined server information is synchronized to the operation and maintenance platform for maintenance and management. The method and the device realize automatic synchronization of server information and automatic initialization of the server, further improve the efficiency of maintaining and managing the server on the cloud, and save the cost of manual maintenance and management.
Drawings
FIG. 1 is an application environment diagram of an initialization method of a newly added cloud server in one embodiment;
FIG. 2 is a flowchart illustrating an initialization method of a newly added cloud server according to an embodiment;
FIG. 3 is a flowchart illustrating an initialization method of a newly added cloud server in another embodiment;
FIG. 4 is a block diagram illustrating an initialization apparatus for a newly added cloud server in one embodiment;
FIG. 5 is a block diagram illustrating an initialization apparatus for a newly added cloud server according to another embodiment;
Fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The method for initializing the newly added cloud server provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The terminal 102 is configured to receive a prompt and a notification sent by the server 104, where the server 104 is configured to automatically initialize a new server and automatically synchronize server information of the new server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a method for initializing a newly added cloud server is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
step 202, acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud.
The cloud end is a software platform adopting an application program virtualization technology, and integrates multiple functions of software searching, downloading, using, managing, backing up and the like. Through the platform, various common software can be packaged in an independent virtualized environment, so that the application software cannot be coupled with a system, and the purpose of using the software in a green way is achieved. The cloud server refers to a server where an enterprise is deployed on the cloud, and the information of the cloud server refers to information of the server where the enterprise is deployed on the cloud, and the cloud server information table records information of all cloud servers deployed on the cloud. It is easy to understand that the information content recorded in the cloud server information table is not particularly limited, and can be correspondingly set according to different actual needs. All cloud servers deployed on the cloud at a certain moment comprise servers originally deployed on the cloud end at the moment and servers newly deployed on the cloud end at the moment.
Specifically, at a certain moment, a cloud server information table is obtained, and server information corresponding to all servers deployed on the current cloud is recorded in the cloud server information table, wherein the server information comprises server information corresponding to an original server deployed on a cloud end and server information corresponding to a newly deployed server on the cloud end. Wherein the server information includes a host name and an internet protocol address (i.e., IP address) of the server. The cloud server information table for recording the host names and the internet protocol addresses corresponding to all servers deployed on the current cloud is obtained at a certain moment. The method for acquiring the cloud server information table is not particularly limited, and the cloud server information table can be set according to actual needs. Optionally, in the first mode, the cloud server information table stores server information corresponding to a server in the cloud in real time according to the server deployed on the cloud, and the cloud server information table is directly called when the server needs to be obtained; the second mode is that when the cloud server information table needs to be acquired, the cloud server information table is generated on the cloud in real time according to server information corresponding to a server deployed on the cloud at the moment, and transmission is completed.
Step 204, obtaining platform information tables corresponding to the operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is used for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers.
The operation and maintenance management platform and the batch management platform belong to the operation and maintenance platform, and the operation and maintenance management platform and the batch management platform are used for maintaining and managing servers on the cloud in common. Specifically, after the operation and maintenance management platform obtains the server information corresponding to the server on the cloud, the security requirements of different users on the server access are realized. After the batch management platform obtains server information corresponding to the servers on the cloud, batch operation and management of the servers are achieved. The platform information table refers to information of part or all cloud servers which are deployed on the cloud by the operation and maintenance platform. Optionally, the platform information table at a certain moment includes server information corresponding to an originally deployed server on the cloud end at the moment. It is easy to understand that the information content recorded in the platform information table is not particularly limited, and can be correspondingly set according to different actual needs.
Specifically, a platform information table of a host name and an internet protocol address corresponding to an original server deployed on a current cloud is obtained from an operation and maintenance management platform. Note that the platform information table does not include a record of a host name and an internet protocol address corresponding to a newly deployed server deployed on the cloud. The mode of acquiring the platform information table of the operation and maintenance management platform is not particularly limited, and the operation and maintenance management platform can be set according to actual needs; and acquiring a platform information table for recording a host name and an internet protocol address corresponding to the original server deployed on the current cloud in the batch management platform. Note that the platform information table does not include a record of a host name and an internet protocol address corresponding to a newly deployed server deployed on the cloud. The method for obtaining the platform information table of the batch management platform is not particularly limited, and the method can be set according to actual needs. Optionally, the method for acquiring the platform information table of the operation and maintenance management platform or the batch management platform may be that after the operation and maintenance management platform or the batch management platform and the cloud end perform server information synchronization, the synchronized server information is stored in the operation and maintenance management platform or the batch management platform.
Step 206, determining differences between the cloud server information table and each platform information table, and determining new deployment cloud servers corresponding to each operation and maintenance platform according to the determined differences.
The cloud server information table records server information corresponding to an original deployed server on the cloud end at a certain moment and server information corresponding to a newly deployed server on the cloud end at the moment, and the platform information table records only server information corresponding to the original server on the cloud end at the same moment. The difference between the cloud server information table and the platform information table refers to server information corresponding to the newly deployed server on the cloud. The server information corresponding to the newly deployed servers on the cloud is only stored on the cloud, but not in the operation and maintenance platform, before automatic synchronization. Each server deployed on the cloud end has server information corresponding to the server information, so that the server information corresponding to the newly deployed server on the cloud end, which needs to be synchronized to the operation and maintenance platform, can be determined according to the determined newly deployed server on the cloud end.
Specifically, after a cloud server information table and an operation and maintenance management platform or a platform information table of a batch management platform on a cloud end are determined, comparing according to contents of the cloud server information table and the platform information table, specifically, determining differences of the cloud server information table and the platform information table, specifically, server host names and internet protocol addresses corresponding to newly deployed servers on a cloud according to server host names and internet protocol addresses recorded in the cloud server information table and server host names and internet protocol addresses recorded in the platform information table. And then further determining the newly deployed cloud server on the cloud according to the server host name and the Internet protocol address corresponding to the newly deployed server on the cloud. As will be readily understood, the cloud server in this application refers to a server on the cloud end.
Step 208, for each of the plurality of operation and maintenance platforms, sending information of the newly deployed cloud server corresponding to the operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
Where initializing refers to the practice of initializing data objects or variables in the computer field, how to initialize depends on the programming language used and the storage type of the object to be initialized. In the application, initializing the newly deployed cloud server refers to restoring the server on the cloud end to the original state, and the data in the server can be emptied. As will be readily understood, the main body for initializing the newly deployed cloud server is not particularly limited, and may be set according to different actual needs. Optionally, the cloud end sends information of the newly deployed server on the cloud end to the batch management platform, and after receiving the information of the newly deployed server on the cloud end sent by the cloud end, the batch management platform initializes the newly deployed server on the cloud end according to the information of the newly deployed server on the cloud end.
Specifically, server information corresponding to the newly deployed cloud server on the cloud end is obtained according to the newly deployed cloud server on the cloud end. And sending the server information corresponding to the newly deployed cloud server on the cloud to an operation and maintenance management platform or a batch management platform, so that the operation and maintenance management platform or the batch management platform can perform initialization configuration work on the newly deployed cloud server according to the server information corresponding to the newly deployed cloud server on the cloud after receiving the server information corresponding to the newly deployed cloud server on the cloud. It is easy to understand that the specific initialization process is not limited obviously, and can be set according to actual needs.
Optionally, the specific initialization process includes modifying a host name of the newly deployed cloud server, setting a connection timeout time of the server system for the deployment service, and setting a login of the server. The method specifically comprises the following steps: modifying the host name of the newly deployed cloud server according to a preset server naming format; setting a connection timeout time of a server system for deploying a service to 30 minutes; setting the login password requirement of the newly deployed cloud server to 8 bits and a character string containing three character types; after the setting fails to log in the newly deployed cloud server 10 times, the stand horse locks the newly deployed cloud server for 30 minutes; adding a network protocol for encrypting and logging in between different computers; configuring a user to log in without password; the rights of the user to avoid secret are added.
In one embodiment, when the cloud server information table needs to be acquired, extracting a host name and an internet protocol address of each cloud server from a storage library on the cloud for storing the cloud server information, and finally obtaining the cloud server information table; when the platform information table is required to be acquired, the host name and the internet protocol address of each cloud server are extracted from a storage library for storing the cloud server information in the operation and maintenance platform, and the platform information table corresponding to each operation and maintenance platform is generated.
In one embodiment, server information stored in the cloud is acquired based on a server information acquisition interface corresponding to the cloud; generating the cloud server information table based on the obtained server information stored in the cloud; the platform information table corresponding to each of the plurality of operation and maintenance platforms comprises: based on the server information acquisition interface corresponding to each operation and maintenance platform, acquiring the server information stored in the corresponding operation and maintenance platform; and generating a platform information table corresponding to each operation and maintenance platform based on the acquired server information stored by each operation and maintenance platform.
Specifically, when the cloud server information table needs to be acquired, acquiring cloud server information on a cloud end through a cloud server information acquisition interface, and then acquiring the cloud server information table according to the acquired cloud server information on the cloud end based on the host name and the internet protocol address of the server. For example when a cloud server information table needs to be obtained. The cloud server information on the cloud is obtained through a cloud server information obtaining interface, server resources, namely cloud server information on the cloud end, and then the cloud server information on the cloud is filtered according to a host naming rule, namely a preset server naming format, an interested field, namely a host name and an Internet protocol address of the server, so that a list only comprising the host name and the Internet protocol address of the server, namely a cloud server information list is generated; when the platform information table is required to be acquired, cloud server information on the operation and maintenance platform is acquired through a cloud server information acquisition interface, and then the platform information table corresponding to each operation and maintenance platform is generated according to the acquired cloud server information on the operation and maintenance platform based on the host name and the Internet protocol address of the server. For example, when a platform information table needs to be acquired. And the cloud server information on the operation and maintenance platform is filtered according to a host naming rule, namely a preset server naming format, an interested field, namely a host name and an Internet protocol address of the server, and a list, namely a platform information list, which only comprises the host name and the Internet protocol address of the server is generated.
Because the cloud server information recorded by the cloud server information acquisition interfaces corresponding to the cloud server and the operation and maintenance platform is acquired, the acquisition process of the cloud server information is greatly simplified, and the acquisition of the cloud server information becomes more efficient.
In one embodiment, access credentials in a cloud profile are read; based on the read access credentials in the cloud configuration file, calling the server information acquisition interface corresponding to the cloud to acquire server information stored in the cloud; the server information obtaining interface based on the respective corresponding server information of each operation and maintenance platform obtains the server information stored in the corresponding operation and maintenance platform, and the server information obtaining interface comprises: reading access credentials in the operation and maintenance platform configuration files corresponding to each operation and maintenance platform; and calling a server information acquisition interface corresponding to the corresponding operation and maintenance platform based on the access certificate in each read operation and maintenance platform configuration file so as to obtain the server information stored by the corresponding operation and maintenance platform.
Specifically, when the cloud server information table needs to be acquired, an access credential for accessing the cloud server information acquisition interface in the cloud configuration file is read. After the cloud server information is read, the cloud server information acquisition interface can be called, and server information stored in the cloud is acquired through the cloud server information acquisition interface; when the platform information table needs to be acquired, reading an access certificate for accessing the cloud server information acquisition interface in the operation and maintenance platform. After the cloud server information is read, the cloud server information acquisition interface can be called, and the server information stored in the operation and maintenance platform is acquired through the cloud server information acquisition interface.
Because the cloud server information stored in the cloud and the operation and maintenance platform is acquired by means of calling the cloud server information acquisition interface by reading the access credentials for accessing the cloud server information acquisition interface in the cloud and the operation and maintenance platform configuration files, the acquisition process of the cloud server information is greatly simplified, and the acquisition of the cloud server information becomes more efficient.
In one embodiment, for each of the plurality of operation and maintenance platforms, determining first target server information existing in the cloud server information table but not in a platform information table corresponding to the current operation and maintenance platform; and determining a newly deployed cloud server corresponding to the current operation and maintenance platform according to the first target server information.
Specifically, after the cloud server information table and the platform information table are determined, the cloud server information table and the platform information table are compared, cloud server information which exists in the cloud server information table but does not exist in the platform information table is found, and the cloud server information which needs to be newly added to the current operation and maintenance platform is determined according to the cloud server information. And sending the cloud server information which needs to be newly added to the current operation and maintenance platform to the terminal for prompting to update the content.
After the cloud server information table and the platform information table are compared, the obtained server information which exists in the cloud server information table but does not exist in the platform information table is directly the cloud server information which needs to be newly added in the current operation and maintenance platform, so that the content which needs to be updated can be rapidly and intuitively determined.
In one embodiment, the cloud server information table records internet protocol addresses and server identifications of all cloud servers deployed in the cloud; the platform information corresponding to the current operation and maintenance platform records the Internet protocol address and the server identification of at least part of cloud servers deployed in the cloud; the first target server information includes a first target internet protocol address and a first target server identification; the determining the first target server information existing in the cloud server information table but not in the platform information table corresponding to the current operation and maintenance platform includes: determining a first target Internet protocol address and a first target server identifier which exist in the cloud server information table but do not exist in a platform information table corresponding to the current operation and maintenance platform; the determining, according to the first target server information, a newly deployed cloud server corresponding to the current operation and maintenance platform includes: and taking the first target Internet protocol address and the cloud server pointed by the first target server identifier as a newly deployed cloud server corresponding to the current operation and maintenance platform.
In one embodiment, the cloud server information table records internet protocol addresses and hostnames of all cloud servers deployed in the cloud; the platform information corresponding to the current operation and maintenance platform records the Internet protocol address and the host name of at least part of cloud servers deployed in the cloud; the first target server information includes a first target internet protocol address and a first target hostname; the determining the first target server information existing in the cloud server information table but not in the platform information table corresponding to the current operation and maintenance platform includes: determining a first target internet protocol address and a first target host name which exist in the cloud server information table but do not exist in a platform information table corresponding to the current operation and maintenance platform; the determining, according to the first target server information, a newly deployed cloud server corresponding to the current operation and maintenance platform includes: and taking the first target Internet protocol address and the cloud server pointed by the first target host name as a newly deployed cloud server corresponding to the current operation and maintenance platform.
Specifically, after the cloud server information table and the platform information table are determined, comparing the internet protocol address and the host name in the cloud server information table and the platform information table, finding out the internet protocol address and the host name which exist in the cloud server information table but do not exist in the platform information table, and determining the cloud server information which needs to be newly added in the current operation and maintenance platform according to the internet protocol address and the host name. The cloud server information which needs to be newly added in the current operation and maintenance platform is sent to the terminal and used for prompting updating content; searching an internet protocol address and a host name which exist in a platform information table but do not exist in a cloud server information table, determining cloud server information which needs to be confirmed by a current operation and maintenance platform according to the internet protocol address and the host name, and sending the cloud server information which needs to be confirmed by the current operation and maintenance platform to a terminal for prompting confirmation content.
Because the internet protocol address and the host name are used as the comparison standard, the cloud server information to be confirmed or the cloud server information to be synchronously added can be rapidly and accurately screened according to the difference between the internet protocol address and the host name between the cloud server information table and the platform information table.
In one embodiment, the server hostnames deployed in the cloud are named according to a naming format of preset server hostnames, which is business line name-usage team-deployed service identifier-environment identifier. For each of the plurality of operation and maintenance platforms, acquiring a host name and an internet protocol address of a newly deployed server corresponding to the operation and maintenance platform to which the operation and maintenance platform is directed, and transmitting the host name and the internet protocol address to the operation and maintenance platform to which the operation and maintenance platform is directed; the sent host name is used for triggering the aimed operation and maintenance platform to store so as to obtain server information stored in the aimed operation and maintenance platform.
In one embodiment, a server deployed in the cloud is named according to a preset server naming format to obtain a multidimensional name of the server deployed in the cloud; the multidimensional name at least comprises a host name, an Internet protocol address, a business line name and a use team name; the sending, for each of the plurality of operation and maintenance platforms, information of a newly deployed cloud server corresponding to the operation and maintenance platform in question includes: for each of the plurality of operation and maintenance platforms, acquiring a multi-dimensional name of a newly deployed server corresponding to the aimed operation and maintenance platform, and sending the multi-dimensional name to the aimed operation and maintenance platform; the sent multidimensional name is used for triggering the aimed operation and maintenance platform to store so as to obtain server information stored in the aimed operation and maintenance platform.
Specifically, the naming format of the preset cloud server is business line name-use team-deployed service identifier-environment identifier-host name-internet protocol address, and the format of the multidimensional name of the newly deployed cloud server also follows business line name-use team-deployed service identifier-environment identifier-host name-internet protocol address. When the cloud end and the operation and maintenance platform are in information synchronization, a specific multi-dimensional name corresponding to each newly deployed cloud end server on the cloud end is sent to the operation and maintenance platform, and the operation and maintenance platform is triggered to store server information corresponding to each newly deployed cloud end server on the cloud end.
The cloud server deployed on the cloud end is named uniformly through the preset naming format of the cloud server, so that the cloud server information needing to be confirmed or the cloud server information needing to be added synchronously can be screened out quickly and accurately.
In one embodiment, when determining that the plurality of operation and maintenance platforms meet the migration condition of the deployment cloud server according to the difference between the information of each first target server, selecting any operation and maintenance platform from the plurality of operation and maintenance platforms as a target operation and maintenance platform; determining a newly deployed cloud server corresponding to the target operation and maintenance platform according to the difference between the cloud server information table and the platform information table corresponding to the target operation and maintenance platform; and taking the newly deployed cloud server corresponding to the target operation and maintenance platform as the newly deployed cloud server corresponding to the rest operation and maintenance platforms except the target operation and maintenance platform in the operation and maintenance platforms.
Specifically, the first target server information includes an IP address and a host identity. According to the difference between the IP address and the host identity, when the number of the IP addresses and the host identity included in each piece of first target server information is approximate, the cloud server migration condition is satisfied. At this time, any one operation and maintenance platform is selected as a target operation and maintenance platform from the operation and maintenance platforms meeting the migration conditions. And determining a newly-added cloud server to be newly-added for the target operation and maintenance platform according to the difference between the platform information table and the cloud server information table in the target operation and maintenance platform, and synchronizing server information corresponding to the newly-added cloud server to all operation and maintenance platforms meeting migration conditions.
Because only any one operation and maintenance platform is selected from the operation and maintenance platforms as a target operation and maintenance platform, namely only the cloud server information table is compared with the platform information table corresponding to one operation and maintenance platform, the synchronization efficiency of the server information is greatly improved.
In one embodiment, traversing the plurality of operation and maintenance platforms, and determining second target server information which exists in a platform information table corresponding to the traversed operation and maintenance platform but does not exist in the cloud server information table; the second target server information comprises modified server information stored by the cloud; generating an information content verification prompt according to the second target server information; and sending the information content verification prompt to the terminal, wherein the information content verification prompt is used for prompting to confirm the second target server information.
Specifically, traversing the operation and maintenance platforms, finding out cloud server information which exists in a platform information table but does not exist in a cloud server information table, determining cloud server information which needs to be confirmed by the current operation and maintenance platform according to the cloud server information, and sending the cloud server information which needs to be confirmed by the current operation and maintenance platform to a terminal for prompting confirmation content.
According to the difference between the cloud server information table and the platform information table, targeted selection prompts to confirm and prompt update are adopted, so that more comprehensive and accurate operation and management on the cloud deployed server are realized.
In one embodiment, as shown in FIG. 3, the steps include:
step 302, naming servers deployed in the cloud according to a preset server naming format to obtain multi-dimensional names of the servers deployed in the cloud; the multidimensional name at least comprises a host name, an Internet protocol address, a business line name and a use team name;
step 304, reading an access certificate in the cloud configuration file; based on the read access credentials in the cloud configuration file, calling the server information acquisition interface corresponding to the cloud to acquire server information stored in the cloud;
Step 306, reading access credentials in the operation and maintenance platform configuration files corresponding to each operation and maintenance platform; calling a server information acquisition interface corresponding to the corresponding operation and maintenance platform based on the access certificate in each read operation and maintenance platform configuration file so as to obtain server information stored by the corresponding operation and maintenance platform;
step 308, determining a first target internet protocol address and a first target hostname existing in the cloud server information table but not in a platform information table corresponding to the current operation and maintenance platform; the determining, according to the first target server information, a newly deployed cloud server corresponding to the current operation and maintenance platform includes: the first target Internet protocol address and the cloud server pointed by the first target host name are used as a newly deployed cloud server corresponding to the current operation and maintenance platform;
step 310, traversing the plurality of operation and maintenance platforms, and determining second target server information which exists in a platform information table corresponding to the traversed operation and maintenance platform but does not exist in the cloud server information table; the second target server information comprises modified server information stored by the cloud; generating an information content verification prompt according to the second target server information; and sending the information content verification prompt to the terminal, wherein the information content verification prompt is used for prompting to confirm the second target server information.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts referred to in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the execution of the steps or stages is not necessarily sequential, but may be performed in turn or alternately with at least some of the other steps or stages.
The application scenario also provides an application scenario, and the application scenario applies the initialization method of the newly added cloud server. Specifically, the application of the newly added cloud server initialization method in the application scene is as follows:
and deploying projects on the server, setting timing tasks, and acquiring a cloud server resource list at fixed time. If new resources appear, server resource maintenance, server initialization and server information synchronization are performed through the following commands.
Acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is used for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
determining differences between the cloud server information table and each platform information table respectively, and determining newly deployed cloud servers corresponding to each operation and maintenance platform according to the determined differences;
for each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
The application further provides an application scene, and the application scene applies the initialization method of the newly added cloud server. Specifically, the application of the newly added cloud server initialization method in the application scene is as follows:
After the operation and maintenance or development personnel purchase the server newly, the project is actively triggered on the server deploying the project through the following commands, and the server resource maintenance, the server initialization and the server information synchronization are carried out on the new purchase server.
Acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is used for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
determining differences between the cloud server information table and each platform information table respectively, and determining newly deployed cloud servers corresponding to each operation and maintenance platform according to the determined differences;
for each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
The above application scenario is only illustrative, and it can be understood that the application of the method for initializing the newly added cloud server provided in the embodiments of the present application is not limited to the above scenario.
Based on the same inventive concept, the embodiment of the application also provides a newly added cloud server initialization device for implementing the above related newly added cloud server initialization method. The implementation scheme of the solution to the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitation in the embodiments of the one or more newly added cloud server initialization devices provided below may be referred to the limitation of the newly added cloud server initialization method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 4, there is provided a newly added cloud server initialization apparatus 400, including: cloud unit 402, platform unit 404, determination unit 406, and sending unit 408, wherein:
the cloud unit 402 is configured to obtain a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
the platform unit 404 is configured to obtain a platform information table corresponding to each of the plurality of operation and maintenance platforms; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is used for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
The determining unit 406 is configured to determine differences between the cloud server information table and each of the platform information tables, and determine newly deployed cloud servers corresponding to each of the operation and maintenance platforms according to the determined differences;
a sending unit 408, configured to send, for each of the plurality of operation and maintenance platforms, information of a newly deployed cloud server corresponding to the operation and maintenance platform to which the operation and maintenance platform is directed; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
Optionally, referring to fig. 5, fig. 5 is a block diagram of a new cloud server initialization device in another embodiment. As shown in fig. 5, there is provided a newly added cloud server initialization apparatus 400, including: cloud unit 402, platform unit 404, determination unit 406, and transmission unit 408. The newly added cloud server initialization apparatus 400 further includes a preset unit 410, a selection unit 412, and a confirmation unit 414.
All or part of the modules in the newly-added cloud server initialization device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data related to the initialization of the newly added cloud server. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by the processor, implements a method for initializing a newly added cloud server.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is used for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
Determining differences between the cloud server information table and each platform information table respectively, and determining newly deployed cloud servers corresponding to each operation and maintenance platform according to the determined differences;
for each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring server information stored in the cloud based on a server information acquisition interface corresponding to the cloud;
generating the cloud server information table based on the obtained server information stored in the cloud;
the platform information table corresponding to each of the plurality of operation and maintenance platforms comprises:
based on the server information acquisition interface corresponding to each operation and maintenance platform, acquiring the server information stored in the corresponding operation and maintenance platform;
and generating a platform information table corresponding to each operation and maintenance platform based on the acquired server information stored by each operation and maintenance platform.
In one embodiment, the processor when executing the computer program further performs the steps of:
reading an access credential in the cloud configuration file;
based on the read access credentials in the cloud configuration file, calling the server information acquisition interface corresponding to the cloud to acquire server information stored in the cloud;
the server information obtaining interface based on the respective corresponding server information of each operation and maintenance platform obtains the server information stored in the corresponding operation and maintenance platform, and the server information obtaining interface comprises:
reading access credentials in the operation and maintenance platform configuration files corresponding to each operation and maintenance platform;
and calling a server information acquisition interface corresponding to the corresponding operation and maintenance platform based on the access certificate in each read operation and maintenance platform configuration file so as to obtain the server information stored by the corresponding operation and maintenance platform.
In one embodiment, the processor when executing the computer program further performs the steps of:
for each of the plurality of operation and maintenance platforms, determining first target server information which exists in the cloud server information table but does not exist in a platform information table corresponding to the current operation and maintenance platform;
and determining a newly deployed cloud server corresponding to the current operation and maintenance platform according to the first target server information.
In one embodiment, the processor when executing the computer program further performs the steps of:
the cloud server information table records internet protocol addresses and host names of all cloud servers deployed in the cloud; the platform information corresponding to the current operation and maintenance platform records the Internet protocol address and the host name of at least part of cloud servers deployed in the cloud; the first target server information includes a first target internet protocol address and a first target hostname;
the determining the first target server information existing in the cloud server information table but not in the platform information table corresponding to the current operation and maintenance platform includes:
determining a first target internet protocol address and a first target host name which exist in the cloud server information table but do not exist in a platform information table corresponding to the current operation and maintenance platform;
the determining, according to the first target server information, a newly deployed cloud server corresponding to the current operation and maintenance platform includes:
and taking the first target Internet protocol address and the cloud server pointed by the first target host name as a newly deployed cloud server corresponding to the current operation and maintenance platform.
In one embodiment, the processor when executing the computer program further performs the steps of:
naming servers deployed in the cloud according to a preset server naming format to obtain multi-dimensional names of the servers deployed in the cloud; the multidimensional name at least comprises a host name, an Internet protocol address, a business line name and a use team name;
the sending, for each of the plurality of operation and maintenance platforms, information of a newly deployed cloud server corresponding to the operation and maintenance platform in question includes:
for each of the plurality of operation and maintenance platforms, acquiring a multi-dimensional name of a newly deployed server corresponding to the aimed operation and maintenance platform, and sending the multi-dimensional name to the aimed operation and maintenance platform;
the sent multidimensional name is used for triggering the aimed operation and maintenance platform to store so as to obtain server information stored in the aimed operation and maintenance platform.
In one embodiment, the processor when executing the computer program further performs the steps of:
when the plurality of operation and maintenance platforms are determined to meet the migration condition of the deployment cloud server according to the difference between the information of the first target servers, selecting any operation and maintenance platform from the plurality of operation and maintenance platforms as a target operation and maintenance platform; determining a newly deployed cloud server corresponding to the target operation and maintenance platform according to the difference between the cloud server information table and the platform information table corresponding to the target operation and maintenance platform; and taking the newly deployed cloud server corresponding to the target operation and maintenance platform as the newly deployed cloud server corresponding to the rest operation and maintenance platforms except the target operation and maintenance platform in the operation and maintenance platforms.
In one embodiment, the processor when executing the computer program further performs the steps of:
traversing the plurality of operation and maintenance platforms, and determining second target server information which exists in a platform information table corresponding to the traversed operation and maintenance platform but does not exist in the cloud server information table; the second target server information comprises modified server information stored by the cloud;
generating an information content verification prompt according to the second target server information;
and sending the information content verification prompt to the terminal, wherein the information content verification prompt is used for prompting to confirm the second target server information.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is used for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
Determining differences between the cloud server information table and each platform information table respectively, and determining newly deployed cloud servers corresponding to each operation and maintenance platform according to the determined differences;
for each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud;
acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is used for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers;
Determining differences between the cloud server information table and each platform information table respectively, and determining newly deployed cloud servers corresponding to each operation and maintenance platform according to the determined differences;
for each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; and the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as Static Random access memory (Static Random access memory AccessMemory, SRAM) or dynamic Random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.
Claims (10)
1. The method for initializing the newly added cloud server is characterized by comprising the following steps:
acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud; the cloud server information table records internet protocol addresses and host names of all cloud servers deployed in the cloud; the internet protocol addresses and the host names of all cloud servers deployed in the cloud are obtained by acquiring cloud server information of all cloud servers deployed in the cloud and filtering the acquired cloud server information according to a host naming rule;
Acquiring platform information tables corresponding to a plurality of operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is a platform for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers; the platform information table records internet protocol addresses and host names of at least part of cloud servers deployed in the cloud; the Internet protocol address and the host name of at least part of the cloud server are extracted from a storage library in the corresponding operation and maintenance platform; the host name and the Internet protocol address stored in the storage device are obtained from the cloud end synchronously; for each of the plurality of operation and maintenance platforms, determining a first target internet protocol address and a first target host name which exist in the cloud server information table but do not exist in a platform information table corresponding to the current operation and maintenance platform;
the cloud server pointed by the first target Internet protocol address and the first target host name is used as a newly deployed cloud server corresponding to the current operation and maintenance platform;
For each of the plurality of operation and maintenance platforms, sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform; the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers;
traversing the operation and maintenance platforms, finding out a second target internet protocol address and a second target host name which exist in a platform information table but do not exist in a cloud server information table, and determining cloud server information which needs to be confirmed by the current operation and maintenance platform according to the second internet protocol address and the second host name; generating an information content verification prompt according to the cloud server information to be confirmed;
and sending the information content verification prompt to a terminal, wherein the information content verification prompt is used for prompting the confirmation of the cloud server information required to be confirmed.
2. The method of claim 1, wherein the obtaining a cloud server information table comprises:
acquiring server information stored in the cloud based on a server information acquisition interface corresponding to the cloud;
Generating the cloud server information table based on the obtained server information stored in the cloud;
the platform information table corresponding to each of the plurality of operation and maintenance platforms comprises:
based on the server information acquisition interface corresponding to each operation and maintenance platform, acquiring the server information stored in the corresponding operation and maintenance platform;
and generating a platform information table corresponding to each operation and maintenance platform based on the acquired server information stored by each operation and maintenance platform.
3. The method according to claim 2, wherein the obtaining server information stored in the cloud based on the server information obtaining interface corresponding to the cloud includes:
reading an access credential in the cloud configuration file;
based on the access credentials in the read cloud configuration file, calling the server information acquisition interface corresponding to the cloud to acquire server information stored in the cloud;
the server information obtaining interface based on the respective corresponding server information of each operation and maintenance platform obtains the server information stored in the corresponding operation and maintenance platform, and the method comprises the following steps:
reading access credentials in the operation and maintenance platform configuration files corresponding to each operation and maintenance platform;
and calling a server information acquisition interface corresponding to the corresponding operation and maintenance platform based on the access certificate in each read operation and maintenance platform configuration file so as to obtain the server information stored by the corresponding operation and maintenance platform.
4. The method of claim 1, wherein prior to the obtaining the cloud server information table, the method further comprises:
naming servers deployed in the cloud according to a preset server naming format to obtain multi-dimensional names of the servers deployed in the cloud; the multidimensional name at least comprises a host name, an Internet protocol address, a business line name and a use team name;
the sending, for each of the plurality of operation and maintenance platforms, information of a newly deployed cloud server corresponding to the operation and maintenance platform, including:
for each of the plurality of operation and maintenance platforms, acquiring a multi-dimensional name of a newly deployed server corresponding to the aimed operation and maintenance platform, and sending the multi-dimensional name to the aimed operation and maintenance platform;
and the transmitted multidimensional name is used for triggering the aimed operation and maintenance platform to store so as to obtain server information stored in the aimed operation and maintenance platform.
5. The method of claim 1, wherein the difference between each cloud server information table and each platform information table includes first target server information that exists in the cloud server information table but does not exist in the platform information table corresponding to the corresponding operation and maintenance platform; the method further comprises the steps of:
When the plurality of operation and maintenance platforms are determined to meet the migration condition of the deployment cloud server according to the difference between the information of the first target servers, selecting any operation and maintenance platform from the plurality of operation and maintenance platforms as a target operation and maintenance platform;
determining a newly deployed cloud server corresponding to the target operation and maintenance platform according to the difference between the cloud server information table and the platform information table corresponding to the target operation and maintenance platform;
and taking the newly deployed cloud servers corresponding to the target operation and maintenance platform as the newly deployed cloud servers corresponding to the rest operation and maintenance platforms except the target operation and maintenance platform in the operation and maintenance platforms.
6. A newly added cloud server initialization apparatus, the apparatus comprising:
the cloud unit is used for acquiring a cloud server information table; the cloud server information table records information of all cloud servers deployed in the cloud; the cloud server information table records internet protocol addresses and host names of all cloud servers deployed in the cloud; the internet protocol addresses and the host names of all cloud servers deployed in the cloud are obtained by acquiring cloud server information of all cloud servers deployed in the cloud and filtering the acquired cloud server information according to a host naming rule;
The platform unit is used for acquiring platform information tables corresponding to the operation and maintenance platforms respectively; each platform information table records information of at least part of cloud servers deployed in the cloud; the operation and maintenance platforms at least comprise an operation and maintenance management platform and a batch management platform; the operation and maintenance management platform is a platform for safely accessing the cloud server; the batch management platform is used for carrying out batch management on the cloud servers; the platform information table records internet protocol addresses and host names of at least part of cloud servers deployed in the cloud; the Internet protocol address and the host name of at least part of the cloud server are extracted from a storage library in the corresponding operation and maintenance platform; the host name and the Internet protocol address stored in the storage device are obtained from the cloud end synchronously;
the determining unit is used for determining a first target internet protocol address and a first target host name which exist in the cloud server information table but do not exist in the platform information table corresponding to the current operation and maintenance platform for each of the plurality of operation and maintenance platforms;
the cloud server pointed by the first target Internet protocol address and the first target host name is used as a newly deployed cloud server corresponding to the current operation and maintenance platform;
The sending unit is used for sending information of a newly deployed cloud server corresponding to the aimed operation and maintenance platform aiming at each of the plurality of operation and maintenance platforms; the sent information of the newly deployed cloud servers is used for triggering the aimed operation and maintenance platform to initialize the corresponding newly deployed cloud servers;
the confirming unit is used for traversing the operation and maintenance platforms, finding out a second target internet protocol address and a second target host name which exist in the platform information table but do not exist in the cloud server information table, and determining cloud server information which needs to be confirmed by the current operation and maintenance platform according to the second internet protocol address and the second host name;
generating an information content verification prompt according to the cloud server information to be confirmed;
and sending the information content verification prompt to a terminal, wherein the information content verification prompt is used for prompting the confirmation of the cloud server information required to be confirmed.
7. The apparatus of claim 6, wherein the cloud unit is configured to obtain server information stored in the cloud based on a server information obtaining interface corresponding to the cloud;
Generating the cloud server information table based on the obtained server information stored in the cloud;
the platform information table corresponding to each of the plurality of operation and maintenance platforms comprises:
based on the server information acquisition interface corresponding to each operation and maintenance platform, acquiring the server information stored in the corresponding operation and maintenance platform;
and generating a platform information table corresponding to each operation and maintenance platform based on the acquired server information stored by each operation and maintenance platform.
8. The apparatus of claim 7, wherein the cloud unit is configured to read access credentials in a cloud configuration file;
based on the access credentials in the read cloud configuration file, calling the server information acquisition interface corresponding to the cloud to acquire server information stored in the cloud;
the server information obtaining interface based on the respective corresponding server information of each operation and maintenance platform obtains the server information stored in the corresponding operation and maintenance platform, and the method comprises the following steps:
reading access credentials in the operation and maintenance platform configuration files corresponding to each operation and maintenance platform;
and calling a server information acquisition interface corresponding to the corresponding operation and maintenance platform based on the access certificate in each read operation and maintenance platform configuration file so as to obtain the server information stored by the corresponding operation and maintenance platform.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310932195.2A CN116684282B (en) | 2023-07-27 | 2023-07-27 | Method and device for initializing newly-added cloud server and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310932195.2A CN116684282B (en) | 2023-07-27 | 2023-07-27 | Method and device for initializing newly-added cloud server and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116684282A CN116684282A (en) | 2023-09-01 |
CN116684282B true CN116684282B (en) | 2024-01-16 |
Family
ID=87784049
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310932195.2A Active CN116684282B (en) | 2023-07-27 | 2023-07-27 | Method and device for initializing newly-added cloud server and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116684282B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN206302432U (en) * | 2017-01-04 | 2017-07-04 | 路跃 | A kind of cloud control system |
CN107172208A (en) * | 2017-06-30 | 2017-09-15 | 联想(北京)有限公司 | The dispositions method and its system of server |
KR102142045B1 (en) * | 2019-11-28 | 2020-08-06 | 주식회사 넷앤드 | A server auditing system in a multi cloud environment |
CN111580833A (en) * | 2019-02-18 | 2020-08-25 | 北京京东尚科信息技术有限公司 | Application updating method and system, local management agent device and cloud server |
CN112929439A (en) * | 2021-02-04 | 2021-06-08 | 网络通信与安全紫金山实验室 | Equipment discovery method and system based on identification analysis |
CN113992698A (en) * | 2021-09-18 | 2022-01-28 | 杭州涂鸦信息技术有限公司 | Intelligent device management method, gateway and computer readable storage medium |
CN114079655A (en) * | 2020-08-03 | 2022-02-22 | 中检赛辰技术服务有限公司 | Intelligent equipment internet data cross-boundary test verification method |
CN115051932A (en) * | 2022-06-16 | 2022-09-13 | 贵州宇豪科技发展有限公司 | Cloud platform-based remote intelligent operation and maintenance management method for data center |
WO2023024435A1 (en) * | 2021-08-25 | 2023-03-02 | 上海商汤智能科技有限公司 | Device registration method and apparatus, electronic device, storage medium, and computer program product |
-
2023
- 2023-07-27 CN CN202310932195.2A patent/CN116684282B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN206302432U (en) * | 2017-01-04 | 2017-07-04 | 路跃 | A kind of cloud control system |
CN107172208A (en) * | 2017-06-30 | 2017-09-15 | 联想(北京)有限公司 | The dispositions method and its system of server |
CN111580833A (en) * | 2019-02-18 | 2020-08-25 | 北京京东尚科信息技术有限公司 | Application updating method and system, local management agent device and cloud server |
KR102142045B1 (en) * | 2019-11-28 | 2020-08-06 | 주식회사 넷앤드 | A server auditing system in a multi cloud environment |
CN114079655A (en) * | 2020-08-03 | 2022-02-22 | 中检赛辰技术服务有限公司 | Intelligent equipment internet data cross-boundary test verification method |
CN112929439A (en) * | 2021-02-04 | 2021-06-08 | 网络通信与安全紫金山实验室 | Equipment discovery method and system based on identification analysis |
WO2023024435A1 (en) * | 2021-08-25 | 2023-03-02 | 上海商汤智能科技有限公司 | Device registration method and apparatus, electronic device, storage medium, and computer program product |
CN113992698A (en) * | 2021-09-18 | 2022-01-28 | 杭州涂鸦信息技术有限公司 | Intelligent device management method, gateway and computer readable storage medium |
CN115051932A (en) * | 2022-06-16 | 2022-09-13 | 贵州宇豪科技发展有限公司 | Cloud platform-based remote intelligent operation and maintenance management method for data center |
Also Published As
Publication number | Publication date |
---|---|
CN116684282A (en) | 2023-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210273972A1 (en) | Dynamic Hierarchical Tagging System and Method | |
US10268835B2 (en) | Hosted application gateway architecture with multi-level security policy and rule promulgations | |
WO2020168692A1 (en) | Mass data sharing method, open sharing platform and electronic device | |
CN111935110B (en) | Method and device for controlling permission of tenant to access container instance | |
US10089371B2 (en) | Extensible extract, transform and load (ETL) framework | |
US10824756B2 (en) | Hosted application gateway architecture with multi-level security policy and rule promulgations | |
CN113254534B (en) | Data synchronization method, device and computer storage medium | |
CN107580032B (en) | Data processing method, device and equipment | |
CN108156030B (en) | Method and device for synchronizing configuration strategies | |
CN110022315A (en) | Weight management method, device and equipment in a kind of piece of chain type account book | |
US20150350308A1 (en) | Systems and methods for locating application-specific data on a remote endpoint computer | |
US9665732B2 (en) | Secure Download from internet marketplace | |
US20150020167A1 (en) | System and method for managing files | |
US10318330B2 (en) | Data-persisting temporary virtual machine environments | |
CN110865981A (en) | File access method for mobile terminal and mobile terminal thereof | |
CN115658794B (en) | Data query method, device, computer equipment and storage medium | |
CN116684282B (en) | Method and device for initializing newly-added cloud server and computer equipment | |
US20220075769A1 (en) | Logfile collection and consolidation | |
US10951600B2 (en) | Domain authentication | |
CN113312669B (en) | Password synchronization method, device and storage medium | |
US20220345517A1 (en) | Unified application management for heterogeneous application delivery | |
CN112861185A (en) | Data automatic deformation transmission method based on Hive data warehouse | |
CN113127419B (en) | File detection method, device, computer equipment and storage medium | |
TW201403362A (en) | Managing large data sets through page based information tracking in multi-master environments | |
US11423046B2 (en) | Mechanism for replication and population of a data subset in Hadoop from a private network to a public cloud instance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |