CN115629784A - Method, system, equipment and computer readable storage medium for updating machine file - Google Patents

Method, system, equipment and computer readable storage medium for updating machine file Download PDF

Info

Publication number
CN115629784A
CN115629784A CN202211398969.XA CN202211398969A CN115629784A CN 115629784 A CN115629784 A CN 115629784A CN 202211398969 A CN202211398969 A CN 202211398969A CN 115629784 A CN115629784 A CN 115629784A
Authority
CN
China
Prior art keywords
machine
file
updating
server
update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211398969.XA
Other languages
Chinese (zh)
Inventor
黄业超
曾飞
冯子杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Fengming Intelligent Technology Co ltd
Original Assignee
Guangzhou Fengming Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Fengming Intelligent Technology Co ltd filed Critical Guangzhou Fengming Intelligent Technology Co ltd
Priority to CN202211398969.XA priority Critical patent/CN115629784A/en
Publication of CN115629784A publication Critical patent/CN115629784A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1433Saving, restoring, recovering or retrying at system level during software upgrading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/10Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
    • G06F21/105Arrangements for software license management or administration, e.g. for managing licenses at corporate level

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Technology Law (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the technical field of communication, and discloses a method, a system, equipment and a computer readable storage medium for updating a machine file, wherein the method comprises the following steps: sending the new edition file to a target server, and updating a machine station number list to be upgraded; the server receives the updated machine number list and the updated file, and opens a new version file to download to the machine client in the updated list; automatically updating updatable files in a client periodically query server in a machine platform, and downloading the updatable files after the updatable files are successfully queried; before automatic updating is executed, packaging and uploading the current old version file to a server for backup, and automatically updating after the backup is finished; and after the updating is successful, uploading the version information and the file after the machine is updated to a server, and deleting the old version file. The invention can be rapidly deployed, updated and maintained, and avoids careless mistakes caused by more updated files and complex updating flow in the updating process.

Description

Method, system, equipment and computer readable storage medium for updating machine file
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, a device, and a computer-readable storage medium for updating a machine file.
Background
In the current automatic production line of the digital automatic factory, any link, equipment failure of a process and software problems mean that the overall production progress of the factory is influenced, and inestimable loss is caused.
With the increase of sales and holding amount of machine equipment, more after-sales problems such as updating and maintenance are brought. For example: when the equipment of a customer needs large-batch authorization updating, after-sales personnel collect the equipment authorization information one by one and usually go to and from a plurality of factories or production workshops, so that the time consumption is long, the speed is slow, and the information collection efficiency is too low.
Meanwhile, when some other influences occur, after-sales personnel often cannot arrive at the customer site at the first time to perform judgment and disposal.
The present invention has been made in view of this situation.
Disclosure of Invention
The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art, and provide a method, a system, a device and a computer-readable storage medium for updating a machine file, which can be deployed and updated quickly, avoid the situation of update failure caused by careless mistakes due to more updated files and complex update flow in the updating process, solve the problem that the device and software versions in different workshops cannot be deployed and updated in a short time, obtain the relevant problem information of a faulty device in time, and conduct research and judgment rapidly, not only can remotely guide customers, provide solutions, but also can obtain enough information before the after-sales personnel arrive on the market, and facilitate the preparation of solutions in advance.
In order to solve the above technical problems, the first aspect of the present invention adopts the following basic concept:
a method of updating a machine file, the method comprising:
logging in a remote management platform webpage end, requesting a target Web server to establish connection, and acquiring information periodically collected by a client;
sending the new edition file to a target server, and updating a machine station number list to be upgraded;
the server receives the updated machine number list and the updated file, and opens a new version file to download to the machine client in the updated list;
automatically updating updatable files in a client periodically query server in a machine platform, and downloading the updatable files after the updatable files are successfully queried;
before automatic updating is executed, packaging and uploading the current old version file to a server for backup, and automatically updating after the backup is finished;
and after the updating is successful, uploading the version information and the file after the machine is updated to a server, and deleting the old version file.
In a preferred embodiment of any of the foregoing solutions, the logging in a Web page of a remote management platform, requesting a target Web server to establish a connection, and acquiring information periodically collected by a client includes:
logging in a Web page end of a remote management platform of a Web server at any internet node through Web service to access a target server;
remotely accessing a target server database, and acquiring and downloading machine number information, program version information and authorization file information which are periodically acquired by a machine remote update client;
and uploading the information acquired by the update application client in each period to a Web server database of a local machine room of the client through an internal local area network for storage and update.
In an embodiment preferred in any of the above schemes, sending the new version file to the target server, and updating the machine number list to be upgraded at the same time includes:
uploading the packed and compressed files to a server for storage and backup through a WebApi interface of a management platform webpage end to ensure that the server has the updated files for updating;
writing the machine number, the program version number and the update file name which need to be updated into a machine update list in a server database, and creating a new update task;
and if the server fails to retrieve the update version file matched with the update list when the server update program executes the update task, prompting that the corresponding update file content is not found through the management platform, outputting an error log, skipping the update task and waiting.
In a preferred embodiment of any of the above solutions, the step of receiving, by the server, the updated machine number list and the updated file, and opening a new version file download to the machine client in the updated list includes:
after receiving the update file, the Web server update program stores the update file to a local backup and updates a local version file list;
if the update list or the update instruction is not received after the backup is finished, the update process is not executed, only the update file backup is carried out, after the update instruction is received, the server update program searches the IP address corresponding to the machine number according to the machine update list, a WebApi download channel is opened to the update program client corresponding to the machine address, and the appointed machine program version and the authorized file download are provided according to the upgrade list.
In an embodiment preferred in any of the above schemes, automatically updating the updatable file in the client periodically querying the server in the machine, and downloading the updatable file after the querying is successful includes:
starting up an updating program in a machine, and periodically sending current machine information, program version information and authorization information to a Web server through WebApi;
and inquiring whether an update file is available for downloading and updating in the server or not, when the update program of the machine inquires that the server has the update file, downloading the update file in the server through the WebApi to prepare for executing an update process, and when the update program of the machine detects that the running state of the machine is switched to an updatable state, executing the update process.
In an embodiment of any of the foregoing schemes, before performing automatic update, packaging and uploading a current old version file to a server backup, and after completing the backup, automatically updating includes:
the machine updating program executes updating operation, uniformly packages the original version files in the machine to the server for backup, and when the updating fails, the original file versions can be remotely restored through the management platform.
In an embodiment of any of the foregoing solutions, after the update is successful, uploading the version information and the file after the machine is updated to the server, and deleting the old version file includes:
the machine station updating application client uploads the acquired authorization information and version information after updating to a Web server database, replaces the original data information of the machine station, and finishes the remote updating task;
the user queries or refreshes the Web server management page information list through the management platform again, namely, the updated state of the machine file and whether the update is successful are obtained.
In a second aspect, a system for updating a machine file includes:
the acquisition module is used for logging in a remote management platform webpage end, requesting a target Web server to establish connection and acquiring information periodically collected by a client;
the sending module is used for sending the new version file to the target server and updating a machine number list to be upgraded;
the receiving module is used for receiving the updated machine station number list and the updated file by the server and opening a new version file to download to the machine station client in the updated list;
the query module is used for automatically updating the updatable files in the client periodically query server in the machine station and downloading the updatable files after the updatable files are successfully queried;
the updating module is used for packaging and uploading the current old version file to a server for backup before executing automatic updating, and automatically updating after the backup is finished;
and the uploading module is used for uploading the version information and the files updated by the machine to the server after the updating is successful, and deleting the old version files.
In a third aspect, an apparatus for updating a machine file includes:
one or more processors;
and the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the method for updating the machine file.
In a fourth aspect, a computer-readable storage medium stores a program, and the program is executed by a processor to implement the method for updating a machine file.
Compared with the prior art, the method for updating the machine file can be used for rapidly deploying, updating and maintaining, avoiding the situation of update failure caused by careless mistakes due to more updated files and complex update flow in the update process, solving the problem that equipment and software versions in different workshops cannot be deployed and updated in a short time, obtaining relevant problem information of faulty equipment in time, rapidly carrying out research and judgment processing, and not only can remotely guide clients and provide a solution; and enough information can be obtained before the arrival of after-sales personnel, so that a coping scheme can be prepared in advance.
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. Some specific embodiments of the present application will be described in detail hereinafter by way of illustration and not limitation with reference to the accompanying drawings. The same reference numbers will be used throughout the drawings to refer to the same or like parts or portions, it being understood by those skilled in the art that the drawings are not necessarily drawn to scale, and wherein:
fig. 1 is a schematic flow chart illustrating a method for updating a machine file according to an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of an apparatus for updating a machine file according to an embodiment of the present disclosure.
It should be noted that the drawings and the description are not intended to limit the scope of the inventive concept in any way, but to illustrate it by a person skilled in the art with reference to specific embodiments.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the described embodiments are merely exemplary of some, and not all, of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
The following embodiments of the present application take a method for updating a machine file as an example to describe the scheme of the present application in detail, but the embodiments do not limit the scope of the present application.
Examples
As shown in fig. 1, the present invention provides a method for updating a machine file, which includes the following steps:
step 1: the Web service can log in a Web server remote management platform webpage end at any Internet node to access a target server. The user can remotely access the target server database through the permission of the platform administrator to acquire and download various information such as machine number information, program version information, authorization file information and the like periodically acquired by the machine remote updating client. The information collected by the update application client in each period is uploaded to a Web server database of a local machine room of a client through an internal Local Area Network (LAN) of a factory workshop to be stored and updated, so that the user can be guaranteed to obtain the latest and accurate machine information every time of remote query.
Step 2: when a user needs to perform remote updating operation, the user is required to upload the packaged and compressed files to a server for storage and backup through a WebApi interface of a management platform webpage end for updating contents such as new authorization files, version updating files and the like before updating, and the updated files in the server are ensured to be available for updating. And then writing the machine number, the program version number, the update file name and the like which need to be updated into a machine update list in a server database, and creating a new update task. And if the server fails to retrieve the update version file matched with the update list when the server update program executes the update task, prompting that the corresponding update file content is not found through the management platform, outputting an error log, skipping the update task and waiting.
And step 3: and after receiving the update file, the Web server update program stores the update file to a local backup and updates a local version file list. And if the update list or the update instruction is not received after the backup is finished, the update process is not executed, and only the update file backup is carried out. After receiving the update instruction, the server update program searches the IP address corresponding to the machine station number according to the machine station update list, opens a WebApi download channel to the update program client corresponding to the machine station address, and provides the appointed machine station program version and the authorized file download according to the update list.
And 4, step 4: and starting an updating program in the machine, periodically sending current machine information, program version information and authorization information to the Web server through the WebApi, and simultaneously inquiring whether an updating file in the server is available for downloading and updating. When the machine update program inquires that the server has the update file, the update file in the server is downloaded through the WebApi to prepare for executing the update process. When the machine updating program detects that the machine running state is switched from the running state to the updatable state such as standby state, maintenance state and the like, the updating process is executed.
And 5: and the machine updating program executes updating operation and uniformly packages the original version files in the machine to the server for backup. When the updating fails, the original file version can be remotely restored through the management platform;
software version updating process: the machine application program adopts a non-conventional installation mode, after uploading and backup are completed, the original program file and the original program of the machine are directly replaced by covering the file contents such as the updated file, the version application program and the like according to the path, and the software updating is finished when the replacement is completed, and the machine updating program scans and acquires the updated software information;
and (3) updating the authorization file: after the updating program downloads the authorization file, the local authorization software application of the machine is opened, the path of the downloaded and decompressed authorization file is transmitted to the authorization software, the authorization software opens the authorization file to authorize the machine software, the updating is completed, an authorization log is generated, namely the authorization file is successfully updated, and the machine updating program acquires authorization log information.
Step 6: and the machine station updating application client uploads the acquired authorization information and version information after updating to the Web server database to replace the original data information of the machine station. When the remote updating task is finished, the user queries or refreshes the Web server management page information list through the management platform again, and then the state of the updated machine file and whether the updating is successful can be obtained.
The invention realizes a remote management platform consisting of a Web page end, a Web server and a machine automatic updating program by using Web network service, and supervises the equipment information, the program version and the authorization file of the online maintenance machine connected with the Web server. Theoretically, by means of remotely accessing the Web server to control the local machine to automatically update the program, software management and automatic update of the online machine can be realized without field personnel on duty as long as the smoothness of a local area network in a factory is ensured and a target machine is in a starting standby state. If the update fails, the software can be returned to the last software version again through remote management, so that the normal use of the equipment is prevented from being influenced. Compared with the operation mode that the machine updating operation is finished one by after-sales personnel in the past, or the after-sales personnel use a local server to finish the deployment updating on the site and then verify whether the updating is successful one by one, the method is undoubtedly more convenient and efficient in practical application.
When the system is used specifically, when a PCB overhaul machine needs to update a software version and authorization for machine use, a user can log in a Web server remote management platform webpage end through administrator authority, access a Web server deployed in a factory machine room, inquire machine information, and obtain machine information, software information, authorization information and online state which are periodically updated and collected by a machine updating program in a database. And manufacturing the use authorization of the machine software by collecting the information files.
Before remote updating, a user is required to upload a new version of software and an authorization file to a Web server on a management interface, a folder with a date as a name is generated for saving and backing up, if an update file or a program version corresponding to an update list cannot be retrieved locally by the server during updating, an update program cannot be executed, and the updating fails. And starting remote updating, selecting a machine number to be updated on a machine management interface by a user through a Web page, selecting a version to be updated and an updated authorization file, editing a server update list, wherein the list comprises the updated machine number, the updated file, new software, the authorization file and the like, waiting for the user to confirm updating, and sending the updated file to a target Web server.
After the user confirms the update, the update program of the server receives the update list and the update instruction, and the update program of the server searches whether the locally stored file of the server meets the update condition of the update list and whether the version and the name are matched. If the retrieval fails, feeding back the update failure through the management platform, outputting an error log, skipping the current update task, and waiting for the next step of instruction; if the retrieval is successful, opening the Web download authority of the machine station with the specified number and a download channel of the version file. And inquiring the updatable version from the server by the local updating application period of the PCB overhaul machine, and downloading the updated file by using the WebApi after the inquiry succeeds in obtaining the downloading authority. The machine update application client judges whether the machine equipment is in an updatable state or not according to information such as host time (current operation time period) and machine state labels (states of use, maintenance, failure and the like of the machine); if the equipment is in a maintenance state or in a factory shift rest time period, the updating program executes updating operation; if the machine equipment is not on-line, the server updating program keeps the downloading channel of the current updating task before receiving a new updating instruction, and continues to update the task after waiting for the on-line connection of the target machine.
And (4) the maintenance machine updating program starts to update, and the original program and the file of the machine local are uploaded to the server for backup, so that the old version can be returned when the update fails. The server feeds back the completion of the backup, the updating program decompresses and covers the new version program to the path of the original program file to replace the original program, and the completion of the replacement is regarded as the success of the software version updating; the machine updating program opens the local authorization software, sends the decompressed authorization file, performs the use authorization of the machine software, detects that the log update display of the authorization software is successful, and indicates that the authorization of the machine software is completed; if any file fails to be updated, sending an update log report to the Web server, and waiting for a next step of instruction;
and the machine updating program acquires the updated authorization information and the updated program version information, uploads the authorization information and the updated program version information to the Web server for updating through the WebApi, and meanwhile, the machine updating program deletes the updated file downloaded to the local server. And after the server receives the data, storing the acquired information into a machine information database to replace the original data information. The user inquires or refreshes the management page again through the machine management platform, and then whether the target machine is updated successfully or not can be obtained.
The method for updating the machine file in the embodiment of the invention further comprises an implementation step of remotely acquiring the machine file by using Web service, wherein the method specifically comprises the following steps:
step 7, the collection application is started and automatically started, and sends a connection request to the server, and the information collection application adopts a starting mode of starting and automatically starting a registry and sends the connection request to the server after starting;
step 8, periodically collecting files such as machine information, authorization information, data reports, operation logs and the like after the application is started, and collecting file contents in an appointed storage path in a specific period when the collection application runs, wherein the files include but are not limited to files such as equipment information, authorization information, data reports, operation logs and the like of the machine;
and 9, uploading files to a server for updating backup every fixed period by the acquisition application, and uploading the acquired information and files to the server for storage backup respectively according to different time periods. For example: the uploading interval time can be set to be one uploading per minute for the collected machine information and the authorization information which are equivalent to a small text file. The file types with larger volume of data reports and logs and continuous updating can be set to be uploaded once every 10 minutes;
step 10, a user logs in a Web page access server to inquire machine file information in the server, and when the user uses remote updating, the user logs in a Web page end of a Web server machine information management platform to access a server database to inquire historical machine data, file names, updating uploading time and the like in the database;
and 11, selecting a corresponding file in the management page, confirming that the selected file is downloaded to the local, downloading the file in a machine information management page in a multi-choice mode, sending a data stream downloading link and a downloading popup window of the selected file to the management page by the server after selecting downloading, and downloading the file to a local file directory of the webpage end after determining downloading.
For example, the tool collection application boots up through the computer registry and requests a connection to the server. And after starting, collecting various types of files such as equipment information (such as equipment names and equipment numbers), authorization information, PCB production statistical data, software running logs and the like according to a specified period. After the connection with the Web server is established, the machine collection application uploads the collected files to the server according to a set period to generate a file backup, for example: the software runs logs and uploads the logs once every ten minutes; and simultaneously writing the file name, the file path and the uploading time into a database.
When a user needs to inquire and download, the Web server database in the client room is remotely accessed through a machine information management page of the login server. The server verifies the login user, loads the database on the management page after the login user is successfully verified, and provides the machine information inquiry and download authority.
During downloading, according to the file name and the file backup path selected by the management page, the server sends a download link popup to the Web page end, sets a file download path, and after downloading is confirmed, the file is downloaded to a local file directory of the Web page end equipment.
The invention connects the target Web server by the Web page end, and can remotely acquire the file content in the machine equipment through the automatic acquisition application pre-installed on the machine. When the application is collected, a client site does not need to be attended by personnel, a webpage end logs in a connection server to quickly inquire and download a required information file, and the client site can be remotely supported and problems can be quickly solved by remotely studying, judging, comparing and feeding back operation data and problems.
FIG. 2 illustrates a block diagram of an exemplary apparatus for updating a machine file suitable for use in implementing embodiments of the present invention. The device for updating the machine file shown in fig. 2 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in FIG. 2, the device for updating the machine file is in the form of a general purpose computing device. Components of the device that update the machine file may include, but are not limited to: one or more processors or processing units, memory, and a bus connecting the various system components (including the memory and processing units).
A bus represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The apparatus for updating a machine file typically includes a variety of computer system readable media. Such media may be any available media that is accessible by a device that updates a machine file, including volatile and non-volatile media, removable and non-removable media.
The memory may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory. The apparatus for updating the machine file may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, the storage system may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 2, often referred to as a "hard drive"). Although not shown in FIG. 2, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus by one or more data media interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility having a set (at least one) of program modules may be stored, for example, in the memory, such program modules including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination may comprise an implementation of a network environment. The program modules generally perform the functions and/or methodologies of the described embodiments of the invention.
The device updating the machine file may also communicate with one or more external devices (e.g., keyboard, pointing device, display, etc.), with one or more devices that enable a user to interact with the device updating the machine file, and/or with any devices (e.g., network card, modem, etc.) that enable the device updating the machine file to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface. Also, the device that updates the machine file may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through a network adapter. As shown, the network adapter communicates over the bus with other modules of the device that update the machine file. It should be appreciated that, although not shown in the figures, other hardware and/or software modules may be used in connection with the apparatus for updating the machine file, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit executes programs stored in the memory so as to execute various functional applications and data processing, for example, implement the processing method of stack splitting provided by any embodiment of the present invention. Namely: logging in a remote management platform webpage end, requesting a target Web server to establish connection, and acquiring information periodically collected by a client; sending the new edition file to a target server, and updating a machine station number list to be upgraded; the server receives the updated machine number list and the updated file, and opens a new version file to download to the machine client in the updated list; automatically updating updatable files in a client periodically query server in a machine platform, and downloading the updatable files after the updatable files are successfully queried; before automatic updating is executed, packaging and uploading the current old version file to a server for backup, and automatically updating after the backup is finished; and after the updating is successful, uploading the version information and the files of the machine after the updating to a server, and deleting the old version files.
An embodiment of the present invention further provides a computer-readable storage medium, in which a program is stored, and when the program is executed by a processor, the method for processing stack splitting according to any embodiment of the present invention is implemented, where the method includes:
logging in a remote management platform webpage end, requesting a target Web server to establish connection, and acquiring information periodically collected by a client;
sending the new edition file to a target server, and updating a machine number list to be upgraded at the same time;
the server receives the updated machine number list and the updated file, and opens a new version file to download to the machine client in the updated list;
automatically updating updatable files in a client periodically query server in a machine platform, and downloading the updatable files after the updatable files are successfully queried;
before automatic updating is executed, packaging and uploading the current old version file to a server for backup, and automatically updating after the backup is finished;
and after the updating is successful, uploading the version information and the file after the machine is updated to a server, and deleting the old version file.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method for updating a machine file, the method comprising the steps of:
logging in a remote management platform webpage end, requesting a target Web server for establishing connection, and acquiring information periodically collected by a client;
sending the new edition file to a target server, and updating a machine station number list to be upgraded;
the server receives the updated machine number list and the updated file, and opens a new version file to download to the machine client in the updated list;
automatically updating updatable files in a client periodically query server in a machine platform, and downloading the updatable files after the updatable files are successfully queried;
before automatic updating is executed, packaging and uploading the current old version file to a server for backup, and automatically updating after the backup is finished;
and after the updating is successful, uploading the version information and the file after the machine is updated to a server, and deleting the old version file.
2. The method for updating the machine file according to claim 1, wherein the logging on the remote management platform Web page end requests the target Web server to establish a connection, and obtains information periodically collected by the client end, includes:
logging in a Web page end of a remote management platform of a Web server at any internet node through Web service to access a target server;
remotely accessing a target server database, and acquiring and downloading machine number information, program version information and authorization file information which are periodically acquired by a machine remote updating client;
and uploading the information acquired by the update application client in each period to a Web server database of a local machine room of the client through an internal local area network for storage and update.
3. The method of updating the machine file according to claim 2, wherein: sending the new edition file to a target server, and updating a machine number list needing to be upgraded simultaneously, wherein the method comprises the following steps:
uploading the packed and compressed files to a server for storage and backup through a WebApi interface of a management platform webpage end to ensure that the server has the updated files for updating;
writing the machine number, the program version number and the update file name which need to be updated into a machine update list in a server database, and creating a new update task;
and if the server fails to retrieve the update version file matched with the update list when the server update program executes the update task, prompting that the corresponding update file content is not found through the management platform, outputting an error log, skipping the update task and waiting.
4. The method of claim 3, wherein: the server receives the updated machine number list and the updated file, and opens a new version file to the machine client in the updated list for downloading, wherein the new version file comprises the following steps:
after the Web server updating program receives the updated file, storing the updated file into a local backup, and updating a local version file list;
if the update list or the update instruction is not received after the backup is finished, the update process is not executed, only the update file backup is carried out, after the update instruction is received, the server update program searches the IP address corresponding to the machine number according to the machine update list, a WebApi download channel is opened to the update program client corresponding to the machine address, and the appointed machine program version and the authorized file download are provided according to the upgrade list.
5. The method of updating the machine file according to claim 4, wherein: the method comprises the following steps that an updatable file in a client side periodic query server is automatically updated in a machine platform, and the updatable file is downloaded after the query is successful, and comprises the following steps:
starting up an updating program in a machine, and periodically sending current machine information, program version information and authorization information to a Web server through WebApi;
and inquiring whether an update file is available for downloading and updating in the server or not, when the update program of the machine inquires that the server has the update file, downloading the update file in the server through the WebApi to prepare for executing an update process, and when the update program of the machine detects that the running state of the machine is switched to an updatable state, executing the update process.
6. The method of updating the machine file according to claim 5, wherein: before executing automatic updating, packaging and uploading the current old version file to a server for backup, and after the backup is finished, automatically updating, wherein the method comprises the following steps:
the machine updating program executes updating operation, uniformly packages the original version files in the machine to the server for backup, and when the updating fails, the original file versions can be remotely restored through the management platform.
7. The method of updating the machine file as set forth in claim 6, wherein: after the update is successful, the version information and the file after the machine is updated are uploaded to a server, and the old version file is deleted, which comprises the following steps:
the machine station updating application client uploads the acquired authorization information and version information after updating to a Web server database, replaces the original data information of the machine station, and finishes the remote updating task;
the user queries or refreshes the Web server management page information list through the management platform again, namely, the updated state of the machine file and whether the update is successful are obtained.
8. A system for updating machine files is characterized in that: the method comprises the following steps:
the acquisition module is used for logging in a remote management platform webpage end, requesting a target Web server for establishing connection and acquiring information periodically collected by a client;
the sending module is used for sending the new version file to the target server and updating a machine number list to be upgraded;
the receiving module is used for receiving the updated machine station number list and the updated file by the server and opening a new version file to download to the machine station client in the updated list;
the query module is used for automatically updating the updatable files in the client periodically query server in the machine station and downloading the updatable files after the updatable files are successfully queried;
the updating module is used for packaging and uploading the current old version file to a server for backup before executing automatic updating, and automatically updating after the backup is finished;
and the uploading module is used for uploading the version information and the files updated by the machine to the server after the updating is successful, and deleting the old version files.
9. An apparatus for updating a machine file, comprising:
one or more processors;
a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method for updating the machine file as recited in any one of claims 1-7.
10. A computer-readable storage medium, wherein the computer-readable storage medium stores a program, and the program when executed by a processor implements a method for updating a machine file according to any one of claims 1-7.
CN202211398969.XA 2022-11-09 2022-11-09 Method, system, equipment and computer readable storage medium for updating machine file Pending CN115629784A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211398969.XA CN115629784A (en) 2022-11-09 2022-11-09 Method, system, equipment and computer readable storage medium for updating machine file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211398969.XA CN115629784A (en) 2022-11-09 2022-11-09 Method, system, equipment and computer readable storage medium for updating machine file

