CN113220439A - Equipment on-line control method and device, electronic equipment and readable storage medium - Google Patents

Equipment on-line control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113220439A
CN113220439A CN202110621087.4A CN202110621087A CN113220439A CN 113220439 A CN113220439 A CN 113220439A CN 202110621087 A CN202110621087 A CN 202110621087A CN 113220439 A CN113220439 A CN 113220439A
Authority
CN
China
Prior art keywords
online
target
equipment
resource attribute
line
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.)
Granted
Application number
CN202110621087.4A
Other languages
Chinese (zh)
Other versions
CN113220439B (en
Inventor
黄茁壮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202110621087.4A priority Critical patent/CN113220439B/en
Publication of CN113220439A publication Critical patent/CN113220439A/en
Application granted granted Critical
Publication of CN113220439B publication Critical patent/CN113220439B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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 method and a device for controlling equipment to be online, electronic equipment 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 target service types corresponding to the target resource attributes, determining target equipment online processes corresponding to the target service types, and controlling the target equipment online according to execution sequences of M online steps included in the target equipment online processes. Therefore, M on-line steps included in the on-line flow of the target equipment do not need to be manually executed, and the steps included in the on-line flow of the target equipment are automatically controlled to be sequentially executed, so that the target equipment is controlled to be on-line, the time and labor cost required by the on-line of the equipment are saved, and the on-line efficiency of the equipment is improved.

Description

Equipment on-line control method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling an online device, an electronic device, and a readable storage medium.
Background
A series of complex online processes are required from the warehouse-out process to the final service providing process of a device, and the online processes include, for example, system installation, service deployment, environment configuration, and the like. The on-line flow required by devices providing different services also comprises different steps and different execution sequences of the steps.
Because the number of services and devices is large and various, the online process required for online of a device is executed manually at present, for example, if the online process of a certain device includes steps of system installation, service department and environment configuration in sequence, the operations of system installation, service department and environment configuration and the like need to be executed manually and sequentially, and therefore, the online process of the current device is time-consuming and wastes labor cost.
Disclosure of Invention
The embodiment of the invention aims to provide an equipment on-line control method, an equipment on-line control device, electronic equipment and a readable storage medium, so as to solve the problems that the existing equipment on-line process is time-consuming and wastes labor cost. The specific technical scheme is as follows:
in a first aspect of the present invention, a method for controlling an online device is provided, which is executed on a server, and includes:
acquiring target resource attributes of target equipment;
determining a target service type corresponding to the target resource attribute;
determining a target device online process corresponding to the target service type, wherein the target device online process 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 on-line flow of the target equipment.
In a second aspect of the present invention, there is also provided an online control device for a device, which is disposed in a server, and includes:
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 an online process of a target device corresponding to the target service type, where the online process of the target device includes M online steps and an execution order 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 on-line flow of the target equipment.
In 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, where the processor, the communication interface, and the memory complete 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, on which a computer program is stored, which when executed by a processor implements the method described above.
In the device online control method provided in this embodiment, a target service type corresponding to a target resource attribute is determined by obtaining the target resource attribute of a target device, and an target device online process corresponding to the target service type is determined, where the target device online process includes M online steps and an 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 process. Therefore, M on-line steps included in the on-line flow of the target equipment do not need to be manually executed, and the steps included in the on-line flow of the target equipment are automatically controlled to be sequentially executed, so that the target equipment is controlled to be on-line, the time and labor cost required by the on-line of the equipment are saved, and the on-line efficiency of the equipment 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 illustrating steps of an online control method for a device according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of another method for online control of a device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an on-line control device of an apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another on-line control device of an apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in 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 drawings in the embodiments of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of an online 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 a target device.
A user can select the equipment needing to be on-line through a human-computer interaction interface provided by an on-line system deployed on a 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, each of which is the target device. For example, if the user selects device 1, the target device is device 1.
After the user selects the device, the server may determine the resource attribute corresponding to the device identifier of the device selected by the user according 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 geographical location of a machine room to which the device belongs, and an Internet Protocol (IP) address of the device. The network type includes, for example, operator information, public network, private network, and the like. The server stores the device identifier of the device that may need to be online and the resource attribute associated with the device identifier, for example, the device identifier of the device stored in the server and the resource attribute associated with the device identifier are as shown in table 1 below:
Figure BDA0003099586600000031
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 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.
And 102, determining a target service type corresponding to the target resource attribute.
Wherein, the step 102 of determining the target service type corresponding to the target resource attribute can be implemented by the following steps:
comparing the target resource attribute with the resource attribute included in at least one resource attribute set in the stored N 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.
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 one resource attribute, for example, the resource attribute may be set to any one of attributes that a disk is equal to 100G, a disk is larger than 100G, a disk is smaller than 100G, which operator the network type belongs to, which operator the device contains a solid state disk, what value the IP address of the device starts with (for example, the IP address starts with 1), what value the IP address of the device ends with (for example, the IP address ends with 4), and the like. When a plurality of resource attributes are included, the resource attributes may be set to be in an equal or equal logical operation relationship.
It should be noted that a 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 a service that can be provided by a device, for example, if a certain device is used for an Application (APP), the service type that can be provided by the device is an Application type; if the device is used for serving a website, the type of service that the device can provide is the website type.
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, the common service type a, the service type B, and the service type C are 3 service types, where the service type a is the 1 st service type of the 3 service types, the service type B is the 2 nd service type of the 3 service types, and the service type C is the 3 rd service type of the 3 service types. The service administrator 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; setting a 2 nd resource attribute set according to the service type B, wherein the 2 nd resource attribute set is, for example, a resource attribute set 2; a 3 rd resource attribute set is set according to the service type a, and the 3 rd resource attribute set is, for example, 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: the disk is larger than 300G, and the resource attribute 2: the geographical location of the device is in shanghai, 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 geographical location of the device is located in beijing.
In the case where the device 1 is a 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 is limited by the resource attributes included in the resource attribute set 1. Therefore, after the target resource attribute of the device 1 is compared with the resource attribute included in the resource attribute set 1, and is matched with the resource attribute included in the resource attribute set 1, the resource attribute set 1 is determined as the target resource attribute set.
It should be noted that the server stores N service types and a resource attribute set 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.
Type of service 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
If the resource attribute set 1 is the target resource attribute set, then, as can be seen from the above table 2, 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.
And 103, determining the target equipment online process corresponding to the target service type.
The target device online process 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 determines the target device online process corresponding to the target service type, which 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 M online steps and M online steps included in an online process of a device is set by a service administrator according to a service type. With reference to the foregoing example, if there are 3 service types in common, the service type a is the 1 st service type of the 3 service types, the service type B is the 2 nd service type of the 3 service types, and the service type C is the 3 rd service type of the 3 service types. A service administrator sets a 1 st equipment online process according to the service type C, wherein the 1 st equipment online process is an equipment online process 1 for example; setting a 2 nd equipment online flow according to the service type B, wherein the 2 nd equipment online flow is an equipment online flow 2 for example; and setting a 3 rd equipment online process according to the service type A, wherein the 3 rd resource attribute set is the equipment online process 3, for example.
For example, as shown in table 3 below, 3 service types stored in the server and an on-line device flow corresponding to each of the 3 service types are shown.
Type of service Equipment on-line flow corresponding to service type
Service type C Equipment on-line process 1
Service type B Equipment on-line process 2
Service type A Equipment Online Process 3
TABLE 3
With reference to the foregoing example, when the target service type is the service type C, as can be seen from table 3, the device online process corresponding to the service type C is the device online process 1, and the device online process 1 is the target device online process corresponding to the target service type. If the device online process 1 sequentially includes three online steps, namely an online step a, an online step B and an online step C, it can be determined that M online steps included in the target device online process are the three online steps, and the execution sequence of the three online steps is as follows: firstly, executing an online step A; after the on-line step A is executed, the on-line step B is executed; and after the on-line step B is executed, finally executing an on-line step C.
And 104, controlling the target equipment to be online according to the execution sequence of the M online steps included in the online flow of the target equipment.
In this embodiment, the server may control the target device to be online according to an execution sequence of M online steps included in the online flow of the target device.
Step 104, according to the execution sequence of M online steps included in the online flow of the target device, controlling the target device to be online may be implemented by the following steps:
and sequentially executing the M online steps according to the execution sequence of the M online steps included in the online flow of the target equipment so as to control the target equipment to be online.
With the above description, for example, the M online steps included in the online process of the target device include an online step a, an online step B, and an online step C, and the execution sequence of the three online steps includes the online step a, the online step B, and the online step C, that is, the online step a is executed first, the online step B is executed after the online step a is executed, and the online step C is executed after the online step B is executed. Namely, the 3 threading steps are executed in sequence according to the execution sequence of the 3 threading steps.
Optionally, step 104 is to control the target device to be online according to the execution sequence of the M online steps included in the online flow of the target device, and may be implemented by the following steps:
determining a target online step from M online steps included in the online process of the target equipment according to the execution sequence of the M online steps included in the online process of the target equipment;
under the condition that an online system identifier corresponding to the target online step is the same as a first online system identifier, executing the target online step through the first online system corresponding to 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, and taking the next online step as a new target online step until M online steps included in the target equipment online process are executed, so as to control the target equipment to be online.
With the above description, if the online system identifier of the online step a, the online system identifier of the online step B, and the online system identifier of the online step C are all the first online system identifiers of the first online system, the first online system may sequentially execute the online step a, the online step B, and the online step C. The first online system is an online system deployed in the server.
If the online system identifier of the online step A and the online system identifier of the online step B are both the first online system identifier, and the online system identifier of the online step C is not the first online system identifier, the online step A and the online step B can be sequentially executed by the first online system, and after the online step B is executed, the online step C is executed by the second online system. After the on-line step A, the on-line step B and the on-line step C are executed, the target equipment can be controlled to be on-line, 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 in the server.
In the device online control method provided in this embodiment, a target service type corresponding to a target resource attribute is determined by obtaining the target resource attribute of a target device, and an target device online process corresponding to the target service type is determined, where the target device online process includes M online steps and an 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 process. Therefore, M on-line steps included in the on-line flow of the target equipment do not need to be manually executed, and the steps included in the on-line flow of the target equipment are automatically controlled to be sequentially executed, so that the target equipment is controlled to be on-line, the time and labor cost required by the on-line of the equipment are saved, and the on-line efficiency of the equipment is improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of another online control method for 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 more 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 resource attribute set in the 3 resource attribute sets is set according to the 3 rd service type in the 3 service types, in this case, i is not equal to j; the 2 nd resource attribute set in the 3 resource attribute sets is set according to the 2 nd service type in the 3 service types, in this case, i is equal to j; the 3 rd resource attribute set in the 3 resource attribute sets is set according to the 1 st service type in the 3 service types, in this case, i is not equal to j.
Step 202, storing the N service types and the resource attribute sets corresponding to each of the N service types.
And step 203, acquiring N device online processes set by the user.
The mth device online process in the N device online processes is set according to the nth 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 online process of the 1 st device in the online processes of 3 devices is set according to the 3 rd service type in the 3 service types, in this case, m is not equal to n; the online process of the 2 nd device in the online processes of the 3 devices is set according to the 2 nd service type in the 3 service types, and in this case, m is equal to n; the 3 rd device on-line flow in the 3 device on-line flows is set according to the 1 st service type in the 3 service types, and in this case, m is not equal to n.
And 204, storing the N service types and the equipment online flow corresponding to each service type in the N service types.
It should be noted that, a service administrator may set N resource attribute sets according to a service type, and then set an online process of the device according to the service type; or the online process of the equipment can be set according to the service type, and then the N resource attribute sets can be set according to the service type. That is, step 201 obtains N resource attribute sets set by the user
And step 205, acquiring the target resource attribute of the target equipment.
Step 206, comparing the target resource attribute with the resource attribute included in at least one of the stored N resource attribute sets, so as to determine the target resource attribute set from the N resource attribute sets.
Step 207, according to the stored N service types and the resource attribute set corresponding to each service type of the N service types, determining a target service type corresponding to the target resource attribute set from the N service types.
And 208, 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.
Step 209, determining a target online step from the M online steps included in the target device online process according to the execution sequence of the M online steps included in the target device online process.
If the M online steps included in the online process of the target device are three online steps, namely an online step a, an online step B and an online step C, the execution sequence of the three online steps is as follows: firstly, executing an online step A; after the on-line step A is executed, the on-line step B is executed; and after the on-line step B is executed, finally executing an on-line step C. If any one of the three online steps is not executed currently, determining the online step A as a target online step; and if the step A of online completion is executed currently, determining the step B of online as a target step of online.
And 210, judging whether the online system identifier corresponding to the target online step is the same as the first online system identifier.
When the online system identifier corresponding to the target online step is the same as the first online system identifier, executing step 211; in case that the online system identifier corresponding to the target online step is not the same as the first online system identifier, step 212 is executed.
It should be noted that each online step sets an automatic processing mode, and an online system identifier corresponding to an online step can be set, and which online system executes the online step is set through the online system identifier. For example, if the set online system identifier corresponding to the online step a is a first online system identifier, the online step a is automatically processed in such a way that the online step a is executed by 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 to execute the online step B through the second online system; and C, the online system identifier corresponding to the online step C is a first online system identifier, and the automatic processing mode of the online step C is to execute the online step C through the first online system.
And step 211, executing the target online step through the first online system corresponding to the first online system identifier.
In case that the target on-line step executed by the first on-line system corresponding to the first on-line system identifier is successful, and the target on-line step is not the last on-line step in the M on-line steps included in the on-line process of the target device, step 215 is executed. And under the condition that the target online step executed by the first online system corresponding to the first online system identifier fails, exiting from the target online step.
For example, if the target online step is an online step a, since 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, in this case, the online step a is executed by the first online system. After the on-line step a is successfully performed, step 215 is performed.
Step 212, sending an online request to the second online system.
And the online request is used for requesting the second online system to execute the target online step.
And step 213, receiving an execution result sent by the second online system.
And the execution result is used for indicating the success or failure of the execution of the target online step.
And 214, under the condition that the execution result indicates that the target on-line step is successfully executed, determining the next on-line step of the target on-line step, and taking the next on-line step of the target on-line step as a new target on-line step.
After the next on-line step of the target on-line step is taken as a new target on-line step, step 210 is executed until the M on-line steps included in the on-line process of the target device are executed.
Step 215, determining the next on-line step of the target on-line step, and taking the next on-line step as a new target on-line step.
Since the next online step of the online step a is the online step B, that is, the online step B is used as a new target online step, and step 210 is executed until M online steps included in the online process of the target device are executed, so as to control the target device to be online.
For example, the online step B is taken as a new target online step, and when step 210 is executed, if the online system identifier corresponding to the online 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 online 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, wait for the second online system to feed back the execution result, and reduce the system resources occupied by the first online system 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 second online system to feed back the execution result, the first online system may generate a signal of one color, for example, an orange signal, and after the online step B is successfully executed, the orange signal may be converted into a signal of another color, for example, the orange signal may be converted into a blue signal.
The next online step of the online step B is an online step C, the online system identifier corresponding to the online step C is a first online system identifier, the online step C is executed by the first online system, and after the online step C is successfully executed, M online steps included in the online process of the target device are completed, so that the target device is online. After the M online steps included in the online process of the target device are completed, the first online system may generate, for example, a green signal, in which case, the entire online process is terminated.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an on-line control apparatus for a device according to an embodiment of the present invention, where the apparatus 300 is disposed in 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 an online process of a target device corresponding to the target service type, where the online process of the target device includes M online steps and an execution order of the M online steps, and M is an integer greater than or equal to 1;
a control module 340, configured to control the target device to go online according to the execution sequence of the M online steps included in the online flow of the target device.
The device online control apparatus provided in this embodiment determines a target service type corresponding to a target resource attribute by obtaining the target resource attribute of a target device, and determines an online process of the target device corresponding to the target service type, where the online process of the target device includes M online steps and an execution sequence of the M online steps, and controls the target device to be online according to the execution sequence of the M online steps included in the online process of the target device. Therefore, M on-line steps included in the on-line flow of the target equipment do not need to be manually executed, and the steps included in the on-line flow of the target equipment are automatically controlled to be sequentially executed, so that the target equipment is controlled to be on-line, the time and labor cost required by the on-line of the equipment are saved, and the on-line efficiency of the equipment is improved.
Optionally, the first determining module 320 is specifically configured to compare the target resource attribute with resource attributes included in at least one resource attribute set of the stored N 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 online process corresponding to each of the N service types, a target device online process 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 online flow of the target device, so as to control the target device to be online.
Optionally, the control module 340 is specifically configured to determine, according to an execution sequence of the M online steps included in the online process of the target device, a target online step from the M online steps included in the online process of the target device;
under the condition that an online system identifier corresponding to the target online step is the same as a first online system identifier, executing the target online step through the first online system corresponding to 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, and taking the next online step as a new target online step until M online steps included in the target equipment online process are executed, so as to control the target equipment to be online.
Optionally, the control module 340 is further configured to send an online request to a second online system when 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 success or failure of the execution of the target online step;
and under the condition that the execution result indicates that the target on-line step is successfully executed, determining the next on-line step of the target on-line step.
Optionally, referring to fig. 4, fig. 4 is a schematic structural diagram of another line control apparatus on a device according to an embodiment of the present invention, where the apparatus 400 includes:
a second obtaining module 410, configured to obtain 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 more than or equal to 1 and less than or equal to N;
a first storage module 420, configured to store the N service types and the resource attribute set corresponding to each service type of the N service types.
Optionally, the apparatus 400 may further include:
a third obtaining module 430, configured to obtain N online processes of the device set by a user; the m-th equipment online process in the N equipment online processes is set according to the N-th service type in the N service types, and m and N are integers which are more than or equal to 1 and less than or equal to N;
a second storage module 440, configured to store the N service types and the device online processes corresponding to each of the N service types.
An embodiment of the present invention further 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 present invention. Comprises a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 are communicated with each other through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501, when executing the program stored in the memory 503, implements the following steps:
acquiring target resource attributes of target equipment;
determining a target service type corresponding to the target resource attribute;
determining a target device online process corresponding to the target service type, wherein the target device online process comprises M online steps and an 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 on-line flow of the target equipment.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other equipment.
The Memory may include a Random Access Memory (RAM) or a 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 processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the method for on-line control of a device in any of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for on-line control of the device according to any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized 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, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the 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)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be 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. Also, 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 an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (11)

1. An online control method for equipment, which is executed in a server, includes:
acquiring target resource attributes of target equipment;
determining a target service type corresponding to the target resource attribute;
determining a target device online process corresponding to the target service type, wherein the target device online process 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 on-line flow of the target equipment.
2. The method of claim 1, wherein the determining the target service type corresponding to the target resource attribute comprises:
comparing the target resource attribute with resource attributes included in at least one resource attribute set in 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 the target device online process corresponding to the target service type comprises:
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.
4. The method according to claim 1, wherein the controlling the target device to be online according to the execution sequence of the M online steps included in the target device online process comprises:
and sequentially executing the M online steps according to the execution sequence of the M online steps included in the online flow of the target equipment so as to control the target equipment to be online.
5. The method according to claim 1, wherein the controlling the target device to be online according to the execution sequence of the M online steps included in the target device online process comprises:
determining a target online step from M online steps included in the online process of the target equipment according to the execution sequence of the M online steps included in the online process of the target equipment;
under the condition that an online system identifier corresponding to the target online step is the same as a first online system identifier, executing the target online step through the first online system corresponding to 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, and taking the next online step as a new target online step until M online steps included in the target equipment online process are executed, so as to control the target equipment to be online.
6. The method of 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 success or failure of the execution of the target online step;
and under the condition that the execution result indicates that the target on-line step is successfully executed, determining the next on-line step of the target on-line step, and taking the next on-line step of the target on-line step as a new target on-line step.
7. The method of claim 2, further comprising, prior to the obtaining target resource attributes 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 more than or equal to 1 and less than or equal to N;
storing the 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 the obtaining target resource attributes of the target device:
acquiring N equipment online processes set by a user; the m-th equipment online process in the N equipment online processes is set according to the N-th service type in the N service types, and m and N are integers which are more than or equal to 1 and less than or equal to N;
and storing the N service types and the equipment online flow corresponding to each service type in the N service types.
9. The utility model provides a control device that lines on equipment which characterized in that sets up in the server, includes:
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 an online process of a target device corresponding to the target service type, where the online process of the target device includes M online steps and an execution order 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 on-line flow of the target equipment.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 8 when executing a program stored in the memory.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202110621087.4A 2021-06-03 2021-06-03 Device online control method and device, electronic device and readable storage medium Active CN113220439B (en)

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 true CN113220439A (en) 2021-08-06
CN113220439B 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140325501A1 (en) * 2013-04-25 2014-10-30 Fujitsu Limited Computer installation method, computer-readable medium storing computer installation program, and computer installation apparatus
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
US20180314555A1 (en) * 2017-04-27 2018-11-01 International Business Machines Corporation Resource provisioning
WO2019141133A1 (en) * 2018-01-19 2019-07-25 阿里巴巴集团控股有限公司 Task processing method, device and machine readable medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140325501A1 (en) * 2013-04-25 2014-10-30 Fujitsu Limited Computer installation method, computer-readable medium storing computer installation program, and computer installation apparatus
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
US20180314555A1 (en) * 2017-04-27 2018-11-01 International Business Machines Corporation Resource provisioning
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
CN113220439B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN108153670B (en) Interface testing method and device and electronic equipment
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
CN108156252B (en) Data access method and device, server and client
CN109426510B (en) Software processing method and device, electronic equipment and computer readable storage medium
WO2021115054A1 (en) Method for adjusting node configuration in cluster system, and server
CN111400777B (en) Network storage system, user authentication method, device and equipment
CN109921925B (en) Dial testing method and device
CN112115200B (en) Data synchronization method, device, electronic equipment and readable storage medium
CN112291365A (en) Access balance processing method and device, computer equipment and storage medium
CN112770308A (en) Network distribution method and device of intelligent device, electronic device and computer readable medium
CN111125240B (en) Distributed transaction realization method and device, electronic equipment and storage medium
CN109885729B (en) Method, device and system for displaying data
CN114090623A (en) Method and device for creating cache resources, electronic equipment and storage medium
CN110688305A (en) Test environment synchronization method, device, medium and electronic equipment
CN112437148B (en) Service request processing method and device, service server and system
CN112413826B (en) Device configuration method and device, electronic device and storage medium
CN112653736A (en) Parallel source returning method and device and electronic equipment
CN109617817B (en) Method and device for generating forwarding table entry of MLAG networking
CN113220439B (en) Device online control method and device, electronic device and readable storage medium
CN115296979B (en) Fault processing method, device, equipment and storage medium
CN111884932B (en) Link determining method, device, equipment and computer readable storage medium
CN110769462B (en) Network access control method and device
CN111400327B (en) Data synchronization method and device, electronic equipment and storage medium
CN115037653A (en) Service flow monitoring method and device, electronic equipment and storage medium
CN110661655B (en) Cluster deployment method and system, electronic device and storage medium

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