WO2016206381A1 - 文件处理方法及装置 - Google Patents

文件处理方法及装置 Download PDF

Info

Publication number
WO2016206381A1
WO2016206381A1 PCT/CN2016/073207 CN2016073207W WO2016206381A1 WO 2016206381 A1 WO2016206381 A1 WO 2016206381A1 CN 2016073207 W CN2016073207 W CN 2016073207W WO 2016206381 A1 WO2016206381 A1 WO 2016206381A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
network element
control signaling
client device
specified
Prior art date
Application number
PCT/CN2016/073207
Other languages
English (en)
French (fr)
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 WO2016206381A1 publication Critical patent/WO2016206381A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Definitions

  • the present invention relates to the field of communications, and in particular to a file processing method and apparatus.
  • the communication network element provides a command line interface such as Command Line Interface (CLI), but the command line operation is very inconvenient.
  • CLI Command Line Interface
  • the related art provides some client tools of the GUI interface, which can simplify the problem of inconvenient operation of the CLI. The essence is the GUI encapsulation of the CLI operation, and the CLI communication between the client and the network element is directly performed, and the requirement is on the client side. If there is a command line CLI route between the network element and the network element, if it does not, it cannot communicate.
  • the present invention provides a file processing method and apparatus, so as to solve at least the problem that the other terminal disk management client and the network element cannot interact with the network element when there is no command line routing between the related technologies.
  • a file processing method including: a network element device receives control signaling sent by a client device by using a first process; and the network element device processes the specified file according to the control signaling. And sending the processed result to the client device.
  • the first process and the network element device are routed by a command line interface CLI.
  • the processing, by the network element device, the specified file according to the control signaling includes: sending, by the network element device, directory information of the specified file to the client device by using the first process.
  • the processing, by the network element device, the specified file, according to the control signaling includes: modifying, by the network element device, the specified file according to the specified CLI command, where the specified CLI command is the A process is obtained by processing the control signaling received from the client device.
  • control signaling includes a first file download request message
  • processing, by the network element device, processing the specified file according to the control signaling, by using the control instruction, the network element device passes The second process downloads the specified file; wherein the specified file is sent by the client device to the second process by using a file transfer protocol.
  • control signaling includes a file uploading command
  • processing, by the network element device, the specified file according to the control signaling includes: the network element device uploading according to the file received from the first process
  • the command sends the specified file to the second process by using a file transfer protocol, where the file upload command is processed by the first process after processing the second file download request message received from the client device And the specified file is downloaded by the client device from the second process to the client device.
  • another file processing method including: a client device sends control signaling to a network element device by using a first process; and the client device receives feedback of the network element device As a result, the feedback result is obtained by the network element device processing the specified file according to the control signaling.
  • a file processing apparatus which is applied to a network element device, and the apparatus includes: a receiving module, configured to receive, by using a first process, control signaling sent by a client device; and the processing module is configured to And processing the specified file according to the control signaling, and sending the processed result to the client device.
  • the first process and the network element device are routed by a command line interface CLI.
  • processing module is further configured to send the directory information of the specified file to the client device by using the first process.
  • processing module is further configured to modify the specified file according to the specified CLI command, where the specified CLI command is the first process for the control signaling received from the client device Obtained after processing.
  • control signaling includes a first file download request message, where the processing module is further configured to download, by the second process, the specified file, triggered by the control instruction, where the specified file is The client device is sent to the second process by a file transfer protocol.
  • control signaling includes a file uploading command
  • processing module is further configured to send the specified file to the second process by using a file uploading protocol according to the file uploading command received from the first process,
  • the file uploading command is obtained by the first process processing the second file download request message received by the client device, where the specified file is used by the client device from the second The process is downloaded to the client device.
  • a file processing apparatus is further provided, which is applied to a client device, the device comprising: a sending module, configured to send control signaling to a network element device by using a first process; and a receiving module, And being configured to receive the feedback result of the network element device, where the feedback result is obtained by the network element device processing the specified file according to the control signaling.
  • the first signaling is used to establish the control signaling sent by the client device by using the network element device, where the first process is used to establish a route between the client device and the network element device for transmitting the control signaling.
  • the network element device processes the specified file according to the control signaling, and sends the processed result to the client device. Therefore, the problem that the other terminal disk management client and the network element cannot communicate with the network element without command line routing is solved, and the file transfer protocol (FTP) terminal disk management is simplified.
  • FTP file transfer protocol
  • FIG. 1 is a flow chart of a file processing method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a file processing apparatus according to an embodiment of the present invention.
  • FIG. 3 is a flowchart (1) of a file processing method according to an embodiment of the present invention.
  • FIG. 4 is a structural block diagram (1) of a file processing apparatus according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of a disk file management of a network element FTP terminal according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a disk file management operation of a network element FTP terminal according to an embodiment of the present invention
  • FIG. 7 is a flow chart of initiating a connection request according to an embodiment of the present invention.
  • FIG. 8 is a flow chart of operations for changing a directory or performing deletion, renaming, etc., according to an embodiment of the present invention
  • FIG. 9 is a flow chart of downloading a file from a network element to a local flow chart according to an embodiment of the present invention.
  • FIG. 10 is a flow chart of uploading a file from a local to a network element according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a file processing method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 The network element device receives, by using the first process, control signaling sent by the client device.
  • Step S104 The network element device processes the specified file according to the control signaling, and sends the processed result to the client device.
  • the network element device processes the specified file according to the control signaling sent by the client device received by the first process, and sends the processed result of the specified file to the client device, thereby solving the related art.
  • the first process and the network element device are routed by a command line interface CLI.
  • step S104 involves the network element device processing the specified file according to the control signaling.
  • the network element device sends the directory information of the specified file to the client device by using the first process.
  • step S104 involves the network element device processing the specified file according to the control signaling.
  • the network element device modifies the specified file according to the specified CLI command, where the specified CLI command is the first The process is obtained by processing the control signaling received from the client device.
  • control signaling includes a first file download request message, where the control signaling is a first file download request message, and the network element device passes the second process, triggered by the control command. Downloading the specified file; wherein the specified file is sent by the client device to the second process through the file transfer protocol, thereby completing the process of processing, by the network element device, the specified file according to the control signaling.
  • control signaling includes a file uploading command.
  • the network element device specifies the file uploading command according to the file uploading command received from the first process.
  • the file is sent to the second process, where the file upload command is obtained by the first process processing the second file download request message received from the client device, and the specified file is downloaded from the second process to the client by the client device.
  • the process of processing the specified file by the network element device according to the control signaling is completed.
  • a file processing device is also provided in the embodiment, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the apparatus includes: a receiving module 22, configured to receive, by using a first process, a control signal sent by a client device.
  • the processing module 24 is configured to process the specified file according to the control signaling, and send the processed result to the client device.
  • the first process and the network element device are configured as a command line interface CLI.
  • processing module 24 is further configured to send the directory information of the specified file to the client device by using the first process.
  • processing module 24 is further configured to modify the specified file according to the specified CLI command, wherein the specified CLI command is obtained by the first process processing the control signaling received from the client device.
  • control signaling includes a first file download request message; the processing module 24 is further configured to download, by the second process, the specified file, triggered by the control instruction; wherein the specified file is sent by the client device through the file transfer protocol To the second process.
  • control signaling includes a file uploading command
  • the processing module 24 is further configured to send the specified file to the second process according to the file uploading command received from the first process by using a file transfer protocol, where the file uploading command is configured by the first
  • the specified file is downloaded by the client device from the second process to the client device.
  • FIG. 3 is a flowchart (1) of a file processing method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
  • Step S302 The client device sends control signaling to the network element device by using the first process.
  • Step S304 The client device receives the feedback result of the network element device, where the feedback result is obtained by the network element device processing the specified file according to the control signaling.
  • the client device sends the control signaling to the network element device by using the first process, and the network element device processes the specified file according to the control signaling, and sends the processed result of the specified file to the client device to solve the problem.
  • the problem that the command line interface provided by the communication network element is inconvenient in the related art is simplified, and the operation steps and processes of the disk management of the network element FTP terminal are simplified, and the operation efficiency is improved.
  • a file processing device is also provided in the embodiment, which is used to implement the above-mentioned embodiments and preferred embodiments, and will not be described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 4 is a structural block diagram (1) of a file processing apparatus according to an embodiment of the present invention, applied to a client device, as shown in FIG. 4, the device includes: a sending module 42 configured to send control signaling by using a first process The receiving module 44 is configured to receive the feedback result of the network element device, where the feedback result is obtained by the network element device processing the specified file according to the control signaling.
  • the optional embodiment provides a method for constructing a disk file management tool of a network element FTP terminal.
  • the network element FTP tool uses a CLI communication interface protocol (TELNET)/encrypted TELNET transmission protocol (Secure).
  • TELNET CLI communication interface protocol
  • Secure Encrypted TELNET transmission protocol
  • SSH FTP/encrypted FTP File Transfer Protocol
  • SFTP FTP File Transfer Protocol
  • FIG. 5 is a structural diagram of the disk file management of the network element FTP terminal according to the embodiment of the present invention, as shown in FIG. , its composition includes:
  • NE FTP tool process Provides a graphical FTP tool, which has a connection network element, sends various commands to the network element, initiates/receives operation requests, and displays response of the device to CLI commands, etc., and transfers files between the local and network elements. Wait;
  • the control forwarding process is responsible for forwarding and feedbackting the operation request initiated by the network element FTP tool, and initiating/receiving/forwarding the CLI control command for the network element;
  • File forwarding process responsible for transferring files uploaded and downloaded.
  • the system implementation of the optional embodiment includes at least the following modules: a network element FTP tool process, which is a graphical FTP tool software module running on the client side, and the client side and the network element have no reachable route; and the forwarding process is controlled.
  • the module is a software of the server 1 side, and has a CLI route between the network element and the network element.
  • the CLI can communicate with the network element through the CLI (including but not limited to Telnet, SSH, etc.), and the remote forwarding process can be controlled by the forwarding process and the client side.
  • the module performs the file transfer.
  • the module is the server 2 side software.
  • the server 2 needs to start the related file transfer service (including but not limited to FTP, SFTP, TFTP, etc.).
  • the client side and the NE side can perform uploading through the related file transfer protocol. Or download file operations.
  • the client side and the network element side include, without limitation, file transfer using the same file transfer protocol.
  • the file transfer module includes, without limitation, only one case, and Server1 and Server2 include Limited to the case of deployment on the same machine.
  • FIG. 6 is a flowchart of a disk file management operation of a network element FTP terminal according to an embodiment of the present invention. As shown in FIG. 6, the process includes the following steps:
  • Step S602 the network element FTP tool initiates an operation request, and the remote procedure calling module of the network element FTP tool forwards the request to the control forwarding process.
  • Step S604 controlling the forwarding process to interpret the request
  • Step S606 establishing a CLI session or sending a CLI command request to the network element according to the request;
  • Step S608 the network element responds to the request and feeds back the result
  • Step S610 controlling a remote procedure call module of the forwarding process, and feeding back the result to the network element FTP tool.
  • This alternative embodiment includes, but is not limited to, the following scenarios:
  • Scenario 1 is a process of establishing a CLI session.
  • FIG. 7 is a flowchart of initiating a connection request according to an embodiment of the present invention. As shown in FIG. 7, the process includes the following steps:
  • Step S702 when an NE is connected to the network element FTP tool, the network element FTP initiates a connection request.
  • Step S704 the remote procedure calling module of the network element FTP tool forwards the request to the control forwarding process.
  • Step S706 controlling the forwarding process to initiate a CLI connection request to the network element
  • Step S708 controlling the forwarding process and then establishing a CLI session with the network element, the establishment is successful, and the network element returns the root directory information to the control forwarding process.
  • Step S710 the control forwarding process returns the result to the network element FTP tool, and the network element FTP displays the result on the interface.
  • FIG. 8 is a flowchart of changing the directory or performing deletion, renaming, etc. according to an embodiment of the present invention. As shown in FIG. 8, the process includes the following steps. step:
  • Step S802 the network element FTP tool initiates an operation on the interface.
  • Step S804 the remote procedure calling module of the network element FTP tool forwards the request to the control forwarding process.
  • Step S806 the control forwarding process analyzes the operation type, generates a CLI command, and sends the command to the network element by the CLI session;
  • Step S808 the network element feedback result is sent to the control forwarding process
  • Step S810 is further forwarded to the network element FTP tool, and the network element FTP tool displays the result on the interface.
  • FIG. 9 is a flow chart for downloading a file from a network element to a local flow chart according to an embodiment of the present invention. As shown in FIG. 9, the process includes the following steps:
  • Step S902 the network element FTP tool initiates an upload file to the specified network element directory request.
  • Step S904 the network element FTP tool first uploads the file to the file forwarding process through a specific file transfer protocol
  • Step S906 the remote procedure invoking module of the network element FTP tool notifies the control process to notify the network element, and downloads the file uploaded by the network element FTP tool to the corresponding location of the network element from the file transfer process;
  • Step S908 controlling the forwarding process to update the progress status to the network element FTP tool until the file transfer is completed.
  • FIG. 10 is a flow chart of uploading a file from the local device to the network element according to an embodiment of the present invention. As shown in FIG. 10, the flowchart includes the following steps:
  • Step S1002 The network element FTP tool initiates a download file request, and the process invoking module of the network element FTP tool sends the request to the control forwarding process.
  • Step S1004 The control forwarding process sends an upload file CLI command to the network element, and the network element responds to the request;
  • Step S1006 Control the forwarding process to upload the file to the file forwarding process by using a file transfer protocol
  • Step S1008 The control forwarding process notifies the network element FTP tool to download the file from the file forwarding process, and controls the forwarding process to update the transmission progress of each stage at any time during the process.
  • the present invention provides an image forming remote network element FTP disk management software construction method, which supports graphical disk file browsing and file mutual transmission by encapsulating and parsing the CLI.
  • the solution adopts the CLI and other protocols as the control protocol of the network element FTP tool, and uses the file transfer protocol to transmit files, thereby simplifying the operation steps and processes, improving the operation efficiency, and reducing the maintenance cost.
  • the network element FTP tool and the terminal network element support route isolation, and have wider application scope and higher practicability, simplifying the process of viewing the terminal network element disk and downloading the file, improving operation efficiency, and reducing Maintenance costs.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention 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. Perform the steps shown or described, or separate them into individual integrated circuit modules, or make multiple modules or steps into a single The integrated circuit module is implemented. Thus, the invention is not limited to any specific combination of hardware and software.
  • the file processing method and apparatus provided by the embodiments of the present invention have the following beneficial effects: the problem that the other terminal disk management client and the network element cannot communicate with the network element without command line routing is solved. At the same time, it simplifies the operation steps and processes of the disk management of the network element FTP terminal, and improves the operation efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种文件处理方法及装置,其中,该方法包括:网元设备通过第一进程接收客户端设备发送的控制信令网元设备根据控制信令对指定文件进行处理,并将处理后的结果发送给客户端设备。通过本发明解决了相关技术中其他终端磁盘管理客户端与网元间无命令行路由时无法与网元进行交互的问题,同时简化了网元FTP终端磁盘管理的操作步骤与流程,提高了操作效率。

