WO2017219919A1 - Script processing method, apparatus and system, and router - Google Patents

Script processing method, apparatus and system, and router Download PDF

Info

Publication number
WO2017219919A1
WO2017219919A1 PCT/CN2017/088655 CN2017088655W WO2017219919A1 WO 2017219919 A1 WO2017219919 A1 WO 2017219919A1 CN 2017088655 W CN2017088655 W CN 2017088655W WO 2017219919 A1 WO2017219919 A1 WO 2017219919A1
Authority
WO
WIPO (PCT)
Prior art keywords
script
predetermined service
terminal module
state
module
Prior art date
Application number
PCT/CN2017/088655
Other languages
French (fr)
Chinese (zh)
Inventor
仲燕
薛垂民
施维恭
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017219919A1 publication Critical patent/WO2017219919A1/en

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • 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/0803Configuration setting
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44552Conflict resolution, i.e. enabling coexistence of conflicting executables

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a script processing method, apparatus, system, and router.
  • a communication device such as a router or a switch needs to be configured on different terminals when running in a network, such as a command line, a Simple Network Management Protocol (SNMP), and a network configuration ( Terminal configuration commands such as Network Configuration (referred to as NETCONF) protocol.
  • SNMP Simple Network Management Protocol
  • NETCONF Network Configuration
  • the state of script loading and unloading of the same module of different terminals may affect the command configuration.
  • the terminal module A needs to register a script of two or more service modules. If the terminal module A is started, the script of the service module 1 corresponding to the terminal module A is successfully loaded, and the unique script status identifier of the service module 1 is identified as After the loading state, and then the terminal module B is also started, at this time, since the unique script state of the service module 1 has been identified as the loaded state, the device considers that the script corresponding to the terminal module B of the service module 1 has been successfully loaded. However, the script of the service module 1 corresponding to the terminal module B is not loaded, and the command of the service module 1 cannot be configured on the terminal module B.
  • the embodiments of the present disclosure provide a script processing method, apparatus, system, and router, to at least solve the problem of mutual interference when loading scripts of the same service module in different terminals in the related art. question.
  • a script processing method including: detecting that a terminal module is started; determining whether a script of a predetermined service corresponding to the terminal module has been loaded; and if the determination result is negative, loading the location
  • the script of the predetermined service is set and the script state of the predetermined service is set to the loaded state corresponding to the script state of the terminal module.
  • determining whether the script of the predetermined service corresponding to the terminal module has been loaded includes: determining, according to a script state of the predetermined service, whether a script of the predetermined service corresponding to the terminal module has been loaded, where The script state of the predetermined service includes: a loaded state, an uninstalled state.
  • the method further includes: detecting that the terminal module is faulty; uninstalling the script of the predetermined service and The script of the predetermined service corresponds to the script state of the terminal module being set to the uninstalled state.
  • detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
  • a script processing method including: detecting that a terminal module is started; determining whether there is a script for a predetermined service corresponding to the terminal module; and if the determination result is negative, loading a script of the predetermined service corresponding to the terminal module, wherein script states of the predetermined service corresponding to different terminal modules are respectively set to a loaded state.
  • determining whether the script of the predetermined service corresponding to the terminal module exists includes: determining, according to a script state of the predetermined service, whether there is a script of the predetermined service corresponding to the terminal module, where The script state of the predetermined service includes: a loaded state, an uninstalled state.
  • the method further includes: detecting that the terminal module is faulty; and uninstalling the loaded terminal corresponding to the terminal module.
  • the predetermined business script where the script will be uninstalled
  • the script states of the predetermined services corresponding to different terminal modules are respectively set to the uninstalled state.
  • detecting that the terminal module starts includes: detecting that the terminal module and the predetermined module complete initialization.
  • a script processing apparatus including: a detecting module configured to detect that the terminal module is activated; and a determining module configured to determine whether a script of a predetermined service corresponding to the terminal module has been loaded; Loading a module, configured to load a script of the predetermined service and set a script state of the predetermined service to a loaded state corresponding to a script state of the terminal module if the determination result is negative.
  • the loading module is further configured to: after the script state of the predetermined service is set to a loaded state of the terminal module, detecting that the terminal module is faulty; uninstalling the predetermined service The script sets the script of the predetermined service to the uninstalled state corresponding to the script state of the terminal module.
  • a script processing apparatus including: a first detecting module configured to detect activation of a terminal module; and a determining module configured to determine whether there is a predetermined service corresponding to the terminal module a script that is configured to load a script of the predetermined service corresponding to the terminal module, where the result of the determination is no, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to The status has been loaded.
  • the determining module includes: a determining unit, configured to determine, according to a script state of the predetermined service, whether there is a script of the predetermined service corresponding to the terminal module, where a script state of the predetermined service Includes: loaded state, unloaded state.
  • the method further includes: a second detecting module, configured to detect that the terminal module is faulty; and an uninstalling module, the uninstalling module, configured to uninstall the loaded script of the predetermined service corresponding to the terminal module, where And setting the script state of the predetermined service corresponding to the different terminal module from which the script is uninstalled to the uninstalled state.
  • the first detecting module includes: a detecting unit, configured to detect that the terminal module and the service module complete initialization.
  • a router is provided, including the above embodiment The device of any of the preceding claims.
  • a script processing system including: a service module configured to execute a predetermined service; and a terminal module configured to configure a service module for loading a script of the predetermined service for execution a command for the predetermined service; the script processing device is configured to detect that the terminal module is activated; determine whether the script of the predetermined service corresponding to the terminal module has been loaded; and if the determination result is negative, load the predetermined service The script sets the script of the predetermined service to the loaded state corresponding to the script state of the terminal module.
  • a script processing system including: a service module configured to execute a predetermined service; and a terminal module configured to configure a service module for loading a script of the predetermined service for execution a command for scheduling a service; the script processing device is configured to, after detecting that the terminal module is started, to load a script corresponding to the terminal module, in a case where it is determined that there is no script for a predetermined service corresponding to the terminal module a script for a predetermined service, wherein a script state of the predetermined service corresponding to a different terminal module is respectively set to a loaded state; and/or the script processing device is further configured to detect that the terminal module appears A script for uninstalling the loaded scheduled service corresponding to the terminal module, wherein the script state of the predetermined service corresponding to the different terminal module from which the script is uninstalled is set to the uninstalled state.
  • a storage medium is also provided.
  • the storage medium is configured to store program code for performing the following steps: detecting that the terminal module is started; determining whether there is a script for a predetermined service corresponding to the terminal module; and if the determination result is negative, loading the terminal with the terminal.
  • the storage medium is further configured to store program code for performing the following steps: determining whether there is a script of the predetermined service corresponding to the terminal module comprises: determining whether the existence and the presence are based on a script state of the predetermined service a script of the predetermined service corresponding to the terminal module, where the script state of the predetermined service includes: a loaded state, and an uninstalled state.
  • the storage medium is further configured to store program code for performing the following steps: After the script state of the predetermined service corresponding to the different terminal modules is respectively set to the loaded state, the method further includes: detecting that the terminal module is faulty; and uninstalling the loaded script of the predetermined service corresponding to the terminal module , wherein the script state of the predetermined service corresponding to the different terminal module from which the script is uninstalled is set to the uninstalled state, respectively.
  • the storage medium is further configured to store program code for performing the step of detecting that the terminal module activation comprises detecting that the terminal module and the predetermined service complete initialization.
  • a processor for running a program wherein the program is executed to perform the method of any of the above.
  • the embodiment of the present disclosure detects that the terminal module is started; determines whether the script of the predetermined service corresponding to the terminal module has been loaded; and if the determination result is negative, loads the script of the predetermined service and corresponds the script of the predetermined service to the terminal.
  • the module's script state is set to the loaded state. After the script of the predetermined service is loaded, only the script state of the predetermined service corresponding to the terminal module loaded with the predetermined service is set to the loaded state, that is, each terminal module has its own corresponding to the predetermined service.
  • the script state is such that the flags of the scripts of the different terminals to the predetermined modules are no longer globally unique. Therefore, the problem of mutual interference when the scripts of the same service modules are loaded into different terminals in the related art can be solved.
  • FIG. 1 is a schematic diagram of a script for processing different terminals corresponding to the same service module in the related art
  • FIG. 2 is a block diagram showing the hardware structure of a communication device of a script processing method according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart 1 of a script processing method according to an embodiment of the present disclosure.
  • FIG. 4 is a flowchart 2 of a script processing method according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of a script for processing different terminals corresponding to different service modules according to an embodiment of the present disclosure
  • FIG. 6 is a structural block diagram 1 of a script processing apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a structural block diagram 2 of a script processing apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a structural block diagram of a determining module 74 in a script processing apparatus according to an embodiment of the present disclosure
  • FIG. 9 is a block diagram showing a preferred structure of a script processing apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a structural block diagram of a first detecting module 72 in a script processing apparatus according to an embodiment of the present disclosure
  • FIG. 11 is a structural block diagram of a router according to an embodiment of the present disclosure.
  • FIG. 12 is a structural block diagram 1 of a script processing system according to an embodiment of the present disclosure.
  • FIG. 13 is a structural block diagram 2 of a script processing system according to an embodiment of the present disclosure.
  • FIG. 2 is a hardware structural block diagram of a communication device of a script processing method according to an embodiment of the present disclosure.
  • communication device 20 may include one or more (only one of which is shown in FIG. 2) processor 202 (processor 202 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. ) a memory 204 for storing data, and a transmission device 206 for communication functions.
  • processor 202 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA.
  • memory 204 for storing data
  • a transmission device 206 for communication functions.
  • communication device 20 may also include more or fewer components than shown in FIG. 2, or have a different configuration than that shown in FIG. 2.
  • the memory 204 may be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the script processing method in the embodiment of the present disclosure, and the processor 202 executes each by executing a software program and a module stored in the memory 204.
  • a functional application and data processing, that is, the above method is implemented.
  • Memory 204 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 204 can further include memory remotely located relative to processor 202, which can be connected to communication device 20 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 206 is arranged to receive or transmit data via a network.
  • the network specific examples described above may include a wireless network provided by a communication provider of the communication device 20.
  • transmission device 206 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • NIC Network Interface Controller
  • the transmission device 206 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
  • RF Radio Frequency
  • FIG. 3 is a flowchart 1 of a script processing method according to an embodiment of the present disclosure. As shown in FIG. 3, the process includes the following steps:
  • Step S302 detecting that the terminal module is started
  • Step S304 determining whether the script of the predetermined service corresponding to the terminal module has been loaded
  • Step S306 if the determination result is no, the script of the predetermined service is loaded and the script state of the predetermined service is set to the loaded state corresponding to the script state of the terminal module.
  • the script state of the predetermined service corresponding to the terminal module loaded with the predetermined service is set to the loaded state, that is, each terminal module has its own corresponding to the predetermined service.
  • the script state is such that the flags of the scripts of the different terminals to the predetermined modules are no longer globally unique. Therefore, the problem of mutual interference when the scripts of the same service modules are loaded into different terminals in the related art can be solved.
  • determining whether the script of the predetermined service corresponding to the terminal module has been loaded includes: determining, according to the script state of the predetermined service, whether the script of the predetermined service corresponding to the terminal module has been loaded, wherein the script state of the predetermined service includes: the loaded state , the status has been uninstalled.
  • the method further includes: detecting that the terminal module is faulty; uninstalling the script of the predetermined service and corresponding to the terminal module The script status is set to the uninstalled state.
  • detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
  • FIG. 4 is a second flowchart of a script processing method according to an embodiment of the present disclosure. As shown in FIG. 4, the flow includes the following steps:
  • Step S402 detecting that the terminal module is started
  • Step S404 determining whether there is a script for a predetermined service corresponding to the terminal module
  • step S406 if the determination result is negative, the script of the predetermined service corresponding to the terminal module is loaded, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to the loaded state.
  • the script states of the predetermined service corresponding to different terminal modules are respectively set, that is, each terminal module has its own script state corresponding to the predetermined service, so that different terminal pairs are
  • the flag of the script state of the predetermined module is no longer globally unique. Therefore, the problem of mutual interference when the scripts of the same service module are loaded into different terminals in the related art can be solved.
  • the script for determining whether there is a predetermined service corresponding to the terminal module includes: Determining whether there is a script of a predetermined service corresponding to the terminal module, where the script state of the predetermined service includes: a loaded state, an uninstalled state.
  • the method further includes: detecting that the terminal module is faulty; and uninstalling the loaded predetermined service corresponding to the terminal module a script in which a script state of the predetermined service corresponding to a different terminal module from which the script is uninstalled is set to an uninstalled state, respectively.
  • the scripts of all the loaded service modules of the terminal are uninstalled, and the script states corresponding to the service modules of the service modules are set to the uninstalled state. .
  • the script states of the different terminal modules corresponding to the predetermined service are respectively set, that is, the uninstall status of each terminal module corresponding to the predetermined service is set separately, and thus, It solves the problem of mutual interference when the scripts of the same service module are uninstalled by different terminals in the related art.
  • the problem occurs in the following scenarios in the related art: the terminal module A loads the scripts of two or more service modules, and if the terminal module A fails, uninstalls the script of the service module I corresponding to the terminal module A and identifies The unique script state of the service module I in the system is identified as the uninstalled state, and then the terminal module B also fails.
  • the service module I Since the unique script state of the service module I in the system has been marked as the uninstalled state, the service module I is considered to correspond.
  • the script for the terminal module B has also been successfully uninstalled, but the script of the terminal module B is not actually uninstalled, and therefore, the storage space is wasted due to unnecessary scripts (the script of the terminal module B) being stored.
  • detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
  • FIG. 5 is a script for processing different terminals corresponding to different service modules according to an embodiment of the present disclosure.
  • the schematic diagram is to load and/or uninstall the script corresponding to the service module for each terminal through the adaptation layer module, and then set the script state of the service module corresponding to the different terminal (the same terminal module). The process is as follows:
  • the terminal module, the adaptation layer module, and the service module are initialized.
  • the adaptation layer module senses that the terminal module is initialized and senses that the relevant service module to be loaded by the terminal module is initialized, the terminal module is loaded.
  • the script of the service module sets the state of the script corresponding to the terminal of the service module (set to the loaded state), and the service module that has been loaded with the script can configure the command in the corresponding terminal.
  • the script state of the service module corresponding to the different terminal is set separately, so that the loading of the loading script of the same service module corresponding to different terminals can be ensured. / or uninstall is not affected by each other, different terminals are not affected when configuring the same business command.
  • the adaptation layer senses that the terminal module is faulty, the scripts of all the service modules that have been loaded by the terminal module are all uninstalled, and the script corresponding to the service module is set to the uninstalled state, which does not affect the same service.
  • the script status of the module in other terminals is set to the uninstalled state, which does not affect the same service.
  • a script processing device a router, and a system are provided, which are used to implement the foregoing embodiments and preferred embodiments, and are not described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function. in spite of The apparatus described in the following embodiments is preferably implemented in software, but hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 6 is a structural block diagram 1 of a script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 6, the apparatus includes:
  • the detecting module 62 is configured to detect that the terminal module is started
  • the determining module 64 is connected to the detecting module 62, and configured to determine whether the script of the predetermined service corresponding to the terminal module has been loaded;
  • the loading module 66 is connected to the determining module 64, and is configured to load the script of the predetermined service and set the script status of the predetermined service to the loaded terminal to be loaded if the determination result is negative. status.
  • the loading module 66 is further configured to: after the script state of the predetermined service is set to a loaded state of the terminal module, detecting that the terminal module is faulty; uninstalling the predetermined The script of the service sets the script state of the predetermined service to the uninstalled state corresponding to the script state of the terminal module.
  • FIG. 7 is a structural block diagram 2 of a script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 7, the apparatus includes:
  • the first detecting module 72 is configured to detect that the terminal module is started
  • the determining module 74 is connected to the first detecting module 72, and is configured to determine whether there is a script for a predetermined service corresponding to the terminal module;
  • the loading module 76 is connected to the determining module 74, and is configured to load a script of the predetermined service corresponding to the terminal module if the determination result is negative, wherein the predetermined service corresponding to the different terminal module is The script state is set to the loaded state.
  • FIG. 8 is a structural block diagram of the determining module 74 in the script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 8, the determining module 74 includes:
  • the determining unit 82 is configured to determine, according to the script state of the predetermined service, whether there is a script of a predetermined service corresponding to the terminal module, where the script state of the predetermined service includes: the loaded state State, unloaded state.
  • FIG. 9 is a block diagram of a preferred structure of a script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 9, the apparatus includes, in addition to all the modules shown in FIG. 7, the following:
  • the second detecting module 92 is configured to detect that the terminal module is faulty
  • the uninstalling module 94 is connected to the second detecting module 92, and is configured to uninstall the loaded script of the predetermined service corresponding to the terminal module, where the predetermined service corresponding to the different terminal module with the script uninstalled
  • the script state is set to the uninstalled state.
  • FIG. 10 is a structural block diagram of a first detecting module 72 in a script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 10, the first detecting module 72 includes:
  • the detecting unit 102 is configured to detect that the terminal module and the predetermined service complete initialization.
  • FIG. 11 is a structural block diagram of a router according to an embodiment of the present disclosure. As shown in FIG. 11, the router includes any of the foregoing embodiments.
  • FIG. 12 is a structural block diagram 1 of a script processing system according to an embodiment of the present disclosure.
  • the system includes: a service module 122 configured to perform a predetermined service.
  • a terminal module 124 configured to configure a command for executing the predetermined service for a service module that has loaded the script of the predetermined service;
  • the script processing device 126 is configured to detect that the terminal module is activated; and determine the terminal Whether the script of the predetermined service corresponding to the module has been loaded; if the result of the determination is negative, the script of the predetermined service is loaded and the script state of the predetermined service corresponding to the terminal module is set to the loaded state.
  • FIG. 13 is a structural block diagram 2 of a script processing system according to an embodiment of the present disclosure.
  • the system includes: a service module 132 configured to perform a predetermined service.
  • a terminal module 134 configured to configure a command for executing a predetermined service for a service module of a script that has loaded a predetermined service;
  • the script processing device 136 is configured to determine that the non-existence and the In the case of a script of a predetermined service corresponding to the terminal module, the scenario of the predetermined service corresponding to the terminal module is loaded, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to plus
  • the script processing device is further configured to: when detecting that the terminal module is faulty; uninstalling a script of the loaded predetermined service corresponding to the terminal module, wherein the script is different from the uninstalled script
  • the script states of the predetermined service corresponding to the terminal module are respectively set to the uninstalled state.
  • the script processing device senses that after the terminal module A is started, the script of the associated activated service module is loaded, and the script flag corresponding to the terminal module A is loaded, and the script processing device senses the terminal module B. After startup, the script of the associated launched business module is loaded, and the script corresponding to the terminal B is marked as loaded.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • Embodiments of the present disclosure also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further configured to store program code for performing the following steps: determining whether the script of the predetermined service corresponding to the terminal module has been loaded includes:
  • the storage medium is further configured to store program code for performing the following steps: after setting the script of the predetermined service to the loaded state of the terminal module to the loaded state, the method further includes:
  • the storage medium is further arranged to store program code for performing the following steps:
  • Detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
  • Embodiments of the present disclosure also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the storage medium is further configured to store program code for performing the following steps: determining whether there is a script for the predetermined service corresponding to the terminal module comprises:
  • the storage medium is further configured to store program code for performing the following steps: after setting the script state of the predetermined service corresponding to the different terminal modules to the loaded state respectively, the method further includes:
  • the storage medium is further configured to store program code for performing the following steps: detecting that the terminal module startup comprises:
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor is executed according to the stored program code in the storage medium: detecting that the terminal module is started; determining whether the script of the predetermined service corresponding to the terminal module has been loaded; In the case, the script of the predetermined service is loaded and the script state of the predetermined service corresponding to the terminal module is set to the loaded state.
  • the processor performs, according to the stored program code in the storage medium, determining whether the script of the predetermined service corresponding to the terminal module has been loaded, according to: a script state according to the predetermined service, Determining whether the script of the predetermined service corresponding to the terminal module has been loaded, wherein the script state of the predetermined service includes: a loaded state, an uninstalled state.
  • the processor is configured to: according to the stored program code in the storage medium, after the script of the predetermined service is set to the loaded state of the terminal module, the method further includes: Detecting that the terminal module is faulty; uninstalling the script of the predetermined service and setting a script state of the predetermined service corresponding to the terminal module to an uninstalled state.
  • the processor performs, according to the stored program code in the storage medium: detecting that the terminal module is started comprises: detecting that the terminal module and the predetermined service complete initialization.
  • the processor performs, according to the stored program code in the storage medium, detecting that the terminal module is started; determining whether there is a script for the predetermined service corresponding to the terminal module; and if the determination result is negative, And loading a script of the predetermined service corresponding to the terminal module, where a script state of the predetermined service corresponding to different terminal modules is respectively set to a loaded state.
  • the processor is executed according to the stored program code in the storage medium: determining whether there is a script for the predetermined service corresponding to the terminal module comprises: determining whether the terminal module exists according to the script state of the predetermined service.
  • the processor executes, according to the stored program code in the storage medium, after the script states of the predetermined service corresponding to the different terminal modules are respectively set to the loaded state, the method further includes: detecting the terminal The module is faulty; the script of the predetermined service that is loaded corresponding to the terminal module is uninstalled, and the script state of the predetermined service corresponding to the different terminal module from which the script is uninstalled is set to the uninstalled state, respectively.
  • the processor performs, according to the stored program code in the storage medium: detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
  • modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
  • a script processing method, apparatus, system, and path provided by an embodiment of the present disclosure
  • the utility model has the following beneficial effects: after the script of the predetermined service is loaded, the script states of the predetermined service corresponding to different terminal modules are respectively set, that is, each terminal module has its own script state corresponding to the predetermined service, so that The flags of the scripts of different terminals to the predetermined modules are no longer globally unique. Therefore, the problem of mutual interference when the scripts of the same service modules are loaded into different terminals in the related art can be solved.

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 Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present disclosure provide a script processing method, apparatus and system, and a router. The method comprises: detecting that a terminal module is started; determining whether a script of a preset service corresponding to the terminal module is loaded; and if the determining result is not, loading the script of the preset service, and setting the script state of the preset service corresponding to the terminal module to a loaded state. By means of the embodiments of the present disclose, the problem in the related art of mutual interference generated when a script of a same service module is loaded to different terminals is resolved.

Description

脚本处理方法、装置、系统及路由器Script processing method, device, system and router 技术领域Technical field
本公开涉及通信领域,具体而言,涉及一种脚本处理方法、装置、系统及路由器。The present disclosure relates to the field of communications, and in particular, to a script processing method, apparatus, system, and router.
背景技术Background technique
相关技术中,路由器或交换机等通讯设备,在网络中运行时,需要在不同的终端上配置命令,比如在命令行、简单网络管理协议(Simple Network Management Protocol,简称为SNMP)、网路配置(Network Configuration,简称为NETCONF)协议等终端配置命令。上述设备支持在这些不同种类的终端上配置命令时,涉及到与配置命令相关的业务模块的脚本加载和卸载的功能。In the related art, a communication device such as a router or a switch needs to be configured on different terminals when running in a network, such as a command line, a Simple Network Management Protocol (SNMP), and a network configuration ( Terminal configuration commands such as Network Configuration (referred to as NETCONF) protocol. The above device supports the function of script loading and unloading of service modules related to configuration commands when configuring commands on these different kinds of terminals.
目前,如图1所示,由于系统当前对相同模块的脚本加载和卸载状态的标志是全局唯一的,因此,不同终端的相同模块的脚本加载和卸载的状态,进而会影响命令配置。例如,终端模块A需要注册两个或多个业务模块的脚本,如果终端模块A启动起来,业务模块1对应于终端模块A的脚本加载成功了,并标识业务模块1的唯一脚本状态标识为已加载状态,接着终端模块B也启动起来后,此时,由于业务模块1的唯一脚本状态已经被标识为已加载状态,因此,设备会认为业务模块1对应于终端模块B的脚本已经加载成功了,但是,实际上业务模块1对应于终端模块B的脚本并没有被加载,此时会导致业务模块1的命令在终端模块B上无法配置。At present, as shown in FIG. 1 , since the current flag loading and unloading status of the same module is globally unique, the state of script loading and unloading of the same module of different terminals may affect the command configuration. For example, the terminal module A needs to register a script of two or more service modules. If the terminal module A is started, the script of the service module 1 corresponding to the terminal module A is successfully loaded, and the unique script status identifier of the service module 1 is identified as After the loading state, and then the terminal module B is also started, at this time, since the unique script state of the service module 1 has been identified as the loaded state, the device considers that the script corresponding to the terminal module B of the service module 1 has been successfully loaded. However, the script of the service module 1 corresponding to the terminal module B is not loaded, and the command of the service module 1 cannot be configured on the terminal module B.
因此,相关技术中存在对不同终端加载相同业务模块的脚本时,互相干扰的问题。Therefore, in the related art, there is a problem of mutual interference when a script of the same service module is loaded to different terminals.
公开内容Public content
本公开实施例提供了一种脚本处理方法、装置、系统及路由器,以至少解决相关技术中对不同终端加载相同业务模块的脚本时,互相干扰的问 题。The embodiments of the present disclosure provide a script processing method, apparatus, system, and router, to at least solve the problem of mutual interference when loading scripts of the same service module in different terminals in the related art. question.
根据本公开的一个实施例,提供了一种脚本处理方法,包括:检测到终端模块启动;判断所述终端模块对应的预定业务的脚本是否已经加载;在判断结果为否的情况下,加载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态。According to an embodiment of the present disclosure, a script processing method is provided, including: detecting that a terminal module is started; determining whether a script of a predetermined service corresponding to the terminal module has been loaded; and if the determination result is negative, loading the location The script of the predetermined service is set and the script state of the predetermined service is set to the loaded state corresponding to the script state of the terminal module.
可选地,判断所述终端模块对应的所述预定业务的脚本是否已经加载包括:根据所述预定业务的脚本状态,判断所述终端模块对应的所述预定业务的脚本是否已经加载,其中,所述预定业务的脚本状态包括:已加载状态,已卸载状态。Optionally, determining whether the script of the predetermined service corresponding to the terminal module has been loaded includes: determining, according to a script state of the predetermined service, whether a script of the predetermined service corresponding to the terminal module has been loaded, where The script state of the predetermined service includes: a loaded state, an uninstalled state.
可选地,在将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态之后,还包括:检测到所述终端模块出现故障;卸载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已卸载状态。Optionally, after the script of the predetermined service is set to the loaded state of the terminal module, the method further includes: detecting that the terminal module is faulty; uninstalling the script of the predetermined service and The script of the predetermined service corresponds to the script state of the terminal module being set to the uninstalled state.
可选地,检测到终端模块启动包括:检测到所述终端模块和所述预定业务完成初始化。Optionally, detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
根据本公开的另一个实施例,提供了一种脚本处理方法,包括:检测到终端模块启动;判断是否存在与所述终端模块对应的预定业务的脚本;在判断结果为否的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。According to another embodiment of the present disclosure, a script processing method is provided, including: detecting that a terminal module is started; determining whether there is a script for a predetermined service corresponding to the terminal module; and if the determination result is negative, loading a script of the predetermined service corresponding to the terminal module, wherein script states of the predetermined service corresponding to different terminal modules are respectively set to a loaded state.
可选地,判断是否存在与所述终端模块对应的所述预定业务的脚本包括:根据所述预定业务的脚本状态,判断是否存在与所述终端模块对应的所述预定业务的脚本,其中,所述预定业务的脚本状态包括:已加载状态,已卸载状态。Optionally, determining whether the script of the predetermined service corresponding to the terminal module exists includes: determining, according to a script state of the predetermined service, whether there is a script of the predetermined service corresponding to the terminal module, where The script state of the predetermined service includes: a loaded state, an uninstalled state.
可选地,在将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态之后,还包括:检测到所述终端模块出现故障;卸载与所述终端模块对应的已加载的所述预定业务的脚本,其中,将与卸载了脚本 的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。Optionally, after the script states of the predetermined service corresponding to the different terminal modules are respectively set to the loaded state, the method further includes: detecting that the terminal module is faulty; and uninstalling the loaded terminal corresponding to the terminal module. The predetermined business script, where the script will be uninstalled The script states of the predetermined services corresponding to different terminal modules are respectively set to the uninstalled state.
可选地,检测到终端模块启动包括:检测到所述终端模块和所述预定模块完成初始化。Optionally, detecting that the terminal module starts includes: detecting that the terminal module and the predetermined module complete initialization.
根据本公开的又一个实施例,提供了一种脚本处理装置,包括:检测模块,设置为检测到终端模块启动;判断模块,设置为判断所述终端模块对应的预定业务的脚本是否已经加载;加载模块,设置为在判断结果为否的情况下,加载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态。According to still another embodiment of the present disclosure, a script processing apparatus is provided, including: a detecting module configured to detect that the terminal module is activated; and a determining module configured to determine whether a script of a predetermined service corresponding to the terminal module has been loaded; Loading a module, configured to load a script of the predetermined service and set a script state of the predetermined service to a loaded state corresponding to a script state of the terminal module if the determination result is negative.
可选地,所述加载模块,还设置为在将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态之后,检测到所述终端模块出现故障;卸载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已卸载状态。Optionally, the loading module is further configured to: after the script state of the predetermined service is set to a loaded state of the terminal module, detecting that the terminal module is faulty; uninstalling the predetermined service The script sets the script of the predetermined service to the uninstalled state corresponding to the script state of the terminal module.
根据本公开的又一个实施例,提供了一种脚本处理装置,包括:第一检测模块,设置为检测到终端模块启动;判断模块,设置为判断是否存在与所述终端模块对应的预定业务的脚本;加载模块,设置为在判断结果为否的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。According to still another embodiment of the present disclosure, a script processing apparatus is provided, including: a first detecting module configured to detect activation of a terminal module; and a determining module configured to determine whether there is a predetermined service corresponding to the terminal module a script that is configured to load a script of the predetermined service corresponding to the terminal module, where the result of the determination is no, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to The status has been loaded.
可选地,所述判断模块包括:判断单元,设置为根据所述预定业务的脚本状态,判断是否存在与所述终端模块对应的所述预定业务的脚本,其中,所述预定业务的脚本状态包括:已加载状态,已卸载状态。Optionally, the determining module includes: a determining unit, configured to determine, according to a script state of the predetermined service, whether there is a script of the predetermined service corresponding to the terminal module, where a script state of the predetermined service Includes: loaded state, unloaded state.
可选地,还包括:第二检测模块,设置为检测到所述终端模块出现故障;卸载模块,卸载模块,设置为卸载与所述终端模块对应的已加载的所述预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。Optionally, the method further includes: a second detecting module, configured to detect that the terminal module is faulty; and an uninstalling module, the uninstalling module, configured to uninstall the loaded script of the predetermined service corresponding to the terminal module, where And setting the script state of the predetermined service corresponding to the different terminal module from which the script is uninstalled to the uninstalled state.
可选地,第一检测模块包括:检测单元,设置为检测到所述终端模块和所述业务模块完成初始化。Optionally, the first detecting module includes: a detecting unit, configured to detect that the terminal module and the service module complete initialization.
根据本公开的又一个实施例,提供了一种路由器,包括上述实施例中 任一项所述的装置。According to still another embodiment of the present disclosure, a router is provided, including the above embodiment The device of any of the preceding claims.
根据本公开的又一个实施例,提供了一种脚本处理系统,包括:业务模块,设置为执行预定业务;终端模块,设置为为已加载所述预定业务的脚本的业务模块配置用于执行所述预定业务的命令;脚本处理装置,设置为在检测到所述终端模块启动;判断所述终端模块对应的预定业务的脚本是否已经加载;在判断结果为否的情况下,加载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态。According to still another embodiment of the present disclosure, a script processing system is provided, including: a service module configured to execute a predetermined service; and a terminal module configured to configure a service module for loading a script of the predetermined service for execution a command for the predetermined service; the script processing device is configured to detect that the terminal module is activated; determine whether the script of the predetermined service corresponding to the terminal module has been loaded; and if the determination result is negative, load the predetermined service The script sets the script of the predetermined service to the loaded state corresponding to the script state of the terminal module.
根据本公开的又一个实施例,提供了一种脚本处理系统,包括:业务模块,设置为执行预定业务;终端模块,设置为为已加载所述预定业务的脚本的业务模块配置用于执行所述预定业务的命令;脚本处理装置,设置为在检测到所述终端模块启动后,在判断不存在与所述终端模块对应的预定业务的脚本的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态;和/或,所述脚本处理装置,还设置为在检测到所述终端模块出现故障;卸载所述终端模块对应的已加载的预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。According to still another embodiment of the present disclosure, a script processing system is provided, including: a service module configured to execute a predetermined service; and a terminal module configured to configure a service module for loading a script of the predetermined service for execution a command for scheduling a service; the script processing device is configured to, after detecting that the terminal module is started, to load a script corresponding to the terminal module, in a case where it is determined that there is no script for a predetermined service corresponding to the terminal module a script for a predetermined service, wherein a script state of the predetermined service corresponding to a different terminal module is respectively set to a loaded state; and/or the script processing device is further configured to detect that the terminal module appears A script for uninstalling the loaded scheduled service corresponding to the terminal module, wherein the script state of the predetermined service corresponding to the different terminal module from which the script is uninstalled is set to the uninstalled state.
根据本公开的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:检测到终端模块启动;判断是否存在与所述终端模块对应的预定业务的脚本;在判断结果为否的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。According to still another embodiment of the present disclosure, a storage medium is also provided. The storage medium is configured to store program code for performing the following steps: detecting that the terminal module is started; determining whether there is a script for a predetermined service corresponding to the terminal module; and if the determination result is negative, loading the terminal with the terminal The script of the predetermined service corresponding to the module, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to the loaded state.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:判断是否存在与所述终端模块对应的所述预定业务的脚本包括:根据所述预定业务的脚本状态,判断是否存在与所述终端模块对应的所述预定业务的脚本,其中,所述预定业务的脚本状态包括:已加载状态,已卸载状态。Optionally, the storage medium is further configured to store program code for performing the following steps: determining whether there is a script of the predetermined service corresponding to the terminal module comprises: determining whether the existence and the presence are based on a script state of the predetermined service a script of the predetermined service corresponding to the terminal module, where the script state of the predetermined service includes: a loaded state, and an uninstalled state.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:在将 与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态之后,还包括:检测到所述终端模块出现故障;卸载与所述终端模块对应的已加载的所述预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。Optionally, the storage medium is further configured to store program code for performing the following steps: After the script state of the predetermined service corresponding to the different terminal modules is respectively set to the loaded state, the method further includes: detecting that the terminal module is faulty; and uninstalling the loaded script of the predetermined service corresponding to the terminal module , wherein the script state of the predetermined service corresponding to the different terminal module from which the script is uninstalled is set to the uninstalled state, respectively.
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:检测到终端模块启动包括:检测到所述终端模块和所述预定业务完成初始化。Optionally, the storage medium is further configured to store program code for performing the step of detecting that the terminal module activation comprises detecting that the terminal module and the predetermined service complete initialization.
根据本公开的又一个实施例,还提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行上述任一项所述的方法。According to still another embodiment of the present disclosure, there is also provided a processor for running a program, wherein the program is executed to perform the method of any of the above.
通过本公开中的实施例,检测到终端模块启动;判断终端模块对应的预定业务的脚本是否已经加载;在判断结果为否的情况下,加载预定业务的脚本并将预定业务的脚本对应于终端模块的脚本状态设置为已加载状态。由于在加载完预定业务的脚本后,仅仅将该预定业务的脚本对应于加载了该预定业务的终端模块的脚本状态设置为已加载状态,即每个终端模块都有自己的对应于该预定业务的脚本状态,使得不同终端对预定模块的脚本状态的标志不再是全局唯一的,因此,可以解决相关技术中对不同终端加载相同业务模块的脚本时,互相干扰的问题。The embodiment of the present disclosure detects that the terminal module is started; determines whether the script of the predetermined service corresponding to the terminal module has been loaded; and if the determination result is negative, loads the script of the predetermined service and corresponds the script of the predetermined service to the terminal. The module's script state is set to the loaded state. After the script of the predetermined service is loaded, only the script state of the predetermined service corresponding to the terminal module loaded with the predetermined service is set to the loaded state, that is, each terminal module has its own corresponding to the predetermined service. The script state is such that the flags of the scripts of the different terminals to the predetermined modules are no longer globally unique. Therefore, the problem of mutual interference when the scripts of the same service modules are loaded into different terminals in the related art can be solved.
附图说明DRAWINGS
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described herein are provided to provide a further understanding of the present disclosure, which is a part of the present disclosure, and the description of the present disclosure and the description thereof are not intended to limit the disclosure. In the drawing:
图1是相关技术中处理同一业务模块对应不同终端的脚本的示意图;1 is a schematic diagram of a script for processing different terminals corresponding to the same service module in the related art;
图2是本公开实施例的一种脚本处理方法的通讯设备的硬件结构框图;2 is a block diagram showing the hardware structure of a communication device of a script processing method according to an embodiment of the present disclosure;
图3是根据本公开实施例的脚本处理方法的流程图一;3 is a flowchart 1 of a script processing method according to an embodiment of the present disclosure;
图4是根据本公开实施例的脚本处理方法的流程图二;4 is a flowchart 2 of a script processing method according to an embodiment of the present disclosure;
图5是根据本公开实施例的处理同一业务模块对应不同终端的脚本的示意图; FIG. 5 is a schematic diagram of a script for processing different terminals corresponding to different service modules according to an embodiment of the present disclosure; FIG.
图6是根据本公开实施例的脚本处理装置的结构框图一;6 is a structural block diagram 1 of a script processing apparatus according to an embodiment of the present disclosure;
图7是根据本公开实施例的脚本处理装置的结构框图二;7 is a structural block diagram 2 of a script processing apparatus according to an embodiment of the present disclosure;
图8是根据本公开实施例的脚本处理装置中判断模块74的结构框图;FIG. 8 is a structural block diagram of a determining module 74 in a script processing apparatus according to an embodiment of the present disclosure;
图9是根据本公开实施例的脚本处理装置的优选结构框图;9 is a block diagram showing a preferred structure of a script processing apparatus according to an embodiment of the present disclosure;
图10是根据本公开实施例的脚本处理装置中第一检测模块72的结构框图;FIG. 10 is a structural block diagram of a first detecting module 72 in a script processing apparatus according to an embodiment of the present disclosure;
图11是根据本公开实施例的路由器的结构框图;11 is a structural block diagram of a router according to an embodiment of the present disclosure;
图12是根据本公开实施例的脚本处理系统的结构框图一;12 is a structural block diagram 1 of a script processing system according to an embodiment of the present disclosure;
图13是根据本公开实施例的脚本处理系统的结构框图二。FIG. 13 is a structural block diagram 2 of a script processing system according to an embodiment of the present disclosure.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The present disclosure will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second", and the like in the specification and claims of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
实施例1Example 1
本申请实施例一所提供的方法实施例可以在通讯设备、计算机终端或者类似的运算装置中执行。以运行在通讯设备上为例,图2是本公开实施例的一种脚本处理方法的通讯设备的硬件结构框图。如图2所示,通讯设备20可以包括一个或多个(图2中仅示出一个)处理器202(处理器202可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器204、以及用于通信功能的传输装置206。本领域普通技术人员可以理解,图2所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,通讯设备20还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。 The method embodiment provided in Embodiment 1 of the present application can be executed in a communication device, a computer terminal or the like. Taking a communication device as an example, FIG. 2 is a hardware structural block diagram of a communication device of a script processing method according to an embodiment of the present disclosure. As shown in FIG. 2, communication device 20 may include one or more (only one of which is shown in FIG. 2) processor 202 (processor 202 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. ) a memory 204 for storing data, and a transmission device 206 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG. 2 is merely illustrative and does not limit the structure of the above electronic device. For example, communication device 20 may also include more or fewer components than shown in FIG. 2, or have a different configuration than that shown in FIG. 2.
存储器204可设置为存储应用软件的软件程序以及模块,如本公开实施例中的脚本处理方法对应的程序指令/模块,处理器202通过运行存储在存储器204内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器204可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器204可进一步包括相对于处理器202远程设置的存储器,这些远程存储器可以通过网络连接至通讯设备20。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 204 may be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the script processing method in the embodiment of the present disclosure, and the processor 202 executes each by executing a software program and a module stored in the memory 204. A functional application and data processing, that is, the above method is implemented. Memory 204 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 204 can further include memory remotely located relative to processor 202, which can be connected to communication device 20 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置206设置为经由一个网络接收或者发送数据。上述的网络具体实例可包括通讯设备20的通信供应商提供的无线网络。在一个实例中,传输装置206包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置206可以为射频(Radio Frequency,RF)模块,其设置为通过无线方式与互联网进行通讯。Transmission device 206 is arranged to receive or transmit data via a network. The network specific examples described above may include a wireless network provided by a communication provider of the communication device 20. In one example, transmission device 206 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 206 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
在本实施例中提供了一种运行于上述通讯设备的脚本处理方法,图3是根据本公开实施例的脚本处理方法的流程图一,如图3所示,该流程包括如下步骤:In this embodiment, a script processing method running on the communication device is provided. FIG. 3 is a flowchart 1 of a script processing method according to an embodiment of the present disclosure. As shown in FIG. 3, the process includes the following steps:
步骤S302,检测到终端模块启动;Step S302, detecting that the terminal module is started;
步骤S304,判断终端模块对应的预定业务的脚本是否已经加载;Step S304, determining whether the script of the predetermined service corresponding to the terminal module has been loaded;
步骤S306,在判断结果为否的情况下,加载预定业务的脚本并将预定业务的脚本对应于终端模块的脚本状态设置为已加载状态。Step S306, if the determination result is no, the script of the predetermined service is loaded and the script state of the predetermined service is set to the loaded state corresponding to the script state of the terminal module.
由于在加载完预定业务的脚本后,仅仅将该预定业务的脚本对应于加载了该预定业务的终端模块的脚本状态设置为已加载状态,即每个终端模块都有自己的对应于该预定业务的脚本状态,使得不同终端对预定模块的脚本状态的标志不再是全局唯一的,因此,可以解决相关技术中对不同终端加载相同业务模块的脚本时,互相干扰的问题。 After the script of the predetermined service is loaded, only the script state of the predetermined service corresponding to the terminal module loaded with the predetermined service is set to the loaded state, that is, each terminal module has its own corresponding to the predetermined service. The script state is such that the flags of the scripts of the different terminals to the predetermined modules are no longer globally unique. Therefore, the problem of mutual interference when the scripts of the same service modules are loaded into different terminals in the related art can be solved.
可选地,判断终端模块对应的预定业务的脚本是否已经加载包括:根据预定业务的脚本状态,判断终端模块对应的预定业务的脚本是否已经加载,其中,预定业务的脚本状态包括:已加载状态,已卸载状态。Optionally, determining whether the script of the predetermined service corresponding to the terminal module has been loaded includes: determining, according to the script state of the predetermined service, whether the script of the predetermined service corresponding to the terminal module has been loaded, wherein the script state of the predetermined service includes: the loaded state , the status has been uninstalled.
可选地,在将预定业务的脚本对应于终端模块的脚本状态设置为已加载状态之后,还包括:检测到终端模块出现故障;卸载预定业务的脚本并将预定业务的脚本对应于终端模块的脚本状态设置为已卸载状态。Optionally, after the script of the predetermined service is set to the loaded state of the terminal module, the method further includes: detecting that the terminal module is faulty; uninstalling the script of the predetermined service and corresponding to the terminal module The script status is set to the uninstalled state.
可选地,检测到终端模块启动包括:检测到终端模块和预定业务完成初始化。Optionally, detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
在本实施例中提供了一种运行于上述通讯设备的脚本处理方法,图4是根据本公开实施例的脚本处理方法的流程图二,如图4所示,该流程包括如下步骤:In this embodiment, a script processing method running on the communication device is provided. FIG. 4 is a second flowchart of a script processing method according to an embodiment of the present disclosure. As shown in FIG. 4, the flow includes the following steps:
步骤S402,检测到终端模块启动;Step S402, detecting that the terminal module is started;
步骤S404,判断是否存在与终端模块对应的预定业务的脚本;Step S404, determining whether there is a script for a predetermined service corresponding to the terminal module;
步骤S406,在判断结果为否的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。In step S406, if the determination result is negative, the script of the predetermined service corresponding to the terminal module is loaded, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to the loaded state.
通过上述步骤,在加载完预定业务的脚本后,对不同终端模块对应的该预定业务的脚本状态分别设置,即每个终端模块都有自己的对应于该预定业务的脚本状态,使得不同终端对预定模块的脚本状态的标志不再是全局唯一的,因此,可以解决相关技术中对不同终端加载相同业务模块的脚本时,互相干扰的问题。After the script of the predetermined service is loaded, the script states of the predetermined service corresponding to different terminal modules are respectively set, that is, each terminal module has its own script state corresponding to the predetermined service, so that different terminal pairs are The flag of the script state of the predetermined module is no longer globally unique. Therefore, the problem of mutual interference when the scripts of the same service module are loaded into different terminals in the related art can be solved.
例如,检测到终端模块启动后,加载该终端模块所关联的并且已初始化完成的业务模块的脚本,并将业务模块对应于该终端模块的脚本状态设置为已加载状态,如果不同的终端模块需要加载同一业务模块的对应的脚本时,分别加载不同的终端模块对应于该同一业务模块所对应的脚本,并分别将该同一业务模块对应于不同终端的脚本状态设置为已加载状态。For example, after detecting that the terminal module is started, loading a script of the service module associated with the terminal module and having completed initialization, and setting a script state of the service module corresponding to the terminal module to a loaded state, if different terminal modules are required When loading the corresponding scripts of the same service module, respectively load different terminal modules corresponding to the scripts corresponding to the same service module, and respectively set the script states of the same service module corresponding to different terminals to the loaded state.
可选地,判断是否存在与终端模块对应的预定业务的脚本包括:根据 预定业务的脚本状态,判断是否存在与终端模块对应的预定业务的脚本,其中,预定业务的脚本状态包括:已加载状态,已卸载状态。通过上述步骤,可以更直接、更快速的确定与终端模块对应的预定业务的脚本是否存在。Optionally, the script for determining whether there is a predetermined service corresponding to the terminal module includes: Determining whether there is a script of a predetermined service corresponding to the terminal module, where the script state of the predetermined service includes: a loaded state, an uninstalled state. Through the above steps, it is possible to determine whether the script of the predetermined service corresponding to the terminal module exists more directly and more quickly.
可选地,在将与不同终端模块对应的预定业务的脚本状态分别设置为已加载状态之后,还包括:检测到终端模块出现故障;卸载与所述终端模块对应的已加载的所述预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。例如,在运行过程中,检测到某个终端模块出现故障后,将对应该终端的已加载的所有业务模块的脚本卸载掉,并将这些业务模块对应于该终端的脚本状态设置为已卸载状态。Optionally, after the script states of the predetermined service corresponding to the different terminal modules are respectively set to the loaded state, the method further includes: detecting that the terminal module is faulty; and uninstalling the loaded predetermined service corresponding to the terminal module a script in which a script state of the predetermined service corresponding to a different terminal module from which the script is uninstalled is set to an uninstalled state, respectively. For example, in the running process, after detecting that a terminal module is faulty, the scripts of all the loaded service modules of the terminal are uninstalled, and the script states corresponding to the service modules of the service modules are set to the uninstalled state. .
通过上述步骤,在卸载完预定业务的脚本后,对不同终端模块对应该预定业务的脚本状态分别设置,即分别设置每个终端模块自己的对应于该预定业务的脚本的卸载状态,因此,可以解决相关技术中对不同终端卸载相同业务模块的脚本时,互相干扰的问题。例如,可以解决相关技术中如下场景出现的问题:终端模块A加载了两个或多个业务模块的脚本,如果终端模块A出现故障后,卸载了业务模块I对应于终端模块A的脚本并标识业务模块I在系统中唯一的脚本状态标识为已卸载状态,接着终端模块B也出现故障,由于业务模块I在系统中唯一脚本状态已被标志为卸载状态,因此,则会认为业务模块I对应于终端模块B的脚本也已经卸载成功了,但是,实际上终端模块B的脚本并没有被卸载,因此,由于存储了不必要的脚本(终端模块B的脚本),导致存储空间浪费。After the above-mentioned steps are executed, after the script of the predetermined service is uninstalled, the script states of the different terminal modules corresponding to the predetermined service are respectively set, that is, the uninstall status of each terminal module corresponding to the predetermined service is set separately, and thus, It solves the problem of mutual interference when the scripts of the same service module are uninstalled by different terminals in the related art. For example, the problem occurs in the following scenarios in the related art: the terminal module A loads the scripts of two or more service modules, and if the terminal module A fails, uninstalls the script of the service module I corresponding to the terminal module A and identifies The unique script state of the service module I in the system is identified as the uninstalled state, and then the terminal module B also fails. Since the unique script state of the service module I in the system has been marked as the uninstalled state, the service module I is considered to correspond. The script for the terminal module B has also been successfully uninstalled, but the script of the terminal module B is not actually uninstalled, and therefore, the storage space is wasted due to unnecessary scripts (the script of the terminal module B) being stored.
可选地,检测到终端模块启动包括:检测到终端模块和预定业务完成初始化。Optionally, detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
需要说明的是,上述实施例可以应用于适配层模块、路由器、交换机等通讯设备上,下面以适配层模块执行上述实施例为例对本公开进行详细说明。图5是根据本公开实施例的处理同一业务模块对应不同终端的脚本 的示意图,通过适配层模块为各个终端加载和/或卸载业务模块所对应的脚本,再将该业务模块对应与不同终端(同上述终端模块)的脚本状态置位。处理过程如下:It should be noted that the foregoing embodiment may be applied to a communication device such as an adaptation layer module, a router, a switch, etc., and the following description is performed by using an adaptation layer module as an example to describe the present disclosure. FIG. 5 is a script for processing different terminals corresponding to different service modules according to an embodiment of the present disclosure. The schematic diagram is to load and/or uninstall the script corresponding to the service module for each terminal through the adaptation layer module, and then set the script state of the service module corresponding to the different terminal (the same terminal module). The process is as follows:
终端启动后,终端模块、适配层模块、业务模块进行初始化,当适配层模块感知到终端模块初始化完成,并且感知到终端模块所要加载的相关业务模块初始化完成后,就会为终端模块加载该业务模块的脚本,在加载脚本完成后,将业务模块对应于该终端的脚本状态置位(设置为已加载状态),已加载过脚本的业务模块,可以在对应的终端配置命令。适配层通知不同的终端去加载相同业务模块对应于该终端的脚本后,将该业务模块对应于不同终端的脚本状态分别置位,这样可以保证同一业务模块对应不同终端的加载脚本的加载和/或卸载不受彼此影响,不同的终端配置同一业务的命令时也不受影响。After the terminal is started, the terminal module, the adaptation layer module, and the service module are initialized. When the adaptation layer module senses that the terminal module is initialized and senses that the relevant service module to be loaded by the terminal module is initialized, the terminal module is loaded. After the loading script is completed, the script of the service module sets the state of the script corresponding to the terminal of the service module (set to the loaded state), and the service module that has been loaded with the script can configure the command in the corresponding terminal. After the adaptation layer notifies the different terminals to load the script corresponding to the terminal of the same service module, the script state of the service module corresponding to the different terminal is set separately, so that the loading of the loading script of the same service module corresponding to different terminals can be ensured. / or uninstall is not affected by each other, different terminals are not affected when configuring the same business command.
当适配层感知到终端模块出现故障时,将该终端模块已加载的所有业务模块的脚本全部卸载掉,并将该业务模块对应于该终端的脚本置为已卸载状态,不会影响同一业务模块在其他终端对应的脚本状态。When the adaptation layer senses that the terminal module is faulty, the scripts of all the service modules that have been loaded by the terminal module are all uninstalled, and the script corresponding to the service module is set to the uninstalled state, which does not affect the same service. The script status of the module in other terminals.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, portions of the technical solutions of the present disclosure that contribute substantially or to the prior art may be embodied in the form of a software product stored in a storage medium (eg, ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present disclosure.
实施例2Example 2
在本实施例中还提供了一种脚本处理装置、路由器及系统,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管 以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a script processing device, a router, and a system are provided, which are used to implement the foregoing embodiments and preferred embodiments, and are not described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. in spite of The apparatus described in the following embodiments is preferably implemented in software, but hardware, or a combination of software and hardware, is also possible and contemplated.
图6是根据本公开实施例的脚本处理装置的结构框图一,如图6所示,该装置包括:FIG. 6 is a structural block diagram 1 of a script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 6, the apparatus includes:
检测模块62,设置为检测到终端模块启动;The detecting module 62 is configured to detect that the terminal module is started;
判断模块64,连接至上述检测模块62,设置为判断所述终端模块对应的预定业务的脚本是否已经加载;The determining module 64 is connected to the detecting module 62, and configured to determine whether the script of the predetermined service corresponding to the terminal module has been loaded;
加载模块66,连接至上述判断模块64,设置为在判断结果为否的情况下,加载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态。The loading module 66 is connected to the determining module 64, and is configured to load the script of the predetermined service and set the script status of the predetermined service to the loaded terminal to be loaded if the determination result is negative. status.
可选地,所述加载模块66,还设置为在将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态之后,检测到所述终端模块出现故障;卸载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已卸载状态。Optionally, the loading module 66 is further configured to: after the script state of the predetermined service is set to a loaded state of the terminal module, detecting that the terminal module is faulty; uninstalling the predetermined The script of the service sets the script state of the predetermined service to the uninstalled state corresponding to the script state of the terminal module.
图7是根据本公开实施例的脚本处理装置的结构框图二,如图7所示,该装置包括:FIG. 7 is a structural block diagram 2 of a script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 7, the apparatus includes:
第一检测模块72,设置为检测到终端模块启动;The first detecting module 72 is configured to detect that the terminal module is started;
判断模块74,连接至上述第一检测模块72,设置为判断是否存在与终端模块对应的预定业务的脚本;The determining module 74 is connected to the first detecting module 72, and is configured to determine whether there is a script for a predetermined service corresponding to the terminal module;
加载模块76,连接至上述判断模块74,设置为在判断结果为否的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。The loading module 76 is connected to the determining module 74, and is configured to load a script of the predetermined service corresponding to the terminal module if the determination result is negative, wherein the predetermined service corresponding to the different terminal module is The script state is set to the loaded state.
图8是根据本公开实施例的脚本处理装置中判断模块74的结构框图,如图8所示,判断模块74包括:FIG. 8 is a structural block diagram of the determining module 74 in the script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 8, the determining module 74 includes:
判断单元82,设置为根据预定业务的脚本状态,判断是否存在与终端模块对应的预定业务的脚本,其中,预定业务的脚本状态包括:已加载状 态,已卸载状态。The determining unit 82 is configured to determine, according to the script state of the predetermined service, whether there is a script of a predetermined service corresponding to the terminal module, where the script state of the predetermined service includes: the loaded state State, unloaded state.
图9是根据本公开实施例的脚本处理装置的优选结构框图,如图9所示,该装置除包括图7所示的所有模块外,还包括:9 is a block diagram of a preferred structure of a script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 9, the apparatus includes, in addition to all the modules shown in FIG. 7, the following:
第二检测模块92,设置为检测到终端模块出现故障;The second detecting module 92 is configured to detect that the terminal module is faulty;
卸载模块94,连接至上述第二检测模块92,设置为卸载与所述终端模块对应的已加载的所述预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。The uninstalling module 94 is connected to the second detecting module 92, and is configured to uninstall the loaded script of the predetermined service corresponding to the terminal module, where the predetermined service corresponding to the different terminal module with the script uninstalled The script state is set to the uninstalled state.
图10是根据本公开实施例的脚本处理装置中第一检测模块72的结构框图,如图10所示,第一检测模块72包括:FIG. 10 is a structural block diagram of a first detecting module 72 in a script processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 10, the first detecting module 72 includes:
检测单元102,设置为检测到终端模块和预定业务完成初始化。The detecting unit 102 is configured to detect that the terminal module and the predetermined service complete initialization.
在本实施例中还提供了一种路由器,图11是根据本公开实施例的路由器的结构框图,如图11所示,该路由器包含上述实施例中的任一装置。A router is also provided in this embodiment. FIG. 11 is a structural block diagram of a router according to an embodiment of the present disclosure. As shown in FIG. 11, the router includes any of the foregoing embodiments.
在本实施例中还提供了一种脚本处理系统,图12是根据本公开实施例的脚本处理系统的结构框图一,如图12所示,该系统包括:业务模块122,设置为执行预定业务;终端模块124,设置为为已加载所述预定业务的脚本的业务模块配置用于执行所述预定业务的命令;脚本处理装置126,设置为在检测到所述终端模块启动;判断所述终端模块对应的预定业务的脚本是否已经加载;在判断结果为否的情况下,加载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态。In the embodiment, a script processing system is further provided. FIG. 12 is a structural block diagram 1 of a script processing system according to an embodiment of the present disclosure. As shown in FIG. 12, the system includes: a service module 122 configured to perform a predetermined service. a terminal module 124 configured to configure a command for executing the predetermined service for a service module that has loaded the script of the predetermined service; the script processing device 126 is configured to detect that the terminal module is activated; and determine the terminal Whether the script of the predetermined service corresponding to the module has been loaded; if the result of the determination is negative, the script of the predetermined service is loaded and the script state of the predetermined service corresponding to the terminal module is set to the loaded state.
在本实施例中还提供了一种脚本处理系统,图13是根据本公开实施例的脚本处理系统的结构框图二,如图13所示,该系统包括:业务模块132,设置为执行预定业务;终端模块134,设置为为已加载预定业务的脚本的业务模块配置用于执行预定业务的命令;脚本处理装置136,设置为在检测到所述终端模块启动后,在判断不存在与所述终端模块对应的预定业务的脚本的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加 载状态;和/或,所述脚本处理装置,还设置为在检测到所述终端模块出现故障;卸载所述终端模块对应的已加载的预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。A script processing system is also provided in this embodiment. FIG. 13 is a structural block diagram 2 of a script processing system according to an embodiment of the present disclosure. As shown in FIG. 13, the system includes: a service module 132 configured to perform a predetermined service. a terminal module 134 configured to configure a command for executing a predetermined service for a service module of a script that has loaded a predetermined service; the script processing device 136 is configured to determine that the non-existence and the In the case of a script of a predetermined service corresponding to the terminal module, the scenario of the predetermined service corresponding to the terminal module is loaded, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to plus And the script processing device is further configured to: when detecting that the terminal module is faulty; uninstalling a script of the loaded predetermined service corresponding to the terminal module, wherein the script is different from the uninstalled script The script states of the predetermined service corresponding to the terminal module are respectively set to the uninstalled state.
例如,脚本处理装置感知到终端模块A启动后,加载相关联的已启动的业务模块的脚本,并将该模块对应于终端模块A的脚本标志为已加载状态;脚本处理装置感知到终端模块B启动后,加载相关联的已启动的业务模块的脚本,并将该模块对应于终端B的脚本标志为已加载状态。For example, the script processing device senses that after the terminal module A is started, the script of the associated activated service module is loaded, and the script flag corresponding to the terminal module A is loaded, and the script processing device senses the terminal module B. After startup, the script of the associated launched business module is loaded, and the script corresponding to the terminal B is marked as loaded.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
实施例3Example 3
本公开的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present disclosure also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,检测到终端模块启动;S1, detecting that the terminal module is started;
S2,判断终端模块对应的预定业务的脚本是否已经加载;S2: determining whether a script of a predetermined service corresponding to the terminal module has been loaded;
S3,在判断结果为否的情况下,加载预定业务的脚本并将预定业务的脚本对应于终端模块的脚本状态设置为已加载状态。S3. If the determination result is no, the script of the predetermined service is loaded, and the script state of the predetermined service is set to the loaded state corresponding to the script state of the terminal module.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:判断终端模块对应的预定业务的脚本是否已经加载包括:Optionally, the storage medium is further configured to store program code for performing the following steps: determining whether the script of the predetermined service corresponding to the terminal module has been loaded includes:
S1,根据预定业务的脚本状态,判断终端模块对应的预定业务的脚本是否已经加载,其中,预定业务的脚本状态包括:已加载状态,已卸载状态。S1. Determine, according to the script state of the predetermined service, whether the script of the predetermined service corresponding to the terminal module has been loaded, where the script state of the predetermined service includes: a loaded state, and an uninstalled state.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在将预定业务的脚本对应于终端模块的脚本状态设置为已加载状态之后,还包括: Optionally, the storage medium is further configured to store program code for performing the following steps: after setting the script of the predetermined service to the loaded state of the terminal module to the loaded state, the method further includes:
S1,检测到终端模块出现故障;S1, detecting that the terminal module is faulty;
S2,卸载预定业务的脚本并将预定业务的脚本对应于终端模块的脚本状态设置为已卸载状态。S2, uninstalling the script of the predetermined service and setting the script of the predetermined service to the uninstalled state corresponding to the script state of the terminal module.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
S1,检测到终端模块启动包括:检测到终端模块和预定业务完成初始化。S1. Detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
本公开的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present disclosure also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,检测到终端模块启动;S1, detecting that the terminal module is started;
S2,判断是否存在与终端模块对应的预定业务的脚本;S2, determining whether there is a script for a predetermined service corresponding to the terminal module;
S3,在判断结果为否的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。S3. If the determination result is negative, the scenario of the predetermined service corresponding to the terminal module is loaded, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to the loaded state.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:判断是否存在与终端模块对应的预定业务的脚本包括:Optionally, the storage medium is further configured to store program code for performing the following steps: determining whether there is a script for the predetermined service corresponding to the terminal module comprises:
S1,根据预定业务的脚本状态,判断是否存在与终端模块对应的预定业务的脚本,其中,预定业务的脚本状态包括:已加载状态,已卸载状态。S1. Determine, according to the script state of the predetermined service, whether there is a script of a predetermined service corresponding to the terminal module, where the script state of the predetermined service includes: a loaded state, and an uninstalled state.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在将与不同终端模块对应的预定业务的脚本状态分别设置为已加载状态之后,还包括:Optionally, the storage medium is further configured to store program code for performing the following steps: after setting the script state of the predetermined service corresponding to the different terminal modules to the loaded state respectively, the method further includes:
S1,检测到终端模块出现故障;S1, detecting that the terminal module is faulty;
S2,卸载与所述终端模块对应的已加载的所述预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。S2. Unload the script of the predetermined service that is loaded corresponding to the terminal module, where the script state of the predetermined service corresponding to the different terminal module with the script uninstalled is set to the uninstalled state.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:检测到终端模块启动包括: Optionally, the storage medium is further configured to store program code for performing the following steps: detecting that the terminal module startup comprises:
S1,检测到终端模块和预定业务完成初始化。S1, detecting that the terminal module and the predetermined service are completed.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:检测到终端模块启动;判断所述终端模块对应的预定业务的脚本是否已经加载;在判断结果为否的情况下,加载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态。Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: detecting that the terminal module is started; determining whether the script of the predetermined service corresponding to the terminal module has been loaded; In the case, the script of the predetermined service is loaded and the script state of the predetermined service corresponding to the terminal module is set to the loaded state.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:判断所述终端模块对应的所述预定业务的脚本是否已经加载包括:根据所述预定业务的脚本状态,判断所述终端模块对应的所述预定业务的脚本是否已经加载,其中,所述预定业务的脚本状态包括:已加载状态,已卸载状态。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, determining whether the script of the predetermined service corresponding to the terminal module has been loaded, according to: a script state according to the predetermined service, Determining whether the script of the predetermined service corresponding to the terminal module has been loaded, wherein the script state of the predetermined service includes: a loaded state, an uninstalled state.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态之后,还包括:检测到所述终端模块出现故障;卸载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已卸载状态。Optionally, in this embodiment, the processor is configured to: according to the stored program code in the storage medium, after the script of the predetermined service is set to the loaded state of the terminal module, the method further includes: Detecting that the terminal module is faulty; uninstalling the script of the predetermined service and setting a script state of the predetermined service corresponding to the terminal module to an uninstalled state.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:检测到终端模块启动包括:检测到所述终端模块和所述预定业务完成初始化。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium: detecting that the terminal module is started comprises: detecting that the terminal module and the predetermined service complete initialization.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:检测到终端模块启动;判断是否存在与终端模块对应的预定业务的脚本;在判断结果为否的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。 Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, detecting that the terminal module is started; determining whether there is a script for the predetermined service corresponding to the terminal module; and if the determination result is negative, And loading a script of the predetermined service corresponding to the terminal module, where a script state of the predetermined service corresponding to different terminal modules is respectively set to a loaded state.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:判断是否存在与终端模块对应的预定业务的脚本包括:根据预定业务的脚本状态,判断是否存在与终端模块对应的预定业务的脚本,其中,预定业务的脚本状态包括:已加载状态,已卸载状态。Optionally, in this embodiment, the processor is executed according to the stored program code in the storage medium: determining whether there is a script for the predetermined service corresponding to the terminal module comprises: determining whether the terminal module exists according to the script state of the predetermined service. Corresponding script of the predetermined service, wherein the script state of the predetermined service includes: a loaded state, an uninstalled state.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在将与不同终端模块对应的预定业务的脚本状态分别设置为已加载状态之后,还包括:检测到终端模块出现故障;卸载与所述终端模块对应的已加载的所述预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。Optionally, in this embodiment, the processor executes, according to the stored program code in the storage medium, after the script states of the predetermined service corresponding to the different terminal modules are respectively set to the loaded state, the method further includes: detecting the terminal The module is faulty; the script of the predetermined service that is loaded corresponding to the terminal module is uninstalled, and the script state of the predetermined service corresponding to the different terminal module from which the script is uninstalled is set to the uninstalled state, respectively.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:检测到终端模块启动包括:检测到终端模块和预定业务完成初始化。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium: detecting that the terminal module is started includes: detecting that the terminal module and the predetermined service complete initialization.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本公开的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present disclosure described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above description is only a preferred embodiment of the present disclosure, and is not intended to limit the disclosure, and various changes and modifications may be made to the present disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and scope of the present disclosure are intended to be included within the scope of the present disclosure.
工业实用性Industrial applicability
如上所述,本公开实施例提供的一种脚本处理方法、装置、系统及路 由器具有以下有益效果:在加载完预定业务的脚本后,对不同终端模块对应的该预定业务的脚本状态分别设置,即每个终端模块都有自己的对应于该预定业务的脚本状态,使得不同终端对预定模块的脚本状态的标志不再是全局唯一的,因此,可以解决相关技术中对不同终端加载相同业务模块的脚本时,互相干扰的问题。 As described above, a script processing method, apparatus, system, and path provided by an embodiment of the present disclosure The utility model has the following beneficial effects: after the script of the predetermined service is loaded, the script states of the predetermined service corresponding to different terminal modules are respectively set, that is, each terminal module has its own script state corresponding to the predetermined service, so that The flags of the scripts of different terminals to the predetermined modules are no longer globally unique. Therefore, the problem of mutual interference when the scripts of the same service modules are loaded into different terminals in the related art can be solved.

Claims (16)

  1. 一种脚本处理方法,包括:A script processing method, including:
    检测到终端模块启动;The terminal module is detected to be activated;
    判断所述终端模块对应的预定业务的脚本是否已经加载;Determining whether the script of the predetermined service corresponding to the terminal module has been loaded;
    在判断结果为否的情况下,加载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态。In a case where the determination result is negative, the script of the predetermined service is loaded and the script state of the predetermined service corresponding to the terminal module is set to the loaded state.
  2. 根据权利要求1所述的方法,其中,判断所述终端模块对应的所述预定业务的脚本是否已经加载包括:The method of claim 1, wherein determining whether the script of the predetermined service corresponding to the terminal module has been loaded comprises:
    根据所述预定业务的脚本状态,判断所述终端模块对应的所述预定业务的脚本是否已经加载,其中,所述预定业务的脚本状态包括:已加载状态,已卸载状态。Determining, according to the script state of the predetermined service, whether the script of the predetermined service corresponding to the terminal module has been loaded, wherein the script state of the predetermined service includes: a loaded state, an uninstalled state.
  3. 根据权利要求1所述的方法,其中,在将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态之后,还包括:The method according to claim 1, wherein after the script of the predetermined service is set to the loaded state of the terminal module, the method further includes:
    检测到所述终端模块出现故障;Detecting that the terminal module is faulty;
    卸载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已卸载状态。The script of the predetermined service is uninstalled and the script state of the predetermined service is set to the uninstalled state corresponding to the script state of the terminal module.
  4. 根据权利要求1所述的方法,其中,检测到终端模块启动包括:检测到所述终端模块和所述预定业务完成初始化。The method of claim 1, wherein detecting the activation of the terminal module comprises detecting that the terminal module and the predetermined service complete initialization.
  5. 一种脚本处理方法,包括:A script processing method, including:
    检测到终端模块启动;The terminal module is detected to be activated;
    判断是否存在与所述终端模块对应的预定业务的脚本;Determining whether there is a script for a predetermined service corresponding to the terminal module;
    在判断结果为否的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。 If the result of the determination is negative, the scenario of the predetermined service corresponding to the terminal module is loaded, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to the loaded state.
  6. 根据权利要求5所述的方法,其中,判断是否存在与所述终端模块对应的所述预定业务的脚本包括:The method according to claim 5, wherein the determining whether there is a script for the predetermined service corresponding to the terminal module comprises:
    根据所述预定业务的脚本状态,判断是否存在与所述终端模块对应的所述预定业务的脚本,其中,所述预定业务的脚本状态包括:已加载状态,已卸载状态。Determining, according to the script state of the predetermined service, whether there is a script of the predetermined service corresponding to the terminal module, where the script state of the predetermined service includes: a loaded state, an uninstalled state.
  7. 根据权利要求5所述的方法,其中,在将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态之后,还包括:The method of claim 5, further comprising: after setting the script state of the predetermined service corresponding to the different terminal modules to the loaded state, respectively,
    检测到所述终端模块出现故障;Detecting that the terminal module is faulty;
    卸载与所述终端模块对应的已加载的所述预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。And uninstalling the loaded script of the predetermined service corresponding to the terminal module, wherein a script state of the predetermined service corresponding to a different terminal module from which the script is uninstalled is respectively set to an uninstalled state.
  8. 根据权利要求5所述的方法,其中,检测到终端模块启动包括:检测到所述终端模块和所述预定业务完成初始化。The method of claim 5 wherein detecting the activation of the terminal module comprises detecting that the terminal module and the predetermined service complete initialization.
  9. 一种脚本处理装置,包括:A script processing device comprising:
    检测模块,设置为检测到终端模块启动;a detection module, configured to detect that the terminal module is started;
    判断模块,设置为判断所述终端模块对应的预定业务的脚本是否已经加载;a determining module, configured to determine whether a script of a predetermined service corresponding to the terminal module has been loaded;
    加载模块,设置为在判断结果为否的情况下,加载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态。Loading a module, configured to load a script of the predetermined service and set a script state of the predetermined service to a loaded state corresponding to a script state of the terminal module if the determination result is negative.
  10. 根据权利要求9所述的装置,其中,所述加载模块,还设置为在将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态之后,检测到所述终端模块出现故障;卸载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设 置为已卸载状态。The device according to claim 9, wherein the loading module is further configured to detect that the terminal module appears after setting a script of the predetermined service to a loaded state of the terminal module to a loaded state. Failure; uninstalling the script of the predetermined service and corresponding to the script state setting of the terminal module Set to the uninstalled state.
  11. 一种脚本处理装置,包括:A script processing device comprising:
    第一检测模块,设置为检测到终端模块启动;a first detecting module, configured to detect that the terminal module is started;
    判断模块,设置为判断是否存在与所述终端模块对应的预定业务的脚本;a determining module, configured to determine whether there is a script for a predetermined service corresponding to the terminal module;
    加载模块,设置为在判断结果为否的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。Loading a module, configured to load a script of the predetermined service corresponding to the terminal module, where the result of the determination is no, wherein the script states of the predetermined service corresponding to different terminal modules are respectively set to be loaded status.
  12. 根据权利要求11所述的装置,其中,还包括:The device according to claim 11, further comprising:
    第二检测模块,设置为检测到所述终端模块出现故障;a second detecting module, configured to detect that the terminal module is faulty;
    卸载模块,设置为卸载与所述终端模块对应的已加载的所述预定业务的脚本,其中,将与卸载了脚本的不同终端模块对应的所述预定业务的脚本状态分别设置为已卸载状态。The uninstallation module is configured to uninstall the loaded script of the predetermined service corresponding to the terminal module, wherein the script state of the predetermined service corresponding to the different terminal module from which the script is uninstalled is respectively set to the uninstalled state.
  13. 一种路由器,包括权利要求9至12中任一项所述的装置。A router comprising the apparatus of any one of claims 9 to 12.
  14. 一种脚本处理系统,包括:A script processing system comprising:
    业务模块,设置为执行预定业务;a business module, configured to perform a predetermined service;
    终端模块,设置为为已加载所述预定业务的脚本的业务模块配置用于执行所述预定业务的命令;a terminal module, configured to configure a command for executing the predetermined service for a service module of a script that has loaded the predetermined service;
    脚本处理装置,设置为在检测到所述终端模块启动;判断所述终端模块对应的预定业务的脚本是否已经加载;在判断结果为否的情况下,加载所述预定业务的脚本并将所述预定业务的脚本对应于所述终端模块的脚本状态设置为已加载状态。a script processing device, configured to: detect that the terminal module is started; determine whether a script of a predetermined service corresponding to the terminal module has been loaded; and if the determination result is negative, load a script of the predetermined service and The script of the predetermined service corresponds to the script state of the terminal module being set to the loaded state.
  15. 一种脚本处理系统,包括:A script processing system comprising:
    业务模块,设置为执行预定业务; a business module, configured to perform a predetermined service;
    终端模块,设置为为已加载所述预定业务的脚本的业务模块配置用于执行所述预定业务的命令;a terminal module, configured to configure a command for executing the predetermined service for a service module of a script that has loaded the predetermined service;
    脚本处理装置,设置为在检测到所述终端模块启动后,在判断不存在与所述终端模块对应的预定业务的脚本的情况下,加载与所述终端模块对应的所述预定业务的脚本,其中,将与不同终端模块对应的所述预定业务的脚本状态分别设置为已加载状态。a script processing device, configured to load a script of the predetermined service corresponding to the terminal module, after detecting that the terminal module is activated, and determining that there is no script for a predetermined service corresponding to the terminal module, The script states of the predetermined services corresponding to different terminal modules are respectively set to the loaded state.
  16. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至4中任一项或5至8中任一项所述的方法。 A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is executed to perform the method of any one of claims 1 to 4 or any one of 5 to 8.
PCT/CN2017/088655 2016-06-22 2017-06-16 Script processing method, apparatus and system, and router WO2017219919A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610460551.5A CN107528714B (en) 2016-06-22 2016-06-22 Script processing method, device and system and router
CN201610460551.5 2016-06-22

Publications (1)

Publication Number Publication Date
WO2017219919A1 true WO2017219919A1 (en) 2017-12-28

Family

ID=60734171

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088655 WO2017219919A1 (en) 2016-06-22 2017-06-16 Script processing method, apparatus and system, and router

Country Status (2)

Country Link
CN (1) CN107528714B (en)
WO (1) WO2017219919A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334064A (en) * 2022-07-26 2022-11-11 广州通则康威智能科技有限公司 Configuration system generation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080141262A1 (en) * 2006-12-07 2008-06-12 Kenji Morihara System, apparatus, and method for managing a service
CN102055785A (en) * 2009-11-09 2011-05-11 杭州华三通信技术有限公司 Online upgrade method for distributed system, distributed system and equipment
CN103096296A (en) * 2011-11-08 2013-05-08 腾讯科技(深圳)有限公司 Method and device of application installation and switchover
US20150317151A1 (en) * 2014-04-30 2015-11-05 Schneider Electric Industries Sas Systems and methods for delivering and accessing software components

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7197553B2 (en) * 2002-04-19 2007-03-27 Nortel Networks Limited Network system having a virtual-service-module
CN100377538C (en) * 2006-03-20 2008-03-26 北京星河亮点通信软件有限责任公司 Construction of protocol testing platform for supporting TD SCDMA terminal protocol
CN100499511C (en) * 2007-03-15 2009-06-10 华为技术有限公司 Service platform assembly management and assembly operating method and business platform
CN100583782C (en) * 2007-10-23 2010-01-20 华为技术有限公司 Software upgrade method and device
CN101272279B (en) * 2008-05-06 2011-05-11 中兴通讯股份有限公司 Method and device for implementing local maintenance terminal management multi-version network element
CN102207879B (en) * 2011-06-14 2013-05-01 贵阳朗玛信息技术股份有限公司 Hot-updating method and hot-updating system of Lua script
CN102567516B (en) * 2011-12-28 2014-01-01 华为技术有限公司 Script loading method and device
CN103634358A (en) * 2012-08-27 2014-03-12 深圳中兴网信科技有限公司 Browser adaption method and apparatus
CN104243185B (en) * 2013-06-06 2018-08-21 神州数码系统集成服务有限公司 A kind of experience type service monitoring system
CN103647669B (en) * 2013-12-16 2017-04-05 上海证券交易所 It is a kind of to ensure the conforming system and method for distributed data processing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080141262A1 (en) * 2006-12-07 2008-06-12 Kenji Morihara System, apparatus, and method for managing a service
CN102055785A (en) * 2009-11-09 2011-05-11 杭州华三通信技术有限公司 Online upgrade method for distributed system, distributed system and equipment
CN103096296A (en) * 2011-11-08 2013-05-08 腾讯科技(深圳)有限公司 Method and device of application installation and switchover
US20150317151A1 (en) * 2014-04-30 2015-11-05 Schneider Electric Industries Sas Systems and methods for delivering and accessing software components

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334064A (en) * 2022-07-26 2022-11-11 广州通则康威智能科技有限公司 Configuration system generation method and device
CN115334064B (en) * 2022-07-26 2023-06-13 广州通则康威智能科技有限公司 Method and device for generating configuration system

Also Published As

Publication number Publication date
CN107528714B (en) 2023-01-20
CN107528714A (en) 2017-12-29

Similar Documents

Publication Publication Date Title
US11669322B2 (en) Firmware upgrade method and apparatus
US9218178B2 (en) Secure firmware updates
WO2017067448A1 (en) Firmware-over-the-air upgrade method, system and computer storage medium
CN107769949B (en) Application component deployment method and deployment node
US8185767B2 (en) Automatic management of a power state of a device with network connections
US10404538B1 (en) Remote platform configuration
US20140068585A1 (en) Secure Firmware Updates
US20180367408A1 (en) Methods for automatically configuring multiple chassis link aggregation group (mc-lag)
CN106549789B (en) Method and system for realizing server installation
WO2017059724A1 (en) Operating system starting method and device
CN108809683B (en) Method and device for deploying cloud application system
CN110011877B (en) Switch testing method and device
WO2020224238A1 (en) Blockchain node depolyment method, device and equipment, and storage medium
US11573806B2 (en) Managing persistent enrollment of a user device
WO2017198015A1 (en) Software upgrading method and apparatus
WO2020023941A1 (en) Bare metal device management
US20220417086A1 (en) Management of IoT Devices in Wireless Communication Networks
CN108322540A (en) Customized data lead-in method, terminal and computer readable storage medium
CN111459524A (en) Software upgrading method, device and system
WO2017219919A1 (en) Script processing method, apparatus and system, and router
CN113965548A (en) Hardware drive updating method, system, equipment and medium of storage server
CN104104701A (en) Online service configuration updating method and system
CN111052083A (en) Method and apparatus for managing scheduling of services during startup
CN105373415A (en) Virtualization based application storage method, execution method, apparatus and system
CN110688130A (en) Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17814657

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17814657

Country of ref document: EP

Kind code of ref document: A1