CN114640578A - Automatic configuration method, device and system of equipment - Google Patents

Automatic configuration method, device and system of equipment Download PDF

Info

Publication number
CN114640578A
CN114640578A CN202210252932.XA CN202210252932A CN114640578A CN 114640578 A CN114640578 A CN 114640578A CN 202210252932 A CN202210252932 A CN 202210252932A CN 114640578 A CN114640578 A CN 114640578A
Authority
CN
China
Prior art keywords
equipment
preset
information
condition
execution condition
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.)
Pending
Application number
CN202210252932.XA
Other languages
Chinese (zh)
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210252932.XA priority Critical patent/CN114640578A/en
Publication of CN114640578A publication Critical patent/CN114640578A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides an automatic configuration method, device and system for equipment, relating to the technical field of equipment configuration, wherein the method comprises the following steps: acquiring equipment information of the equipment; under the condition that the device information needs to be judged according to preset judging conditions, judging whether the device information meets the preset executing conditions or not, wherein the preset judging conditions comprise one or more preset device information types; and sending a first instruction set corresponding to the preset execution condition to the equipment under the condition that the equipment information meets the preset execution condition, so that the equipment executes the first instruction set to realize automatic configuration.

Description

Automatic configuration method, device and system of equipment
Technical Field
The present disclosure relates to the field of device configuration technologies, and in particular, to a method, an apparatus, and a system for automatically configuring a device.
Background
Software and hardware factors can cause problems in the use of the device. For example, some devices may have time errors after each power-off or reboot due to hardware factors; also for example, some devices may require repair due to defects in certain versions.
The solution in the related art includes two kinds of equipment upgrade and equipment configuration. Since the upgrading of the device may cause service interruption, in order not to interrupt the service, the device configuration is adopted to configure the problematic device to implement repair.
Disclosure of Invention
The inventor notices that the device configuration in the related art is either manually performed or all devices are uniformly initialized, and the targeted automatic configuration cannot be realized.
In order to solve the above problem, the embodiments of the present disclosure propose the following solutions.
According to an aspect of the embodiments of the present disclosure, there is provided an automatic configuration method of a device, including: acquiring equipment information of the equipment; under the condition that the device information needs to be judged according to preset judging conditions, judging whether the device information meets the preset executing conditions or not, wherein the preset judging conditions comprise one or more preset device information types; and sending a first instruction set corresponding to the preset execution condition to the equipment under the condition that the equipment information meets the preset execution condition, so that the equipment executes the first instruction set to realize automatic configuration.
In some embodiments, a second set of instructions is sent to the device without determining the device information, such that the device executes the second set of instructions to implement auto-configuration.
In some embodiments, the device information includes a device vendor, and the preset execution condition includes one or more preset device vendors; and under the condition that the equipment manufacturer is the same as a preset equipment manufacturer, determining that the equipment information meets the preset execution condition.
In some embodiments, the device information further includes a device model, and the preset execution condition further includes one or more preset device models; and determining that the equipment information meets the preset execution condition under the condition that the equipment model is the same as a preset equipment model.
In some embodiments, in a case where it is determined that the determination needs to be performed on the device information according to a preset determination condition, determining whether the device information meets the preset determination condition includes: judging whether the equipment manufacturer needs to be judged according to whether the equipment manufacturer is matched with a preset equipment information type; under the condition that the judgment on the equipment manufacturer is required, judging whether the equipment manufacturer meets the preset execution condition or not; judging whether the equipment model needs to be judged according to whether the equipment model is matched with a preset equipment information type or not under the condition that the equipment manufacturer is the same as a preset equipment manufacturer or the judgment on the equipment manufacturer is not needed; and under the condition that the judgment on the equipment model is required, judging whether the equipment model meets the preset execution condition.
In some embodiments, the device information further includes a device version, and the preset execution condition further includes one or more preset device versions; and determining that the device information meets the preset execution condition under the condition that the device version is the same as a preset device version.
In some embodiments, in a case where it is determined that the determination needs to be performed on the device information according to a preset determination condition, determining whether the device information meets the preset determination condition further includes: judging whether the equipment version needs to be judged according to whether the equipment version is matched with a preset equipment information type or not under the condition that the equipment model is the same as a preset equipment model or the equipment model does not need to be judged; and under the condition that the equipment version needs to be judged, judging whether the equipment version meets the preset execution condition.
In some embodiments, the device information is obtained in response to each connection establishment with the device; and/or acquiring the equipment information in response to each failure of the equipment; and/or periodically acquiring the device information.
In some embodiments, in response to establishing a connection with the device, obtaining the device information comprises: in response to establishing a connection with the device for the first time, obtaining the device information from the device; after the equipment information is acquired from the equipment, storing the corresponding relation between the equipment information and the identification information of the equipment into a local information base; and in response to establishing a connection with the device for a non-first time, obtaining the device information from the local information store based on the identification information.
In some embodiments, the first instruction set includes a plurality of instructions having an order in which the plurality of instructions are executed by the device.
In some embodiments, the device comprises an access-type optical transport network device.
In some embodiments, the first instruction set is extensible.
According to another aspect of the embodiments of the present disclosure, there is provided an apparatus for automatically configuring a device, including: an acquisition module configured to acquire device information of the device; the judging module is configured to judge whether the equipment information meets a preset execution condition or not under the condition that the equipment information needs to be judged according to a preset judgment condition, wherein the preset judgment condition comprises one or more preset equipment information types; and the sending module is configured to send a first instruction set corresponding to the preset execution condition to the equipment under the condition that the equipment information meets the preset execution condition, so that the equipment executes the first instruction set to realize automatic configuration.
According to another aspect of the embodiments of the present disclosure, there is provided an apparatus for automatically configuring a device, including: a memory; and a processor coupled to the memory, the processor configured to perform the method of any of the above embodiments based on instructions stored in the memory.
According to still another aspect of the embodiments of the present disclosure, there is provided an automatic configuration system of a device, including: the automatic configuration device according to any one of the above embodiments; and a device configured to execute the first set of instructions to implement automatic configuration.
According to a further aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium comprising computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of any one of the above embodiments.
According to a further aspect of the embodiments of the present disclosure, there is provided a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the method of any one of the above embodiments.
In the embodiment of the disclosure, the equipment meeting the conditions is screened by setting the preset judgment conditions and the preset execution conditions, and the instruction set is automatically sent under the condition that the equipment meets the conditions, so that the equipment meeting the conditions can be automatically and pertinently operated, and the automatic and pertinence equipment configuration is realized.
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure 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, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flow diagram of a method of automatic configuration of a device according to some embodiments of the present disclosure.
Fig. 2 is a flow diagram illustrating a method for automatic configuration of a device according to further embodiments of the present disclosure.
Fig. 3 is a flow diagram of a method of automatic configuration of a device according to further embodiments of the present disclosure.
Fig. 4 is a flow diagram illustrating a method for automatic configuration of a device according to some further embodiments of the present disclosure.
FIG. 5 is a flow diagram of a process of execution of a first set of instructions according to some embodiments of the present disclosure.
Fig. 6 is a schematic structural diagram of an automatic configuration device of an apparatus according to some embodiments of the present disclosure.
FIG. 7 is a block diagram of an automatic configuration device of an apparatus according to further embodiments of the present disclosure.
FIG. 8 is a block diagram of an auto-configuration system of a device according to some embodiments of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The relative arrangement of parts and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 1 is a flow diagram of a method of automatic configuration of a device according to some embodiments of the present disclosure.
In step 102, device information of a device is obtained.
In some embodiments, the device is an access type Optical Transport Network (OTN) device. The device information includes, for example, one or more of a device manufacturer, a device model, and a device version.
In step 104, in the case that it is determined that the determination needs to be performed on the device information according to the preset determination condition, it is determined whether the device information meets the preset execution condition, where the preset determination condition includes one or more preset device information types.
For example, the preset determination condition and the preset execution condition may be preset according to known device defects, and how to determine whether the determination needs to be performed on the device information and how to determine whether the device information meets the preset execution condition will be described later in connection with some embodiments.
In step 106, when the device information meets the preset execution condition, a first instruction set corresponding to the preset execution condition is sent to the device, so that the device executes the first instruction set to realize automatic configuration. The execution of the first set of instructions will be further described below in connection with some embodiments.
In the embodiment, the preset judgment condition and the preset execution condition are set, the devices meeting the conditions are screened, and the instruction set is automatically sent under the condition that the devices meet the conditions, so that the devices meeting the conditions can be automatically and pertinently operated, and automatic and pertinence device configuration is realized.
How to judge whether the device information needs to be judged and whether the device information meets the preset execution condition is described below with reference to some embodiments.
FIG. 2 is a flow diagram of a method for automatic configuration of a device according to further embodiments of the present disclosure.
As shown in fig. 2, at step 202, device information is obtained. Here, the device information includes a device manufacturer.
In step 204, it is determined whether a determination needs to be performed on the device manufacturer according to a preset determination condition.
For example, the preset judgment condition includes one or more preset device information types, and in the case of including such a preset device information type as "device manufacturer", the judgment result is that judgment needs to be performed on the device manufacturer.
In case it is determined that the determination needs to be performed on the device manufacturer according to the preset determination condition, step 206 is performed.
In step 206, it is determined whether the device manufacturer meets the predetermined execution conditions. For example, the preset execution condition includes one or more preset device manufacturers.
In the case that the equipment manufacturer is the same as a preset equipment manufacturer, it is determined that the equipment information meets the preset execution condition, and step 208 is subsequently executed.
In other embodiments, the device information includes a device model in addition to a device manufacturer; the preset execution condition includes one or more preset device models in addition to one or more preset device manufacturers. In this case, in the case where the device model is the same as one preset device model, it is determined that the device information meets the preset execution condition.
In still other embodiments, the device information includes a device version in addition to a device vendor and a device model; the preset execution condition includes one or more preset device versions in addition to one or more preset device manufacturers and one or more preset device models. In this case, in the case where the device version is the same as one preset device version, it is determined that the device information meets the preset execution condition.
As some implementations, step 208 is not performed in case the device information does not meet the preset execution condition.
In step 208, a first instruction set corresponding to the preset execution condition is sent to the device, so that the device executes the first instruction set to implement automatic configuration.
In the above embodiment, the device manufacturer is set as the preset device information type, so that the devices from different device manufacturers can be conveniently screened and judged, the devices with problems can be conveniently screened from the granularity of the device manufacturer, and the devices from some specific device manufacturers can be conveniently configured in a targeted manner.
The following describes, with reference to fig. 3, an implementation process of an automatic configuration method of a device according to some embodiments of the present disclosure in a case where the device information includes a device manufacturer and a device model.
Fig. 3 is a flow diagram of a method of automatic configuration of a device according to further embodiments of the present disclosure.
At step 302, device information is obtained. Here, the device information includes a device manufacturer and a device model.
At step 304, a determination is made as to whether a determination is required of the device manufacturer based on whether the device manufacturer matches a predetermined device information type. For example, the preset device information type includes a device manufacturer and a device model, and when one preset device information type is a device manufacturer, the judgment result is that the device manufacturer needs to be judged; and under the condition that the equipment manufacturer is not matched with any preset equipment information type, judging that the equipment manufacturer does not need to be judged according to the judgment result.
If the judgment needs to be performed on the equipment manufacturer, step 306 is performed; step 308 is performed without the need to make a determination as to the device manufacturer.
In step 306, it is determined whether the device manufacturer meets the predetermined execution condition. The preset execution condition includes one or more preset device manufacturers and includes one or more preset device models.
In the case where the equipment manufacturer is the same as a pre-set equipment manufacturer, step 308 is performed.
In step 308, it is determined whether a determination of the device model is required based on whether the device model matches a predetermined device information type. For example, when there is a case where the preset device information type is the device model, the determination result is that determination needs to be performed on the device model; and under the condition that the equipment model is not matched with any preset equipment information type, judging that the equipment model does not need to be judged according to the judgment result.
In case that the judgment on the device model is needed, executing step 310; in the case where the determination on the device model is not required, step 312 is performed.
In step 310, it is determined whether the device model meets a predetermined execution condition. In the case that the device model is the same as a preset device model, it is determined that the device information meets the preset execution condition, and step 312 is subsequently performed.
In step 312, a first instruction set corresponding to the preset execution condition is sent to the device, so that the device executes the first instruction set to implement automatic configuration.
In the above embodiment, the judgment is performed first from the granularity of the equipment manufacturer, and then the judgment is performed by refining the granularity of the equipment model, so that the screening and the judgment of the equipment are further refined, the equipment with problems can be screened from the granularity of the equipment model, the equipment with certain specific equipment models can be operated in a targeted manner, and the service requirements can be met more comprehensively.
The following describes, with reference to fig. 4, an implementation process of an automatic configuration method of a device according to some embodiments of the present disclosure in a case where the device information includes a device manufacturer, a device model, and a device version.
Fig. 4 is a flow diagram of a method of automatic configuration of a device according to further embodiments of the present disclosure.
At step 402, device information is obtained. Here, the device information includes a device manufacturer, a device model, and a device version.
The specific implementation of steps 404-410 in the embodiment shown in fig. 4 can be as described above with respect to steps 304-310 in the embodiment shown in fig. 3, and only the steps different from fig. 3 will be described below.
Step 412 is performed when the device model is the same as a preset device model, or when a determination of the device model is not required.
At step 412, a determination is made as to whether a determination of the device version is required based on whether the device version matches a predetermined device information type. When the preset equipment information type is the equipment version, judging that the equipment version needs to be judged according to the judgment result; and under the condition that the equipment version is not matched with any preset equipment information type, judging that the equipment version does not need to be judged according to the judgment result.
If the device version needs to be judged, go to step 414; in the event that a determination of the device version is not required, step 416 is performed.
In step 414, it is determined whether the device version meets the predetermined execution condition. The preset execution condition further includes, for example, one or more preset device versions.
In case the device version is the same as a preset device version, it is determined that the device information meets the preset execution condition, and step 416 is performed subsequently.
In step 416, a first instruction set corresponding to the preset execution condition is sent to the device, so that the device executes the first instruction set to implement automatic configuration.
In the above embodiment, the judgment is performed first from the granularity of the equipment manufacturer, then the judgment is performed by refining the granularity of the equipment model, and finally the judgment is performed by further refining the granularity of the slave equipment version, so that the screening and the judgment of the equipment are further refined, the screening of the equipment with problems from the granularity of the equipment version is facilitated, the equipment with certain specific equipment versions can be operated in a targeted manner, and the service requirements can be met more comprehensively.
The execution of the first instruction set is described below.
FIG. 5 is a flow diagram of a process of execution of a first set of instructions according to some embodiments of the present disclosure. Table 1 is a table of a first instruction set according to some embodiments of the present disclosure.
TABLE 1
Figure BDA0003547521700000091
Figure BDA0003547521700000101
In the embodiment shown in fig. 5 and table 1, the first instruction set includes a plurality of instructions having an order, the plurality of instructions being executed by the device in order. As some implementations, the first set of instructions may be customized and extended according to business needs, including, for example, one or more of the instructions in table 1.
Further, the execution of the instructions by the device is accomplished by an actionable object in the device. The operable objects include: a network element (ME), a board (EQ), a physical port (PTP), a virtual port (CTP), and a bottom layer intersection (connection). Different actionable objects may execute different instructions, for example, a query and synchronize time getTime instruction may be executed by a network element (ME).
At step 502, an instruction in a first instruction set is executed. For example, the first instruction is executed when step 502 is executed for the first time, and the other instructions are executed in order when step 502 is not executed for the first time.
At step 504, it is determined whether the instruction was executed successfully.
In case the execution of the instruction is successful, executing step 506; in the event that the instruction fails to execute, step 508 is performed.
At step 506, it is determined whether further instructions need to be executed.
In the event that it is determined that additional instructions need to be executed, step 502 is performed. And in the case of judging that other instructions do not need to be executed continuously, finishing the execution.
At step 508, a determination is made as to whether all instructions in the first instruction set have been executed.
In the event that all instructions in the first instruction set are determined to have unexecuted instructions, step 502 is performed. In the case where it is determined whether all the instructions in the first instruction set have been executed, execution is ended.
In the above embodiment, the instructions can be executed in sequence, and whether to continue to execute other instructions can be determined after the execution of each instruction fails, which is beneficial to fully adapting to the service requirement.
In some embodiments, the second set of instructions is sent to the device to cause the device to execute the second set of instructions to implement the auto-configuration without requiring a determination to be made of the device information. For example, the second set of instructions may be sent to the device without requiring a determination of the device manufacturer, device model, and device version. The second instruction set may be set according to business needs. In some embodiments, the second instruction set may be the same as the first instruction set or may be different from the first instruction set.
How to obtain device information is described below in connection with some embodiments.
In some embodiments, the device information is obtained in response to each connection establishment with a device.
As some implementations, device information of a device is obtained from the device in response to first establishing a connection with the device. For example, before a connection is first established with a device, the IP address of the device is manually registered with a local information base so that a connection can be established with the device based on the IP address. After the connection is established, the device information may be acquired, for example, by issuing a device information acquisition instruction.
And after the slave equipment acquires the equipment information, storing the corresponding relation between the equipment information and the identification information of the equipment into a local information base. For example, the identification information includes an IP address.
Thereafter, in response to establishing a connection with the device for a non-first time, device information is obtained from the local information repository based on the identification information. For example, the device information may be obtained through the IP address when the connection is subsequently established.
In the embodiment, the equipment information is acquired each time the connection with the equipment is established, so that the equipment can be checked on line, and targeted automatic configuration can be realized.
In other embodiments, device information for a device is obtained in response to each occurrence of a failure of the device. For example, when a time error of a device is found, device information is acquired, and a corresponding instruction is transmitted.
In still other embodiments, device information for the device is obtained periodically. The device information is acquired, for example, once every hour.
The above embodiments may be combined with each other.
For example, the device information is acquired when the connection with the device is established every time, and the information is acquired when the device fails every time, so that the device can be checked on line and in time when the device fails, the targeted automatic configuration is performed, and the occurrence of device failures is reduced.
For example, the equipment information is acquired not only when the equipment is connected with the equipment every time and when the equipment fails, but also periodically, so that the equipment can be checked when the equipment is on line, runs and fails, the targeted automatic configuration is performed, and the equipment failure is further reduced.
Next, an example of the device auto-configuration method is described by taking an access OTN device as an example.
Due to hardware reasons, in the case of power failure or restart of an access-type OTN device of vendor a, the device time may become 1970, so that time fields in all uplink information of the device are wrong and can only be modified manually.
Since all the devices of the manufacturer have the problem, the preset determination condition is set to include only one preset device information type of the device manufacturer, that is, only the device manufacturer needs to be determined, and the preset execution condition is set so that the device information conforms to the preset execution condition if the device manufacturer in the device information is consistent with the preset device manufacturer and there is no preset execution condition for the device model and the device version.
The preset execution condition comprises the following contents:
marking: a unique digital identifier;
name: VENDOR _ a _ TIME _ UPDATE;
equipment manufacturer: a;
the equipment model is as follows: empty;
device version: and (4) is empty.
Next, setting a first instruction set according to the preset execution condition, and establishing an instruction setTime for modifying the configuration time.
Thus, when a device after a restart or power outage reestablishes a connection, the device is checked based on the device information obtained from the local information repository. And sending an instruction setTime to the equipment under the condition that the equipment information of the equipment meets the preset execution condition, thereby realizing the function of automatically updating the equipment time.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the device embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Fig. 6 is a schematic structural diagram of an automatic configuration device of an apparatus according to some embodiments of the present disclosure.
As shown in fig. 6, the automatic configuration apparatus 600 of the device includes an obtaining module 601, a determining module 602, and a sending module 603.
The acquisition module 601 is configured to acquire device information of a device.
The determination module 602 is configured to determine whether the device information meets a preset execution condition in a case where it is determined that the determination needs to be performed on the device information according to the preset determination condition.
The sending module 603 is configured to send a first instruction set corresponding to the preset execution condition to the device when the device information meets the preset execution condition, so that the device executes the first instruction set to implement automatic configuration.
FIG. 7 is a block diagram of an automatic configuration device of an apparatus according to further embodiments of the present disclosure.
As shown in fig. 7, the automatic configuration apparatus 700 of the device comprises a memory 701 and a processor 702 coupled to the memory 701, wherein the processor 702 is configured to execute the method of any of the foregoing embodiments based on instructions stored in the memory 701.
The memory 701 may include, for example, a system memory, a fixed non-volatile storage medium, and the like. The system memory may store, for example, an operating system, application programs, a Boot Loader (Boot Loader), and other programs.
The apparatus 700 may also include an input-output interface 703, a network interface 704, a storage interface 705, and the like. The interfaces 703, 704, 705 and the memory 701 and the processor 702 may be connected by a bus 506, for example. The input/output interface 703 provides a connection interface for input/output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 704 provides a connection interface for various networking devices. The storage interface 705 provides a connection interface for external storage devices such as an SD card and a usb disk.
FIG. 8 is a block diagram of an auto-configuration system of a device according to some embodiments of the present disclosure.
As shown in fig. 8, an auto-configuration system 800 includes an auto-configuration apparatus 801 and a device 802. The auto-configuration device 801 may comprise an auto-configuration device as described in any of the above embodiments, such as the auto-configuration device 600 or the auto-configuration device 700. The device 802 is configured to execute a first set of instructions to implement auto-configuration. In some embodiments, device 802 may also be configured to execute a second set of instructions to implement auto-configuration.
Embodiments of the present disclosure also provide a computer-readable storage medium including computer program instructions, which when executed by a processor, implement the method of any one of the above embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program, wherein the computer program realizes the method of any one of the above when executed by a processor.
Thus, various embodiments of the present disclosure have been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
As will be appreciated by one of skill in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that the functions specified in one or more of the flows in the flowcharts and/or one or more of the blocks in the block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the foregoing examples are for purposes of illustration only and are not intended to limit the scope of the present disclosure. It will be understood by those skilled in the art that various changes may be made in the above embodiments or equivalents may be substituted for elements thereof without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims (17)