Description

文件处理方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种文件处理方法及装置。
背景技术
随着通信设备业务功能的增加以及运行时间的加长,其存储在网元磁盘中数据也会飞速增长,其中诸如临时文件、日志文件、调试信息等,需要经常进行清理或者下载到本地进行故障查看或定位等操作,通信网元都提供了诸如命令行接口(Command Line interface,简称为CLI)命令行接口,但命令行操作十分不便。相关技术中提供了一些GUI界面的客户端工具,可以简化CLI操作不便的问题,其本质是CLI操作的GUI封装,其客户端与网元间是直接进行的CLI通信,其要求就是在客户端与网元间要有命令行CLI路由时,若没有,则无法通信。
针对相关技术中,其他终端磁盘管理客户端与网元间无命令行路由时无法与网元进行交互的问题,还未提出有效的解决方案。
发明内容
本发明提供了一种文件处理方法及装置,以至少解决相关技术中其他终端磁盘管理客户端与网元间无命令行路由时无法与网元进行交互的问题。
根据本发明的一个方面,提供了一种文件处理方法,包括:网元设备通过第一进程接收客户端设备发送的控制信令;所述网元设备根据所述控制信令对指定文件进行处理,并将处理后的结果发送给所述客户端设备。
可选地,所述第一进程与所述网元设备之间为命令行接口CLI路由。
可选地,所述网元设备根据所述控制信令对指定文件进行处理包括:所述网元设备通过所述第一进程将所述指定文件的目录信息发送给所述客户端设备。
可选地,所述网元设备根据所述控制信令对指定文件进行处理包括:所述网元设备根据指定CLI命令对所述指定文件进行修改,其中,所述指定CLI命令为所述第一进程对从所述客户端设备接收的所述控制信令进行处理后得到的。
可选地,所述控制信令包括第一文件下载请求消息;所述网元设备根据所述控制信令对指定文件进行处理包括:在所述控制指令的触发下,所述网元设备通过第二进程下载所述指定文件;其中,所述指定文件由所述客户端设备通过文件传输协议发送至所述第二进程中。
可选地,所述控制信令包括文件上传命令;所述网元设备根据所述控制信令对指定文件进行处理包括:所述网元设备根据从所述第一进程接收的所述文件上传命令通过文件传输协议将所述指定文件发送至第二进程,其中,所述文件上传命令由所述第一进程对从所述客户端设备接收到的第二文件下载请求消息进行处理后得到的,所述指定文件被所述客户端设备从所述第二进程中下载至所述客户端设备中。
根据本发明的另一个方面,还提供了另一种文件处理方法,包括:客户端设备通过第一进程将控制信令发送给网元设备;所述客户端设备接收所述网元设备的反馈结果,其中,所述反馈结果为所述网元设备根据所述控制信令对指定文件进行处理后得到的。
根据本发明的一个方面,提供了一种文件处理装置,应用于网元设备,所述装置包括:接收模块,设置为通过第一进程接收客户端设备发送的控制信令;处理模块,设置为根据所述控制信令对指定文件进行处理,并将处理后的结果发送给所述客户端设备。
可选地,所述第一进程与所述网元设备之间为命令行接口CLI路由。
可选地,所述处理模块还设置为通过所述第一进程将所述指定文件的目录信息发送给所述客户端设备。
可选地,所述处理模块还设置为根据指定CLI命令对所述指定文件进行修改,其中,所述指定CLI命令为所述第一进程对从所述客户端设备接收的所述控制信令进行处理后得到的。
可选地,所述控制信令包括第一文件下载请求消息;所述处理模块还设置为在所述控制指令的触发下,通过第二进程下载所述指定文件;其中,所述指定文件由所述客户端设备通过文件传输协议发送至所述第二进程中。
可选地,所述控制信令包括文件上传命令;所述处理模块还设置为根据从所述第一进程接收的所述文件上传命令通过文件传输协议将所述指定文件发送至第二进程,其中,所述文件上传命令由所述第一进程对从所述客户端设备接收到的第二文件下载请求消息进行处理后得到的,所述指定文件被所述客户端设备从所述第二进程中下载至所述客户端设备中。
根据本发明的另一个方面,还提供了一种文件处理装置,应用于客户端设备,所述装置包括:发送模块,设置为通过第一进程将控制信令发送给网元设备;接收模块,设置为接收所述网元设备的反馈结果,其中,所述反馈结果为所述网元设备根据所述控制信令对指定文件进行处理后得到的。
通过本发明,采用网元设备通过第一进程接收客户端设备发送的控制信令,其中,第一进程用于建立该客户端设备与该网元设备之间用于传输该控制信令的路由;网元设备根据控制信令对指定文件进行处理,并将处理后的结果发送给客户端设备。从而解决了相关技术中其他终端磁盘管理客户端与网元间无命令行路由时无法与网元进行交互的问题,同时简化了网元文件传输协议(File Transfer Protocol,简称为FTP)终端磁盘管理的操作步骤与流程,提高了操作效率。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的文件处理方法的流程图;
图2是根据本发明实施例的文件处理装置的结构框图;
图3是根据本发明实施例的文件处理方法的流程图(一);
图4是根据本发明实施例的文件处理装置的结构框图(一);
图5是根据本发明实施例的网元FTP终端磁盘文件管理组成结构图;
图6是根据本发明实施例的网元FTP终端磁盘文件管理操作流程图;
图7是根据本发明实施例的发起连接请求流程图;
图8是根据本发明实施例的是变更目录或者执行删除、重命名等操作流程图;
图9是根据本发明实施例的从网元下载文件到本地流程图;
图10是根据本发明实施例的从本地上传文件到网元流程图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种文件处理方法,图1是根据本发明实施例的文件处理方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,网元设备通过第一进程接收客户端设备发送的控制信令;
步骤S104,网元设备根据控制信令对指定文件进行处理,并将处理后的结果发送给客户端设备。
通过上述步骤,网元设备根据通过第一进程接收到的客户端设备发送的控制信令对指定文件进行处理,并将对指定文件处理后的结果发送至客户端设备,从而解决了相关技术中其他终端磁盘管理客户端与网元间无命令行路由时无法与网元进行交互的问题,同时简化了网元FTP终端磁盘管理的操作步骤与流程,提高了操作效率。
在一个可选实施例中,上述的第一进程与网元设备之间为命令行接口CLI路由。
上述步骤S104中涉及到网元设备根据控制信令对指定文件进行处理,在一个可选实施例中,网元设备通过上述第一进程将指定文件的目录信息发送给客户端设备。
上述步骤S104中涉及到网元设备根据控制信令对指定文件进行处理,在另一个可选实施例中,网元设备根据指定CLI命令对指定文件进行修改,其中,指定CLI命令为上述第一进程对从客户端设备接收的控制信令进行处理后得到的。
在一个可选实施例中,上述控制信令包括第一文件下载请求消息,在上述控制信令为第一文件下载请求消息的情况下,在控制指令的触发下,网元设备通过第二进程下载指定文件;其中,指定文件由客户端设备通过文件传输协议发送至第二进程中,从而完成了网元设备根据控制信令对指定文件进行处理的过程。
在另一个可选实施例中,上述控制信令包括文件上传命令,在上述控制信令为文件上传命令的情况下,网元设备根据从第一进程接收的文件上传命令通过文件传输协议将指定文件发送至第二进程,其中,文件上传命令由第一进程对从客户端设备接收到的第二文件下载请求消息进行处理后得到的,指定文件被客户端设备从第二进程中下载至客户端设备中,从而完成了网元设备根据控制信令对指定文件进行处理的过程。
在本实施例中还提供了一种文件处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的文件处理装置的结构框图,应用于网元设备,如图2所示,该装置包括:接收模块22,设置为通过第一进程接收客户端设备发送的控制信令;处理模块24,设置为根据控制信令对指定文件进行处理,并将处理后的结果发送给客户端设备。
可选地,上述第一进程与网元设备之间为命令行接口CLI路由。
可选地,处理模块24还设置为通过该第一进程将该指定文件的目录信息发送给客户端设备。
可选地,处理模块24还设置为根据指定CLI命令对该指定文件进行修改,其中,指定CLI命令为第一进程对从客户端设备接收的控制信令进行处理后得到的。
可选地,控制信令包括第一文件下载请求消息;处理模块24还设置为在控制指令的触发下,通过第二进程下载该指定文件;其中,指定文件由客户端设备通过文件传输协议发送至第二进程中。
可选地,控制信令包括文件上传命令;处理模块24还设置为根据从第一进程接收的文件上传命令通过文件传输协议将该指定文件发送至第二进程,其中,文件上传命令由该第一进程对从该客户端设备接收到的第二文件下载请求消息进行处理后得到的,指定文件被客户端设备从第二进程中下载至客户端设备中。
在另一个实施例中提供了另一种文件处理方法,图3是根据本发明实施例的文件处理方法的流程图(一),如图3所示,该流程包括如下步骤:
步骤S302,客户端设备通过第一进程将控制信令发送给网元设备;
步骤S304,客户端设备接收网元设备的反馈结果,其中,反馈结果为网元设备根据控制信令对指定文件进行处理后得到的。
通过上述步骤,客户端设备通过第一进程将控制信令发送给网元设备,网元设备根据控制信令对指定文件进行处理,并将对指定文件处理后的结果发送至客户端设备,解决了相关技术中通信网元提供的命令行接口操作不方便的问题,同时简化了网元FTP终端磁盘管理的操作步骤与流程,提高了操作效率。
在本实施例中还提供了一种文件处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图4是根据本发明实施例的文件处理装置的结构框图(一),应用于客户端设备,如图4所示,该装置包括:发送模块42,设置为通过第一进程将控制信令发送给网元设备;接收模块44,设置为接收网元设备的反馈结果,其中,反馈结果为网元设备根据控制信令对指定文件进行处理后得到的。
针对相关技术存在的上述问题,下面结合具体的可选实施例进行说明,在下述的可选实施例中结合了上述可选实施例及其可选实施方式。
本可选实施例提供了一种网元FTP终端磁盘文件管理工具构建方法,不同于普通的FTP客户端软件,该网元FTP工具采用CLI通讯接口协议(TELNET)/加密的TELNET传输协议(Secure Shell,简称为SSH)与网元交互,以FTP/加密的FTP传输协议(Secure File Transfer Protocol,简称为SFTP)协议进行文件传输,同时支持路由隔离,即使网元FTP工具与网元之间无TELNET/SSH以及FTP/SFTP等路由的情况下,也可正常进行网元FTP的各项操作。
本可选实施例采用以下技术方案,应用在现有设备上,提供终端磁盘网元FTP工具,图5是根据本发明实施例的网元FTP终端磁盘文件管理组成结构图,如图5所示,其组成包括:
网元FTP工具进程:提供图形化FTP工具,拥有连接网元,对网元发送各种指令,发起/接收操作请求、以及设备对CLI命令的响应显示等,在本地和网元之间传送文件等;
控制转发进程:负责对网元FTP工具发起的操作请求进行转发与反馈,对网元发起/接收/转发CLI控制命令等;
文件转发进程:负责对上传和下载的文件进行中转等操作。
本可选实施例的系统实施方案组成至少包括以下模块:网元FTP工具进程,该进程作为图形化的FTP工具软件模块运行在Client侧,Client侧与网元无可达路由;控制转发进程,该模块为Server1侧软件,与网元间存在CLI路由,可以通过CLI协议(包括而不限于Telnet,SSH等)与网元进行交互,同时控制转发进程与Client侧可以通过远程调用的方式(包括而不限于 RMI,EJB,WEB SERVICE方法等)进行交互,从而将Client的操作请求带到Server1侧,进而通过CLI协议传递到网元;文件转发进程,因为client侧与网元无路由可达,故需设置该模块进行文件中转,该模块为Server2侧软件,Server2上需要启动相关文件传输服务(包括而不限于FTP,SFTP,TFTP等服务),client侧和网元侧可以通过相关文件传输协议,执行上传或下载文件操作,作为灵活性,client侧和网元侧包括而不限于使用同一种文件传输协议进行文件传输,作为扩展,文件转发模块包括而不限于只有一个的情形,同时Server1和Server2包括不限于部署在同台机器的情形。
图6是根据本发明实施例的网元FTP终端磁盘文件管理操作流程图,如图6所示,该流程包括如下步骤:
步骤S602,网元FTP工具发起操作请求,网元FTP工具的远程过程调用模块将请求转发至控制转发进程;
步骤S604,控制转发进程解释请求;
步骤S606,根据请求不同,对网元建立CLI会话或者发送CLI命令请求;
步骤S608,网元对请求进行响应并反馈结果;
步骤S610,控制转发进程的远程过程调用模块,将结果反馈给网元FTP工具。
本可选实施例包括而不限于以下几种场景:
场景1,连接网元场景,该场景实际上是建立CLI会话的过程,图7是根据本发明实施例的发起连接请求流程图,如图7所示,该流程包括如下步骤:
步骤S702,当在网元FTP工具里连接某网元时,网元FTP发起连接请求;
步骤S704,网元FTP工具的远程过程调用模块,将请求转发给控制转发进程;
步骤S706,控制转发进程对网元发起CLI连接请求;
步骤S708,控制转发进程然后与网元建立CLI会话,建立成功,网元返回根目录信息给控制转发进程;
步骤S710,控制转发进程将结果再返回给网元FTP工具,网元FTP将结果显示在界面上。
场景2,用户变更目录或者对文件进行修改操作如重命名等,图8是根据本发明实施例的是变更目录或者执行删除、重命名等操作流程图,如图8所示,该流程包括如下步骤:
步骤S802,网元FTP工具在界面发起操作;
步骤S804,网元FTP工具的远程过程调用模块,将请求转发给控制转发进程;
步骤S806,控制转发进程分析操作类型,生成CLI命令,由CLI会话将命令下发至网元;
步骤S808,网元反馈结果给控制转发进程;
步骤S810,再进一步转发给网元FTP工具,网元FTP工具在界面显示结果。
场景3,用户需要上传本地文件到网元目录,图9是根据本发明实施例的从网元下载文件到本地流程图,如图9所示,该流程包括如下步骤:
步骤S902,网元FTP工具发起上传文件到指定网元目录请求;
步骤S904,网元FTP工具会首先通过特定的文件传输协议,将文件上传到文件转发进程上;
步骤S906,网元FTP工具的远程过程调用模块会通知控制进程通知网元,从文件中转进程上,将网元FTP工具上传的文件,下载到网元的相应位置;
步骤S908,控制转发进程更新进度状态给网元FTP工具,直至完成文件传输。
场景4,用户需要从网元上下载文件到本地,图10是根据本发明实施例的从本地上传文件到网元流程图,如图10所示,该流程图包括如下步骤:
步骤S1002,网元FTP工具发起下载文件请求,网元FTP工具的过程调用模块将请求发送至控制转发进程;
步骤S1004,控制转发进程向网元发送上传文件CLI命令,网元响应请求;
步骤S1006,控制转发进程将文件通过文件传输协议上传至文件转发进程;
步骤S1008,控制转发进程通知网元FTP工具从文件转发进程上下载文件,过程中控制转发进程随时更新各个阶段的传输进度。
综上所述,本发明提供了一种图像化的远程网元FTP磁盘管理软件构建方法,通过对CLI的封装与解析,支持图形化的磁盘文件浏览以及文件的互传。该方案采用CLI等协议作为网元FTP工具的控制协议,采用文件传输协议对文件进行传输,从而简化操作步骤与流程,提高操作效率,降低维护成本。且所述方案中,网元FTP工具与终端网元支持路由隔离,适用范围更广,具有更高的实用性,简化了终端网元磁盘的查看以及文件上下载的流程,提高操作效率,降低维护成本。
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个 集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
如上所述,本发明实施例提供的一种文件处理方法及装置具有以下有益效果:解决了相关技术中其他终端磁盘管理客户端与网元间无命令行路由时无法与网元进行交互的问题,同时简化了网元FTP终端磁盘管理的操作步骤与流程,提高了操作效率。

