CN113220439B - Device online control method and device, electronic device and readable storage medium - Google Patents
Device online control method and device, electronic device and readable storage medium Download PDFInfo
- Publication number
- CN113220439B CN113220439B CN202110621087.4A CN202110621087A CN113220439B CN 113220439 B CN113220439 B CN 113220439B CN 202110621087 A CN202110621087 A CN 202110621087A CN 113220439 B CN113220439 B CN 113220439B
- Authority
- CN
- China
- Prior art keywords
- online
- target
- resource attribute
- equipment
- service type
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- 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
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a device online control method, a device, an electronic device and a readable storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining target resource attributes of target equipment, determining a target service type corresponding to the target resource attributes, determining a target equipment online flow corresponding to the target service type, and controlling the target equipment to be online according to the execution sequence of M online steps included in the target equipment online flow. Therefore, M online steps included in the target equipment online process are not required to be manually executed, the steps included in the target equipment online process are automatically controlled to be sequentially executed, and accordingly the target equipment is controlled to be online, time and labor cost required by the equipment online are saved, and the equipment online efficiency is improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for controlling online device, an electronic device, and a readable storage medium.
Background
A device requires a complex set of online procedures from delivery to final service provision, including, for example, system installation, service deployment, environment configuration, etc. The up-line procedure required by the devices providing different services also includes different steps and execution sequences of the steps.
Because the number of services and devices is huge and the types of services and devices are various, the current on-line process of the devices is performed manually, for example, if the steps included in the on-line process of a certain device are system installation, service deployment and environment configuration in sequence, the operations of system installation, service deployment and environment configuration need to be performed manually in sequence, so that the current on-line process of the devices is time-consuming and wastes labor cost.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for controlling equipment to be online, electronic equipment and a readable storage medium, so as to solve the problems that the existing equipment online process is time-consuming and labor cost is wasted. The specific technical scheme is as follows:
in a first aspect of the present invention, there is first provided an on-line control method for a device, which is executed in a server, including:
acquiring a target resource attribute of target equipment;
determining a target service type corresponding to the target resource attribute;
determining a target equipment online flow corresponding to the target service type, wherein the target equipment online flow comprises M online steps and an execution sequence of the M online steps, and M is an integer greater than or equal to 1;
and controlling the target equipment to be on line according to the execution sequence of the M on-line steps included in the target equipment on-line flow.
In a second aspect of the present invention, there is also provided an on-line control device for a device, provided in a server, including:
the first acquisition module is used for acquiring the target resource attribute of the target equipment;
a first determining module, configured to determine a target service type corresponding to the target resource attribute;
a second determining module, configured to determine a target device online procedure corresponding to the target service type, where the target device online procedure includes M online steps and an execution sequence of the M online steps, and M is an integer greater than or equal to 1;
and the control module is used for controlling the target equipment to be on line according to the execution sequence of the M on-line steps included in the target equipment on-line flow.
In yet another aspect of the present invention, there is also provided an electronic device including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory perform communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the method when executing the program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the method described above.
According to the equipment online control method provided by the embodiment, the target resource attribute of the target equipment is obtained, the target service type corresponding to the target resource attribute is determined, the target equipment online flow corresponding to the target service type is determined, wherein the target equipment online flow comprises M online steps and the execution sequence of the M online steps, and the target equipment online is controlled according to the execution sequence of the M online steps included in the target equipment online flow. Therefore, M online steps included in the target equipment online process are not required to be manually executed, the steps included in the target equipment online process are automatically controlled to be sequentially executed, and accordingly the target equipment is controlled to be online, time and labor cost required by the equipment online are saved, and the equipment online efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of steps of an on-line control method for a device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another method for controlling device on-line according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an on-line control device for equipment according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another device on-line control apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of an on-line control method for a device according to an embodiment of the present invention. The method may be performed by a server. The method comprises the following steps:
step 101, obtaining a target resource attribute of target equipment.
The user can select the equipment needing to be on line through a man-machine interaction interface provided by an on-line system deployed on the server, and the server takes the equipment needing to be on line selected by the user as target equipment. The user may select one device as the target device, or may select a plurality of devices, and the plurality of devices may all be the target devices. For example, if the user selects device 1, the target device is device 1.
After the user selects the device, the server may determine, according to the device identifier of the device selected by the user, a resource attribute corresponding to the device identifier of the device selected by the user, and obtain the resource attribute corresponding to the device identifier of the device selected by the user. The resource attribute is, for example, a network type of the device, a disk size, a geographic location of a machine room to which the device belongs, and an internet protocol (IP, internet Protocol) address of the device. The network type includes, for example, operator information, public network, private network, and the like. The server stores therein the device identification of the device that may need to be online and the resource attributes associated with the device identification, e.g., the device identification of the device stored in the server and the resource attributes associated with the device identification are shown in table 1 below:
TABLE 1
If the user selects the device 1, the server obtains the target resource attribute of the device 1 according to the device identifier and the resource attribute corresponding to the device identifier stored in the above table 1, where the target resource attribute of the device 1 includes that the disk is equal to 200G and the device 1 is located in beijing.
Step 102, determining a target service type corresponding to the target resource attribute.
Wherein, step 102 of determining the target service type corresponding to the target resource attribute may be implemented by:
comparing the target resource attribute with the resource attribute included in at least one of the N stored resource attribute sets to determine the target resource attribute set from the N resource attribute sets; wherein N is an integer greater than or equal to 1;
and determining a target service type corresponding to the target resource attribute set from the N service types according to the stored N service types and the resource attribute set corresponding to each service type in the N service types.
In this embodiment, if 3 resource attribute sets are stored in the server, that is, N is equal to 3, one resource attribute set may include one resource attribute, or may include multiple resource attributes. In the case of including a resource attribute, the resource attribute may be set to any one of the attributes of, for example, a disk equal to 100G, a disk greater than 100G, a disk less than 100G, which carrier the network type belongs to, the device contains a solid state disk, what value the IP address of the device starts (e.g., IP address starts with 1), what value the IP address of the device ends (e.g., IP address ends with 4), and so on. When a plurality of resource attributes are included, logical operation relationships such as OR, AND, NOT can be set between the resource attributes.
It should be noted that, the resource attribute included in a resource attribute set is set by a service administrator according to a service type, where the service type refers to a type of service that can be provided by a device, for example, a certain device is used as a server for an Application (APP), and the type of service that can be provided by the device is an Application type; if the device is used to server a website, the type of service that the device can provide is the type of website.
The resource attribute set corresponding to each service type in the N service types is set by a service manager according to the service type. For example, there are 3 service types in total, service type a, service type B, and service type C, where service type a is the 1 st service type of the 3 service types, service type B is the 2 nd service type of the 3 service types, and service type C is the 3 rd service type of the 3 service types. The service manager sets a 1 st resource attribute set according to the service type C, wherein the 1 st resource attribute set is, for example, a resource attribute set 1; a 2 nd resource attribute set is set according to the service type B, and the 2 nd resource attribute set is, for example, a resource attribute set 2; according to the service type a, a 3 rd resource attribute set is set, and the 3 rd resource attribute set is, for example, a resource attribute set 3.
If the resource attribute set 1 includes one resource attribute, the resource attribute is that the disk is smaller than 250G, and the resource attribute set 2 includes two resource attributes, the resource attribute 1: disk is larger than 300G, and resource attribute 2: the geographical location of the device is located in the open sea, i.e. a logical relationship of "and" between two resource attributes comprised in the set of resource attributes 2. The resource attribute set 3 includes a resource attribute, for example, the resource attribute is that the geographic location of the device is in beijing.
In the case where the device 1 is the target device, the target resource attribute disk of the device 1 is equal to 200G, and the device 1 is located in beijing, satisfying the condition that the resource attribute included in the resource attribute set 1 is limited. Therefore, after the target resource attribute of the device 1 is compared with the resource attribute included in the resource attribute set 1, the target resource attribute is matched with the resource attribute included in the resource attribute set 1, and the resource attribute set 1 is determined as the target resource attribute set.
The server stores N service types and a set of resource attributes corresponding to each of the N service types. For example, table 2 below shows 3 service types stored in the server, and a set of resource attributes corresponding to each of the 3 service types.
Service type | Resource attribute set corresponding to service type |
Service type C | Resource attribute set 1 |
Service type B | Resource attribute set 2 |
Service type A | Resource attribute set 3 |
TABLE 2
In the case where the resource attribute set 1 is the target resource attribute set, it can be seen from the above table 2 that the target service type corresponding to the resource attribute set 1 is the service type C, that is, the target service type corresponding to the target resource attribute set is the service type C.
Step 103, determining the online flow of the target equipment corresponding to the target service type.
The target equipment online procedure comprises M online steps and an execution sequence of the M online steps, wherein M is an integer greater than or equal to 1.
Step 103 of determining a target device online procedure corresponding to the target service type may be implemented by the following steps:
and determining a target device online flow corresponding to the target service type according to the stored N service types and the device online flow corresponding to each service type in the N service types.
It should be noted that, the execution sequence of the M online steps included in the online process of one device is set by the service administrator according to one service type. In combination with the above description, if there are 3 service types in total, service type a, service type B, and service type C, service type a is the 1 st service type of the 3 service types, service type B is the 2 nd service type of the 3 service types, and service type C is the 3 rd service type of the 3 service types. The service manager sets a 1 st equipment online flow according to the service type C, wherein the 1 st equipment online flow is, for example, the equipment online flow 1; setting a 2 nd device online flow according to the service type B, wherein the 2 nd device online flow is, for example, a 2 nd device online flow; according to service type a, a 3 rd device upstream flow is set, and the 3 rd set of resource attributes is, for example, device upstream flow 3.
For example, table 3 below shows 3 service types stored in the server, and the device on-line flows corresponding to each of the 3 service types.
Service type | Device on-line flow corresponding to service type |
Service type C | Equipment on-line Process 1 |
Service type B | On-line process 2 for equipment |
Service type A | On-line process 3 for equipment |
TABLE 3 Table 3
In connection with the above description, when the target service type is the service type C, as can be seen from the above table 3, the device online flow corresponding to the service type C is the device online flow 1, and the device online flow 1 is the target device online flow corresponding to the target service type. If the device online process 1 sequentially includes three online steps of an online step a, an online step B, and an online step C, it may be determined that M online steps included in the target device online process are the three online steps, and an execution sequence of the three online steps is: firstly, executing the online step A; after the step A of line feeding is finished, the step B of line feeding is executed; and after the execution of the wire feeding step B is completed, finally executing the wire feeding step C.
And 104, controlling the target equipment to be on line according to the execution sequence of M on-line steps included in the on-line process of the target equipment.
In this embodiment, the server may control the target device to be on-line according to the execution sequence of M on-line steps included in the target device on-line procedure.
Step 104 controls the target device to be on-line according to the execution sequence of M on-line steps included in the on-line process of the target device, where the steps may be implemented as follows:
and sequentially executing the M online steps according to the execution sequence of the M online steps included in the target equipment online flow so as to control the target equipment to be online.
In connection with the above description, for example, the M loading steps included in the target device loading process are three loading steps including loading step a, loading step B and loading step C, and the execution sequence of the three loading steps is loading step a, loading step B and loading step C, that is, loading step a is executed first, loading step B is executed after the execution of loading step a is completed, and loading step C is executed finally after the execution of loading step B is completed. I.e. the 3 online steps are performed sequentially according to the order of execution of the 3 online steps.
Optionally, step 104 may be implemented by controlling the target device to be on line according to the execution sequence of the M on-line steps included in the on-line procedure of the target device, where the steps include:
determining a target online step from M online steps included in the target equipment online flow according to the execution sequence of the M online steps included in the target equipment online flow;
executing the target online step through a first online system corresponding to the first online system identifier under the condition that the online system identifier corresponding to the target online step is the same as the first online system identifier;
and under the condition that the target online step is successfully executed and the target online step is not the last online step in the M online steps, determining the next online step of the target online step, taking the next online step as a new target online step, and controlling the target equipment to be online until the M online steps included in the target equipment online flow are executed.
In connection with the above description, if the loading system identifier of the loading step a, the loading system identifier of the loading step B, and the loading system identifier of the loading step C are all the first loading system identifier of the first loading system, the loading step a, the loading step B, and the loading step C may be sequentially executed by the first loading system. The first online system is an online system deployed on the server.
If the system identifier of the first wire-feeding step a and the system identifier of the second wire-feeding step B are both the first wire-feeding system identifier, and the system identifier of the first wire-feeding step C is not the first wire-feeding system identifier, the first wire-feeding system may sequentially execute the wire-feeding step a and the wire-feeding step B, and after the execution of the wire-feeding step B is completed, the second wire-feeding system may execute the wire-feeding step C. After the online step A, the online step B and the online step C are executed, the online of the target equipment can be controlled, so that the target equipment provides the service deployed on the target equipment.
The second online system may be a third party online system deployed on the server.
According to the equipment online control method provided by the embodiment, the target resource attribute of the target equipment is obtained, the target service type corresponding to the target resource attribute is determined, the target equipment online flow corresponding to the target service type is determined, wherein the target equipment online flow comprises M online steps and the execution sequence of the M online steps, and the target equipment online is controlled according to the execution sequence of the M online steps included in the target equipment online flow. Therefore, M online steps included in the target equipment online process are not required to be manually executed, the steps included in the target equipment online process are automatically controlled to be sequentially executed, and accordingly the target equipment is controlled to be online, time and labor cost required by the equipment online are saved, and the equipment online efficiency is improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of another method for controlling on-line of a device according to an embodiment of the present invention, where the method includes the following steps:
step 201, acquiring N resource attribute sets set by a user.
The ith resource attribute set in the N resource attribute sets is set according to the jth service type in the N service types, and i and j are integers which are greater than or equal to 1 and less than or equal to N.
The values of i and j may be the same or different. For example, as shown in table 2 above, the 1 st set of 3 resource attribute sets is set according to the 3 rd service type of the 3 service types, in which case i is not equal to j; the 2 nd set of resource attributes of the 3 sets of resource attributes is set according to the 2 nd service type of the 3 service types, in which case i is equal to j; the 3 rd set of resource attributes of the 3 sets of resource attributes is set according to the 1 st service type of the 3 service types, in which case i is not equal to j.
Step 202, storing N service types and a set of resource attributes corresponding to each of the N service types.
Step 203, acquiring N device online flows set by a user.
The m-th device online flow in the N device online flows is set according to the N-th service type in the N service types, and m and N are integers which are greater than or equal to 1 and less than or equal to N.
The values of m and n may be the same or different. For example, as shown in table 3 above, the 1 st device online flow of the 3 device online flows is set according to the 3 rd service type of the 3 service types, in which case m is not equal to n; the 2 nd device online flow in the 3 device online flows is set according to the 2 nd service type in the 3 service types, in this case, m is equal to n; the 3 rd device online flow of the 3 device online flows is set according to the 1 st service type of the 3 service types, in which case m is not equal to n.
Step 204, storing N service types and the device online flows corresponding to each of the N service types.
It should be noted that, the service administrator may set N resource attribute sets according to the service type first, and then set the device online flow according to the service type; or, the device online flow may be set according to the service type, and then N resource attribute sets may be set according to the service type. That is, step 201 obtains N resource attribute sets set by the user
Step 205, obtaining a target resource attribute of the target device.
Step 206, comparing the target resource attribute with the resource attribute included in at least one of the N stored resource attribute sets to determine the target resource attribute set from the N resource attribute sets.
Step 207, determining a target service type corresponding to the target resource attribute set from the N service types according to the stored N service types and the resource attribute set corresponding to each of the N service types.
Step 208, determining a target device online procedure corresponding to the target service type according to the stored N service types and the device online procedure corresponding to each service type in the N service types.
Step 209, determining a target online step from the M online steps included in the target device online flow according to the execution sequence of the M online steps included in the target device online flow.
If the M on-line steps included in the on-line process of the target device are an on-line step a, an on-line step B, and an on-line step C, and the execution sequence of the three on-line steps is as follows: firstly, executing the online step A; after the step A of line feeding is finished, the step B of line feeding is executed; and after the execution of the wire feeding step B is completed, finally executing the wire feeding step C. If any one of the three wire-feeding steps is not executed currently, determining the wire-feeding step A as a target wire-feeding step; if the finishing line-up step A is executed currently, determining the line-up step B as a target line-up step.
Step 210, judging whether the online system identifier corresponding to the target online step is the same as the first online system identifier.
Executing step 211 when the online system identifier corresponding to the target online step is the same as the first online system identifier; in the case that the online system identifier corresponding to the target online step is different from the first online system identifier, step 212 is performed.
It should be noted that, an automatic processing mode is set for each online step, and by setting an online system identifier corresponding to an online step, by using the online system identifier, which online system the online step is executed is set. For example, if the set online system identifier corresponding to the online step a is the first online system identifier, the automatic processing mode of the online step a is that the online step a is executed through the first online system; the online system identifier corresponding to the online step B is a second online system identifier, and the automatic processing mode of the online step B is that the online step B is executed through the second online system; and C, the corresponding online system identifier of the online step C is a first online system identifier, and the automatic processing mode of the online step C is that the online step C is executed through the first online system.
Step 211, executing a target online step through the first online system corresponding to the first online system identifier.
Step 215 is performed if the target online step is successfully performed by the first online system identified by the corresponding first online system and the target online step is not the last online step of the M online steps included in the target device online flow. And if the first online system corresponding to the first online system identification fails to execute the target online step, exiting from the target online step.
For example, if the target online step is the online step a, the online step a is executed by the first online system because the online step a corresponds to the first online system identifier, that is, the online system identifier corresponding to the step a is the same as the first online system identifier. After the successful execution of the on-line step a, step 215 is executed.
Step 212, send an online request to the second online system.
The online request is used for requesting the second online system to execute a target online step.
And step 213, receiving an execution result sent by the second online system.
The execution result is used for indicating the success or failure of the execution of the target online step.
Step 214, determining the next online step of the target online step and taking the next online step of the target online step as a new target online step when the execution result indicates that the target online step is successfully executed.
After taking the next online step of the target online step as a new target online step, step 210 is executed until the M online steps included in the target device online flow are completed.
Step 215, determining the next step of the target line-up step, and taking the next line-up step as a new target line-up step.
Since the next online step of the online step a is the online step B, that is, the online step B is taken as a new target online step, and step 210 is performed until the M online steps included in the target device online procedure are performed, so as to control the target device to be online.
For example, when the step B is executed as a new target online step and the online system identifier corresponding to the step B is different from the first online system identifier, the server sends an online request to the second online system, where the online request is used to request the second online system to execute the step B.
It should be noted that, in the process of executing the online step B by the second online system, the first online system may be in a dormant state, and wait for the second online system to feed back the execution result, where the system resources occupied by the first online system may be reduced when the first online system is in the dormant state. Specifically, the execution result sent by the second online system may be received through the step 213, and if the execution result is that the execution is successful, the server determines the next online step of the online step B. In the process of waiting for the feedback execution result of the second online system, the first online system may generate a signal of one color, for example, an orange signal, and after the successful execution of the online step B, the orange signal may be converted into a signal of another color, for example, the orange signal is converted into a blue signal.
The next wire-feeding step of the wire-feeding step B is a wire-feeding step C, the wire-feeding system identifier corresponding to the wire-feeding step C is a first wire-feeding system identifier, the wire-feeding step C is executed by the first wire-feeding system, and after the wire-feeding step C is executed successfully, M wire-feeding steps included in the wire-feeding process of the target equipment are completed, so that the wire-feeding of the target equipment is realized. After the execution of the M online steps included in the target device online procedure is completed, the first online system may generate, for example, a green signal, which in this case means that the entire online procedure is ended.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an on-line control device for equipment according to an embodiment of the present invention, where the device 300 is disposed on a server, and includes:
a first obtaining module 310, configured to obtain a target resource attribute of a target device;
a first determining module 320, configured to determine a target service type corresponding to the target resource attribute;
a second determining module 330, configured to determine a target device online procedure corresponding to the target service type, where the target device online procedure includes M online steps and an execution sequence of the M online steps, and M is an integer greater than or equal to 1;
and the control module 340 is configured to control the target device to be on-line according to an execution sequence of the M on-line steps included in the on-line process of the target device.
According to the device online control device provided by the embodiment, the target service type corresponding to the target resource attribute is determined by acquiring the target resource attribute of the target device, and the target device online flow corresponding to the target service type is determined, wherein the target device online flow comprises M online steps and the execution sequence of the M online steps, and the target device online is controlled according to the execution sequence of the M online steps included in the target device online flow. Therefore, M online steps included in the target equipment online process are not required to be manually executed, the steps included in the target equipment online process are automatically controlled to be sequentially executed, and accordingly the target equipment is controlled to be online, time and labor cost required by the equipment online are saved, and the equipment online efficiency is improved.
Optionally, the first determining module 320 is specifically configured to compare the target resource attribute with a resource attribute included in at least one of the N stored resource attribute sets, so as to determine a target resource attribute set from the N resource attribute sets; wherein N is an integer greater than or equal to 1;
and determining a target service type corresponding to the target resource attribute set from the N service types according to the stored N service types and the resource attribute set corresponding to each service type in the N service types.
Optionally, the second determining module 330 is specifically configured to determine, according to the stored N service types and the device upstream flows corresponding to each of the N service types, a target device upstream flow corresponding to the target service type.
Optionally, the control module 340 is specifically configured to sequentially execute the M online steps according to an execution sequence of the M online steps included in the target device online procedure, so as to control the target device to be online.
Optionally, the control module 340 is specifically configured to determine a target online step from M online steps included in the target device online process according to an execution sequence of the M online steps included in the target device online process;
executing the target online step through a first online system corresponding to the first online system identifier under the condition that the online system identifier corresponding to the target online step is the same as the first online system identifier;
and under the condition that the target online step is successfully executed and the target online step is not the last online step in the M online steps, determining the next online step of the target online step, taking the next online step as a new target online step, and controlling the target equipment to be online until the M online steps included in the target equipment online flow are executed.
Optionally, the control module 340 is further configured to send an online request to a second online system if the online system identifier corresponding to the target online step is different from the first online system identifier; the online request is used for requesting the second online system to execute the target online step;
receiving an execution result sent by the second online system; the execution result is used for indicating the successful or failed execution of the target online step;
and determining the next online step of the target online step under the condition that the execution result indicates that the target online step is successfully executed.
Optionally, referring to fig. 4, fig. 4 is a schematic structural diagram of another on-line control device for equipment according to an embodiment of the present invention, where the device 400 includes:
a second obtaining module 410, configured to obtain N sets of the resource attributes set by the user; the ith resource attribute set in the N resource attribute sets is set according to the jth service type in the N service types, and i and j are integers which are greater than or equal to 1 and less than or equal to N;
the first storage module 420 is configured to store N service types and the set of resource attributes corresponding to each of the N service types.
Optionally, the apparatus 400 may further include:
a third obtaining module 430, configured to obtain N online procedures of the device set by a user; the m-th device online flow in the N device online flows is set according to the N-th service type in the N service types, and m and N are integers which are greater than or equal to 1 and less than or equal to N;
and a second storage module 440, configured to store N service types and the device online procedures corresponding to each of the N service types.
The embodiment of the invention also provides an electronic device, as shown in fig. 5, and fig. 5 is a schematic structural diagram of the electronic device provided in the embodiment of the invention. Comprising a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502, the memory 503 communicate with each other via the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to execute the program stored in the memory 503, and implement the following steps:
acquiring a target resource attribute of target equipment;
determining a target service type corresponding to the target resource attribute;
determining a target equipment online flow corresponding to the target service type, wherein the target equipment online flow comprises M online steps and the execution sequence of the M online steps;
and controlling the target equipment to be on line according to the execution sequence of the M on-line steps included in the target equipment on-line flow.
The communication bus mentioned by the above terminal may be a peripheral component interconnect standard (Peripheral Component Interconnect, abbreviated as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated as EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, where instructions are stored, which when executed on a computer, cause the computer to perform the device on-line control method according to any one of the above embodiments.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the device on-line control method of any of the above embodiments is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (11)
1. A method for controlling equipment online, which is executed in a server and comprises the following steps:
acquiring a target resource attribute of target equipment;
determining a target service type corresponding to the target resource attribute;
determining a target equipment online flow corresponding to the target service type, wherein the target equipment online flow comprises M online steps and an execution sequence of the M online steps, and M is an integer greater than or equal to 1;
and controlling the target equipment to be on line according to the execution sequence of the M on-line steps included in the target equipment on-line flow.
2. The method of claim 1, wherein the determining a target service type corresponding to the target resource attribute comprises:
comparing the target resource attribute with the resource attribute included in at least one resource attribute set in the N stored resource attribute sets to determine a target resource attribute set from the N resource attribute sets; wherein N is an integer greater than or equal to 1;
and determining a target service type corresponding to the target resource attribute set from the N service types according to the stored N service types and the resource attribute set corresponding to each service type in the N service types.
3. The method of claim 2, wherein the determining a target device online flow corresponding to the target service type comprises:
and determining a target device uplink flow corresponding to the target service type according to the stored N service types and the device uplink flow corresponding to each service type in the N service types.
4. The method of claim 1, wherein controlling the target device to be online according to an execution sequence of the M online steps included in the target device online flow includes:
and sequentially executing the M online steps according to the execution sequence of the M online steps included in the target equipment online flow so as to control the target equipment to be online.
5. The method of claim 1, wherein controlling the target device to be online according to an execution sequence of the M online steps included in the target device online flow includes:
determining a target online step from M online steps included in the target equipment online flow according to the execution sequence of the M online steps included in the target equipment online flow;
executing the target online step through a first online system corresponding to the first online system identifier under the condition that the online system identifier corresponding to the target online step is the same as the first online system identifier;
and under the condition that the target online step is successfully executed and the target online step is not the last online step in the M online steps, determining the next online step of the target online step, taking the next online step as a new target online step, and controlling the target equipment to be online until the M online steps included in the target equipment online flow are executed.
6. The method as recited in claim 5, further comprising:
sending an online request to a second online system under the condition that the online system identifier corresponding to the target online step is different from the first online system identifier; the online request is used for requesting the second online system to execute the target online step;
receiving an execution result sent by the second online system; the execution result is used for indicating the successful or failed execution of the target online step;
and under the condition that the execution result indicates that the target online step is successfully executed, determining the next online step of the target online step, and taking the next online step of the target online step as a new target online step.
7. The method of claim 2, further comprising, prior to said obtaining the target resource attribute of the target device:
acquiring N resource attribute sets set by a user; the ith resource attribute set in the N resource attribute sets is set according to the jth service type in the N service types, and i and j are integers which are greater than or equal to 1 and less than or equal to N;
storing N service types and the resource attribute sets corresponding to each of the N service types.
8. The method of claim 3, further comprising, prior to said obtaining the target resource attribute of the target device:
acquiring N equipment online flows set by a user; the m-th device online flow in the N device online flows is set according to the N-th service type in the N service types, and m and N are integers which are greater than or equal to 1 and less than or equal to N;
and storing N service types and the equipment online flow corresponding to each service type in the N service types.
9. An on-line control device for equipment, which is characterized by being arranged on a server and comprising:
the first acquisition module is used for acquiring the target resource attribute of the target equipment;
a first determining module, configured to determine a target service type corresponding to the target resource attribute;
a second determining module, configured to determine a target device online procedure corresponding to the target service type, where the target device online procedure includes M online steps and an execution sequence of the M online steps, and M is an integer greater than or equal to 1;
and the control module is used for controlling the target equipment to be on line according to the execution sequence of the M on-line steps included in the target equipment on-line flow.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-8 when executing a program stored on a memory.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110621087.4A CN113220439B (en) | 2021-06-03 | 2021-06-03 | Device online control method and device, electronic device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110621087.4A CN113220439B (en) | 2021-06-03 | 2021-06-03 | Device online control method and device, electronic device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113220439A CN113220439A (en) | 2021-08-06 |
CN113220439B true CN113220439B (en) | 2023-08-18 |
Family
ID=77082716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110621087.4A Active CN113220439B (en) | 2021-06-03 | 2021-06-03 | Device online control method and device, electronic device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113220439B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107066261A (en) * | 2017-03-09 | 2017-08-18 | 郑州云海信息技术有限公司 | The system and method for data-base cluster are built in a kind of K UX operating systems |
CN107818013A (en) * | 2016-09-13 | 2018-03-20 | 华为技术有限公司 | A kind of application scheduling method thereof and device |
CN108429788A (en) * | 2018-01-30 | 2018-08-21 | 北京奇艺世纪科技有限公司 | A kind of information control method, device and equipment |
WO2019141133A1 (en) * | 2018-01-19 | 2019-07-25 | 阿里巴巴集团控股有限公司 | Task processing method, device and machine readable medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6069704B2 (en) * | 2013-04-25 | 2017-02-01 | 富士通株式会社 | Computer installation method, computer installation program, and computer installation apparatus |
US10318351B2 (en) * | 2017-04-27 | 2019-06-11 | International Business Machines Corporation | Resource provisioning with automatic approval or denial of a request for allocation of a resource |
-
2021
- 2021-06-03 CN CN202110621087.4A patent/CN113220439B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107818013A (en) * | 2016-09-13 | 2018-03-20 | 华为技术有限公司 | A kind of application scheduling method thereof and device |
CN107066261A (en) * | 2017-03-09 | 2017-08-18 | 郑州云海信息技术有限公司 | The system and method for data-base cluster are built in a kind of K UX operating systems |
WO2019141133A1 (en) * | 2018-01-19 | 2019-07-25 | 阿里巴巴集团控股有限公司 | Task processing method, device and machine readable medium |
CN108429788A (en) * | 2018-01-30 | 2018-08-21 | 北京奇艺世纪科技有限公司 | A kind of information control method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113220439A (en) | 2021-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105847464A (en) | IP address management method under multi-DHCP server network environment and DHCP client | |
CN114189525B (en) | Service request method and device and electronic equipment | |
CN109921925B (en) | Dial testing method and device | |
CN109041086B (en) | Configuration method and device of OpenFlow instance | |
CN111372300A (en) | Method and device for connecting network | |
CN116566984B (en) | Routing information creation method and device of k8s container cluster and electronic equipment | |
CN114090623A (en) | Method and device for creating cache resources, electronic equipment and storage medium | |
CN110213365B (en) | User access request processing method based on user partition and electronic equipment | |
CN115168031A (en) | Fog calculation system, method, electronic equipment and storage medium | |
CN111045790A (en) | Virtual machine deployment method and device | |
CN110365517A (en) | Data processing method, device, storage medium and computer equipment | |
CN112954716B (en) | Network access method, device, computer equipment and storage medium of mesh network | |
CN113220439B (en) | Device online control method and device, electronic device and readable storage medium | |
CN115086214B (en) | System and method for detecting set, electronic equipment and storage medium | |
CN115567388A (en) | Method, system, device and storage medium for automatically updating network slice configuration | |
CN109450702A (en) | A kind of data processing method and device | |
CN115102804A (en) | Data routing method and device for vehicle-mounted gateway, vehicle-mounted gateway and storage medium | |
CN111884932B (en) | Link determining method, device, equipment and computer readable storage medium | |
CN111294374B (en) | Heterogeneous equipment starting system, method and device and electronic equipment | |
CN110769462B (en) | Network access control method and device | |
CN110661655B (en) | Cluster deployment method and system, electronic device and storage medium | |
US20160085539A1 (en) | Updating Method and Electronic System thereof | |
CN114070824A (en) | Registration method, registration cloud service, medium, and program product for internet of things device | |
CN113783677B (en) | Data transmission method and device, electronic equipment and storage medium | |
CN113220491B (en) | Remote call self-adaptive load balancing method, device and system and computer equipment |
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 |