1. A method of automatic configuration of a device, comprising:
acquiring equipment information of the equipment;
under the condition that the device information needs to be judged according to preset judging conditions, judging whether the device information meets the preset executing conditions or not, wherein the preset judging conditions comprise one or more preset device information types; and
and sending a first instruction set corresponding to the preset execution condition to the equipment under the condition that the equipment information meets the preset execution condition, so that the equipment executes the first instruction set to realize automatic configuration.
2. The method of claim 1, further comprising:
and under the condition that judgment on the equipment information is not required to be executed, sending a second instruction set to the equipment so that the equipment executes the second instruction set to realize automatic configuration.
3. The method of claim 1, wherein,
the device information comprises device manufacturers, and the preset execution condition comprises one or more preset device manufacturers;
and under the condition that the equipment manufacturer is the same as a preset equipment manufacturer, determining that the equipment information meets the preset execution condition.
4. The method of claim 3, wherein,
the device information further comprises a device model, and the preset execution condition further comprises one or more preset device models;
and determining that the equipment information meets the preset execution condition under the condition that the equipment model is the same as a preset equipment model.
5. The method of claim 4, wherein in the case where it is determined that the determination needs to be performed on the device information according to a preset determination condition, determining whether the device information meets a preset execution condition comprises:
judging whether the equipment manufacturer needs to be judged according to whether the equipment manufacturer is matched with a preset equipment information type;
under the condition that the judgment on the equipment manufacturer is required, judging whether the equipment manufacturer meets the preset execution condition or not;
judging whether the equipment model needs to be judged according to whether the equipment model is matched with a preset equipment information type or not under the condition that the equipment manufacturer is the same as a preset equipment manufacturer or the judgment on the equipment manufacturer is not needed; and
and under the condition that the judgment on the equipment model is required, judging whether the equipment model meets the preset execution condition.
6. The method of claim 5, wherein,
the device information further comprises a device version, and the preset execution condition further comprises one or more preset device versions;
and determining that the device information meets the preset execution condition under the condition that the device version is the same as a preset device version.
7. The method of claim 6, wherein in a case where it is determined that the determination needs to be performed on the device information according to a preset determination condition, determining whether the device information meets a preset execution condition further comprises:
judging whether the equipment version needs to be judged according to whether the equipment version is matched with a preset equipment information type or not under the condition that the equipment model is the same as a preset equipment model or the equipment model does not need to be judged;
and under the condition that the equipment version needs to be judged, judging whether the equipment version meets the preset execution condition.
8. The method of any one of claims 1-7,
responding to each connection establishment with the equipment, and acquiring the equipment information; and/or
Responding to each failure of the equipment, and acquiring the equipment information; and/or
The device information is acquired periodically.
9. The method of claim 8, wherein obtaining the device information in response to establishing a connection with the device comprises:
in response to establishing a connection with the device for the first time, obtaining the device information from the device;
after the equipment information is acquired from the equipment, storing the corresponding relation between the equipment information and the identification information of the equipment into a local information base; and
in response to establishing a connection with the device for a non-first time, obtaining the device information from the local information store based on the identification information.
10. The method of claim 1, wherein the first instruction set includes a plurality of instructions having an order in which the plurality of instructions are executed by the device.
11. The method of claim 1, wherein the device comprises an access-type optical transport network device.
12. The method of claim 1, wherein the first instruction set is extensible.
13. An apparatus for automatic configuration of a device, comprising:
an acquisition module configured to acquire device information of the device;
the judging module is configured to judge whether the equipment information meets a preset execution condition or not under the condition that the equipment information needs to be judged according to a preset judging condition, wherein the preset judging condition comprises one or more preset equipment information types; and
the sending module is configured to send a first instruction set corresponding to the preset execution condition to the device under the condition that the device information meets the preset execution condition, so that the device executes the first instruction set to achieve automatic configuration.
14. An apparatus for automatic configuration of a device, comprising:
a memory; and
a processor coupled to the memory and configured to perform the method of any of claims 1-12 based on instructions stored in the memory.
15. An automatic configuration system for a device, comprising:
the auto-configuration device of claim 13 or 14; and
a device configured to execute the first set of instructions to implement auto-configuration.
16. A computer readable storage medium comprising computer program instructions, wherein the computer program instructions, when executed by a processor, implement the method of any of claims 1-12.
17. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the method of any one of claims 1-12.
CN202210252932.XA 2022-03-15 2022-03-15 Automatic configuration method, device and system of equipment Pending CN114640578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210252932.XA CN114640578A (en) 2022-03-15 2022-03-15 Automatic configuration method, device and system of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210252932.XA CN114640578A (en) 2022-03-15 2022-03-15 Automatic configuration method, device and system of equipment

Publications (1)

Publication Number Publication Date
CN114640578A true CN114640578A (en) 2022-06-17

Family

ID=81948012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210252932.XA Pending CN114640578A (en) 2022-03-15 2022-03-15 Automatic configuration method, device and system of equipment

Country Status (1)

Country Link
CN (1) CN114640578A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101690029A (en) * 2007-06-27 2010-03-31 微软公司 Techniques for automatic software provisioning
US20190205570A1 (en) * 2017-12-28 2019-07-04 Shenzhen Launch Software Co., Ltd. Method and device for verifying instructions of diagnostic equipment, and lower computer
CN112685322A (en) * 2021-01-12 2021-04-20 武汉思普崚技术有限公司 Customized test method, device and system
CN112929188A (en) * 2019-12-05 2021-06-08 中国电信股份有限公司 Device connection method, system, apparatus and computer readable storage medium
CN112948329A (en) * 2019-12-11 2021-06-11 中盈优创资讯科技有限公司 Method and device for comparing equipment configuration files

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101690029A (en) * 2007-06-27 2010-03-31 微软公司 Techniques for automatic software provisioning
US20190205570A1 (en) * 2017-12-28 2019-07-04 Shenzhen Launch Software Co., Ltd. Method and device for verifying instructions of diagnostic equipment, and lower computer
CN112929188A (en) * 2019-12-05 2021-06-08 中国电信股份有限公司 Device connection method, system, apparatus and computer readable storage medium
CN112948329A (en) * 2019-12-11 2021-06-11 中盈优创资讯科技有限公司 Method and device for comparing equipment configuration files
CN112685322A (en) * 2021-01-12 2021-04-20 武汉思普崚技术有限公司 Customized test method, device and system

Similar Documents

Publication Publication Date Title
US11003599B2 (en) Method, apparatus and system of managing external devices, memory and unmanned aerial vehicle
US8972973B2 (en) Firmware update discovery and distribution
US9235404B2 (en) Firmware update system
US9110761B2 (en) Resource data structures for firmware updates
CN107733985B (en) Method and device for deploying functional components of cloud computing system
CN107193607B (en) Method and apparatus for updating code file, storage medium, processor, and terminal
CN103748569A (en) System and methods for driverless operation of USB device
US20180088932A1 (en) Multi-platform installer
WO2017185954A1 (en) Method, host, and system for implementing usb device management
CN108319492B (en) Method, device and system for resetting physical machine
CN106484442B (en) Server system and method for updating startup mapping file
US11061689B2 (en) Synchronization method for performing bi-directional data synchronization for bios
CA2997302C (en) Application migration
CN112269588A (en) Algorithm upgrading method, device, terminal and computer readable storage medium
CN111984287A (en) Equipment upgrading method and system
CN114640578A (en) Automatic configuration method, device and system of equipment
CN111399866B (en) Updating method and device of VNF (virtual network function) package
EP4162649A1 (en) Stable references for network function life cycle management automation
CN115277398A (en) Cluster network configuration method and device
US10540175B2 (en) Up-level applications to a new OS
CN113867754A (en) Firmware maintenance method, system, equipment and medium
CN112148376A (en) Terminal starting method and device
CN112612572A (en) Interactive cloud native application distribution management system and method based on graphics
JP2008191957A (en) Computer system, and file system automatic setting and os activation method therefor
CN116909581B (en) HBase service multi-instance management method, device, equipment 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