Claims (14)

  1. 一种文件处理方法,包括:
    网元设备通过第一进程接收客户端设备发送的控制信令;
    所述网元设备根据所述控制信令对指定文件进行处理,并将处理后的结果发送给所述客户端设备。
  2. 根据权利要求1所述的方法,其中,所述第一进程与所述网元设备之间为命令行接口CLI路由。
  3. 根据权利要求1所述的方法,其中,所述网元设备根据所述控制信令对指定文件进行处理包括:
    所述网元设备通过所述第一进程将所述指定文件的目录信息发送给所述客户端设备。
  4. 根据权利要求1所述的方法,其中,所述网元设备根据所述控制信令对指定文件进行处理包括:
    所述网元设备根据指定CLI命令对所述指定文件进行修改,其中,所述指定CLI命令为所述第一进程对从所述客户端设备接收的所述控制信令进行处理后得到的。
  5. 根据权利要求1所述的方法,其中,所述控制信令包括第一文件下载请求消息;所述网元设备根据所述控制信令对指定文件进行处理包括:
    在所述控制指令的触发下,所述网元设备通过第二进程下载所述指定文件;其中,所述指定文件由所述客户端设备通过文件传输协议发送至所述第二进程中。
  6. 根据权利要求1所述的方法,其中,所述控制信令包括文件上传命令;所述网元设备根据所述控制信令对指定文件进行处理包括:
    所述网元设备根据从所述第一进程接收的所述文件上传命令通过文件传输协议将所述指定文件发送至第二进程,其中,所述文件上传命令由所述第一进程对从所述客户端设备接收到的第二文件下载请求消息进行处理后得到的,所述指定文件被所述客户端设备从所述第二进程中下载至所述客户端设备中。
  7. 一种文件处理方法,包括:
    客户端设备通过第一进程将控制信令发送给网元设备;
    所述客户端设备接收所述网元设备的反馈结果,其中,所述反馈结果为所述网元设备根据所述控制信令对指定文件进行处理后得到的。
  8. 一种文件处理装置,应用于网元设备,所述装置包括:
    接收模块,设置为通过第一进程接收客户端设备发送的控制信令;
    处理模块,设置为根据所述控制信令对指定文件进行处理,并将处理后的结果发送给所述客户端设备。
  9. 根据权利要求8所述的装置,其中,所述第一进程与所述网元设备之间为命令行接口CLI路由。
  10. 根据权利要求8所述的装置,其中,所述处理模块还设置为通过所述第一进程将所述指定文件的目录信息发送给所述客户端设备。
  11. 根据权利要求8所述的装置,其中,所述处理模块还设置为根据指定CLI命令对所述指定文件进行修改,其中,所述指定CLI命令为所述第一进程对从所述客户端设备接收的所述控制信令进行处理后得到的。
  12. 根据权利要求8所述的装置,其中,所述控制信令包括第一文件下载请求消息;所述处理模块还设置为在所述控制指令的触发下,通过第二进程下载所述指定文件;其中,所述指定文件由所述客户端设备通过文件传输协议发送至所述第二进程中。
  13. 根据权利要求8所述的装置,其中,所述控制信令包括文件上传命令;所述处理模块还设置为根据从所述第一进程接收的所述文件上传命令通过文件传输协议将所述指定文件发送至第二进程,其中,所述文件上传命令由所述第一进程对从所述客户端设备接收到的第二文件下载请求消息进行处理后得到的,所述指定文件被所述客户端设备从所述第二进程中下载至所述客户端设备中。
  14. 一种文件处理装置,应用于客户端设备,所述装置包括:
    发送模块,设置为通过第一进程将控制信令发送给网元设备;
    接收模块,设置为接收所述网元设备的反馈结果,其中,所述反馈结果为所述网元设备根据所述控制信令对指定文件进行处理后得到的。
PCT/CN2016/073207 2015-06-26 2016-02-02 文件处理方法及装置 WO2016206381A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510363244.0 2015-06-26
CN201510363244.0A CN107707581A (zh) 2015-06-26 2015-06-26 文件处理方法及装置

Publications (1)

Publication Number Publication Date
WO2016206381A1 true WO2016206381A1 (zh) 2016-12-29

Family

ID=57584608

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073207 WO2016206381A1 (zh) 2015-06-26 2016-02-02 文件处理方法及装置

Country Status (2)

Country Link
CN (1) CN107707581A (zh)
WO (1) WO2016206381A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468454B (zh) * 2020-11-11 2023-06-06 许继集团有限公司 一种远程文件管理系统及其远程文件管理方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1426209A (zh) * 2001-12-12 2003-06-25 深圳市中兴通讯股份有限公司上海第二研究所 一种远程文件传输方法
CN101883108A (zh) * 2010-06-29 2010-11-10 中兴通讯股份有限公司 动态认证的文件传输方法及系统
CN102137101A (zh) * 2011-03-04 2011-07-27 中山中珩数字科技有限公司 一种基于SCTP的嵌入式Linux系统数据传输的方法及系统
US20120150939A1 (en) * 2010-12-08 2012-06-14 At&T Intellectual Property I, L.P. Extending Legacy Scripting Languages with Graphical References
CN102647465A (zh) * 2012-03-30 2012-08-22 杭州华三通信技术有限公司 应用于堆叠系统中的ftp数据传输方法和装置
CN103457761A (zh) * 2013-07-17 2013-12-18 国家电网公司 一种跨平台命令行配置接口的实现方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7412701B1 (en) * 2002-04-22 2008-08-12 Cisco Technology, Inc. Method for network management using a virtual machine in a network device
CN101465872B (zh) * 2007-12-17 2013-01-30 新奥特(北京)视频技术有限公司 一种文件传输和管理的方法
CN101729295B (zh) * 2009-12-02 2012-01-11 北京东土科技股份有限公司 一种日志功能的实现方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1426209A (zh) * 2001-12-12 2003-06-25 深圳市中兴通讯股份有限公司上海第二研究所 一种远程文件传输方法
CN101883108A (zh) * 2010-06-29 2010-11-10 中兴通讯股份有限公司 动态认证的文件传输方法及系统
US20120150939A1 (en) * 2010-12-08 2012-06-14 At&T Intellectual Property I, L.P. Extending Legacy Scripting Languages with Graphical References
CN102137101A (zh) * 2011-03-04 2011-07-27 中山中珩数字科技有限公司 一种基于SCTP的嵌入式Linux系统数据传输的方法及系统
CN102647465A (zh) * 2012-03-30 2012-08-22 杭州华三通信技术有限公司 应用于堆叠系统中的ftp数据传输方法和装置
CN103457761A (zh) * 2013-07-17 2013-12-18 国家电网公司 一种跨平台命令行配置接口的实现方法

Also Published As

Publication number Publication date
CN107707581A (zh) 2018-02-16

Similar Documents

Publication Publication Date Title
CN108713309B (zh) Sd-wan系统、sd-wan系统的使用方法及相关装置
JP3782981B2 (ja) セッション中継システム、クライアント端末、セッション中継方法、リモートアクセス方法、セッション中継プログラム及びクライアントプログラム
US8588179B2 (en) Communication service handover system, communication device and communication service handover method
CN113824723B (zh) 一种应用于音视频数据传输的端到端系统解决方法
JP6983218B2 (ja) データグラムベースのトランスポート層を介したカプセル化メディアトラフィックの効率的転送
JP2016506193A (ja) ソフトウェア定義ネットワークにおける制御方法、制御装置およびプロセッサ
US20180198870A1 (en) Information processing apparatus, method for controlling the same, non-transitory computer-readable storage medium, and information processing system
CN112187532A (zh) 一种节点管控方法及系统
WO2021031465A1 (zh) 一种基于sd-wan的设备认证方法及系统
CN111064742B (zh) 一种基于网络代理实现内网访问的方法、装置及相关设备
JP2018121182A (ja) 情報処理装置、その制御方法、及び、プログラム
US20170195471A1 (en) Sharing a single external accessory connection of a mobile device across multiple application programs
CN110995829A (zh) 实例调用方法、装置及计算机存储介质
JP5327896B2 (ja) 無線lanアクセスポイントおよび無線端末の接続維持方法
US7975005B2 (en) Using a proxy to redirect downloads
WO2016206381A1 (zh) 文件处理方法及装置
CN105208072B (zh) 虚拟交换机的远程控制方法及装置
JP2011160286A (ja) 呼制御サーバ、中継サーバ、vpn装置、vpn通信システム、vpnネットワーキング方法、プログラム、及び記憶媒体
CN112689016B (zh) 智能设备控制方法、设备和存储介质
WO2022042545A1 (zh) Tsn工业应用服务器、客户端、系统、服务方法及储存介质
US20140189847A1 (en) Remote vpn provisioning of an endpoint
CN105099746A (zh) Shell执行方法及装置
KR101730404B1 (ko) 네트워크 경로를 관리하는 방법 및 이를 수행하는 네트워크 엔티티
US20230143067A1 (en) Cross-LAN Communication and Group Member Contact Synchronization
CN105471594B (zh) 管理资源的方法和设备

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: 16813497

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: 16813497

Country of ref document: EP

Kind code of ref document: A1