Publications (1)

Publication Number Publication Date
CN115629784A true CN115629784A (en) 2023-01-20

Family

ID=84909550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211398969.XA Pending CN115629784A (en) 2022-11-09 2022-11-09 Method, system, equipment and computer readable storage medium for updating machine file

Country Status (1)

Country Link
CN (1) CN115629784A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974857A (en) * 2023-09-21 2023-10-31 中国西安卫星测控中心 Automatic deployment and update method and system for monitoring agent

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116974857A (en) * 2023-09-21 2023-10-31 中国西安卫星测控中心 Automatic deployment and update method and system for monitoring agent
CN116974857B (en) * 2023-09-21 2024-01-23 中国西安卫星测控中心 Automatic deployment and update method and system for monitoring agent

Similar Documents

Publication Publication Date Title
US6189051B1 (en) System and method for manufacturing hard disk master by downloading selected programs and drivers from a host through a network
US9485134B2 (en) Managing configurations of system management agents in a distributed environment
US11687488B2 (en) Directory deletion method and apparatus, and storage server
CN108881477B (en) Distributed file acquisition monitoring method
US8301935B2 (en) Distributed batch runner
CN107566165B (en) Method and system for discovering and deploying available resources of power cloud data center
US20050246702A1 (en) System and method for automatically updating versions of software programs in client computers
KR20000062122A (en) Factory software management system
CN103019757A (en) Method, device and system for synchronizing software among multiple clients
CN112230942A (en) Automatic deployment method and system supporting various domestic operating systems
CN111866099B (en) Method, device, system, equipment and storage medium for downloading mirror image file
CN111158752A (en) SAAS multi-version control system and use method thereof
CN115629784A (en) Method, system, equipment and computer readable storage medium for updating machine file
US20120096453A1 (en) Software Package Management Mechanism
CN112243017A (en) File uploading method and device
CN112583743B (en) Distributed file exchange method and device
CN110807000B (en) File repair method and device, electronic equipment and storage medium
US9207928B2 (en) Computer-readable medium, apparatus, and methods of automatic capability installation
CN116610343A (en) Method, device, equipment and storage medium for upgrading server firmware
CN114443294B (en) Big data service component deployment method, system, terminal and storage medium
US9513890B1 (en) Method and system for installing software
CN111711713B (en) Data access method, computer device and storage medium
CN114356718A (en) Log processing method, medium, system and computing device
CN113986237A (en) Method and device for creating Jenkins compiling task
CN116319837B (en) File synchronization method, device and equipment supporting multiple protocols and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination