Movatterモバイル変換


[0]ホーム

URL:


CN101035025A - Network device management method and system - Google Patents

Network device management method and system
Download PDF

Info

Publication number
CN101035025A
CN101035025ACNA2007100906800ACN200710090680ACN101035025ACN 101035025 ACN101035025 ACN 101035025ACN A2007100906800 ACNA2007100906800 ACN A2007100906800ACN 200710090680 ACN200710090680 ACN 200710090680ACN 101035025 ACN101035025 ACN 101035025A
Authority
CN
China
Prior art keywords
script
client
request
server
script file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007100906800A
Other languages
Chinese (zh)
Other versions
CN100466556C (en
Inventor
李欢
孙鹏飞
蔡志康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Priority to CNB2007100906800ApriorityCriticalpatent/CN100466556C/en
Publication of CN101035025ApublicationCriticalpatent/CN101035025A/en
Application grantedgrantedCritical
Publication of CN100466556CpublicationCriticalpatent/CN100466556C/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明属于网络技术领域,提供了一种网络设备管理的方法和系统,该方法为:客户端登录服务器端,获取服务器端保存的脚本文件,并发送处理所述脚本文件的请求给服务器端,服务器端对所述脚本文件进行处理,当完成所述脚本文件的处理时,向所述客户端返回处理结果,客户端接收并显示所述服务器端返回的处理结果。通过本发明,可以远程维护网络设备,提高了网络设备维护的效率;并且使网络设备的维护系统实现安全的控制措施。

Figure 200710090680

The invention belongs to the field of network technology, and provides a method and system for network device management. The method is as follows: a client logs in to a server, obtains a script file saved by the server, and sends a request for processing the script file to the server, The server processes the script file, and returns a processing result to the client when the processing of the script file is completed, and the client receives and displays the processing result returned by the server. Through the present invention, the network equipment can be maintained remotely, which improves the maintenance efficiency of the network equipment; and enables the maintenance system of the network equipment to realize safe control measures.

Figure 200710090680

Description

Translated fromChinese
一种网络设备管理的方法和系统Method and system for network device management

技术领域technical field

本发明涉及网络技术领域,尤其涉及一种网络设备管理的方法和系统。The present invention relates to the field of network technology, in particular to a method and system for managing network equipment.

背景技术Background technique

随着网络的普及和发展,不管是企业网还是城域网,规模都越来越大,网络设备也越来越多,因此给我们的网络设备的维护和管理带来更大的挑战。对于工作人员来说,需要随时掌握网络内任何设备的增减与变动,为防范不被授权的用户擅自使用网络资源,以及用户随意破坏网络系统的安全,要随时做好安全措施,如合法的设备存取控制与加密等。并且当故障发生时,管理人员得重设或改变网络设备的参数,维持网络的正常运作,但是采用人工设置网络设备运行最佳参数时,当话务量突发增长时,如果不对设备的对应参数做及时调整,则可能导致整个通信网络瘫痪,造成严重通信质量问题。With the popularization and development of the network, whether it is an enterprise network or a metropolitan area network, the scale is getting bigger and bigger, and there are more and more network devices, which brings greater challenges to the maintenance and management of our network devices. For the staff, it is necessary to know the increase, decrease and change of any equipment in the network at any time. In order to prevent unauthorized users from using network resources without authorization, and users from destroying the security of the network system at will, security measures must be taken at any time, such as legal Device access control and encryption, etc. And when a fault occurs, the management personnel have to reset or change the parameters of the network equipment to maintain the normal operation of the network. If the parameters are adjusted in time, the entire communication network may be paralyzed, resulting in serious communication quality problems.

现有技术中,采用批命令下发的方式,例如,当需要下发维护命令给网络设备时,不是根据当前网络设备的状态下发维护命令,而是对所有的设备下发相同的维护命令,接收到维护命令的设备依次执行该维护命令,在执行该维护命令的过程中,如果某网络设备的执行结果对后续维护命令的执行有影响,并且该网络设备在执行维护命令的过程中出现问题,由于不能及时反馈,其他网络设备会继续执行该维护命令。In the prior art, the method of issuing batch commands is adopted. For example, when a maintenance command needs to be issued to a network device, the maintenance command is not issued according to the status of the current network device, but the same maintenance command is issued to all devices , the device that receives the maintenance command executes the maintenance command sequentially. During the execution of the maintenance command, if the execution result of a certain network device affects the execution of the subsequent maintenance command, and the network device appears during the execution of the maintenance command. Due to the failure to respond in time, other network devices will continue to execute the maintenance command.

在实现本发明过程中,发明人发现现有技术中至少存在如下问题:采用该网络设备维护的方法,每次只能发送一组固定的维护命令,无法根据当前网络设备的状态来实现维护命令的自动调整和下发;并且没有有效的手段来保证下发的维护命令的正确性,只能通过人工检查维护命令的正确性,当某一条命令的执行结果对后续的执行结果造成影响时,而它又执行失败后,如果不能及时停止或进行相应的处理,则导致执行过程的浪费。In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: with this network equipment maintenance method, only a set of fixed maintenance commands can be sent each time, and maintenance commands cannot be implemented according to the current state of the network equipment and there is no effective means to ensure the correctness of the issued maintenance commands. The correctness of the maintenance commands can only be checked manually. When the execution result of a certain command affects the subsequent execution results, And after it fails to execute, if it cannot stop in time or perform corresponding processing, it will lead to waste of the execution process.

发明内容Contents of the invention

本发明实施例要解决的技术问题是提供一种网络设备管理的方法和系统,能够实现远程登录进行网络设备的维护,提高了网络设备维护的效率。The technical problem to be solved by the embodiments of the present invention is to provide a method and system for network device management, which can realize remote login for network device maintenance, and improve the efficiency of network device maintenance.

为解决上述技术问题,本发明实施例的目的是通过以下技术方案实现的:In order to solve the above technical problems, the purpose of the embodiments of the present invention is achieved through the following technical solutions:

本发明实施例一方面提供了一种网络设备管理的方法,包括:On the one hand, an embodiment of the present invention provides a method for network device management, including:

客户端登录服务器端,获取服务器端保存的脚本文件,并发送处理所述脚本文件的请求给服务器端;The client logs in to the server, obtains the script file saved by the server, and sends a request for processing the script file to the server;

服务器端对接收的所述请求进行处理,当完成对所述脚本文件的处理时,向所述客户端返回处理结果;The server side processes the received request, and returns a processing result to the client when the processing of the script file is completed;

客户端接收并显示所述服务器端返回的处理结果。The client receives and displays the processing result returned by the server.

本发明实施例另一方面提供了一种网络设备管理的系统,包括:脚本客户端、脚本服务器端、脚本解释器;Another aspect of the embodiment of the present invention provides a network device management system, including: a script client, a script server, and a script interpreter;

脚本客户端,用于从脚本服务器端获取脚本文件,并向所述脚本服务器端发送处理所述脚本文件的请求,当从所述脚本服务器端接收到所述请求的处理结果时,显示所处理结果;The script client is used to obtain the script file from the script server, and send a request for processing the script file to the script server, and when the processing result of the request is received from the script server, display the processed result;

脚本服务器端,用于接收所述请求并调用所述脚本解释器对所述脚本文件进行处理,完成处理后,向所述脚本客户端返回处理结果;The script server end is used to receive the request and call the script interpreter to process the script file, and return the processing result to the script client after the processing is completed;

脚本解释器,用于针对所述脚本客户端的请求对所述脚本文件进行处理。The script interpreter is used for processing the script file according to the request of the script client.

以上技术方案可以看出,由于客户端登录服务器端后,获取服务器端保存的脚本文件,可以通过服务器端对该脚本文件运行和调试,服务器端完成运行和调试后,向客户端及时返回运行和调试的结果,客户端显示运行和调试的结果,当运行的过程中出现异常情况时,客户端也能及时地知道,及时的进行网络设备的维护,因此可以实现远程登录并完成对网络设备的维护工作,提高了网络设备维护的效率,实现了网络设备管理的智能化。It can be seen from the above technical solutions that after the client logs in to the server and obtains the script file saved on the server, the script file can be run and debugged through the server. After the server completes the running and debugging, it returns the running and As a result of debugging, the client displays the results of running and debugging. When an abnormal situation occurs during the running process, the client can also know in time and maintain the network equipment in time, so it can realize remote login and complete the network equipment maintenance. The maintenance work improves the efficiency of network equipment maintenance and realizes the intelligent management of network equipment.

附图说明Description of drawings

图1为本发明实施例提供的流程图;Fig. 1 is the flowchart provided by the embodiment of the present invention;

图2为本发明实施例一提供的系统框图;FIG. 2 is a system block diagram provided by Embodiment 1 of the present invention;

图3为本发明实施例二提供的系统框图;FIG. 3 is a system block diagram provided by Embodiment 2 of the present invention;

图4为本发明实施例三提供的系统框图;FIG. 4 is a system block diagram provided by Embodiment 3 of the present invention;

图5为本发明实施例四提供的系统框图。FIG. 5 is a system block diagram provided by Embodiment 4 of the present invention.

具体实施方式Detailed ways

本发明实施例提供了一种网络设备管理的方法和系统,为使本发明的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本发明进一步详细说明。Embodiments of the present invention provide a method and system for network device management. In order to make the purpose, technical solution and advantages of the present invention clearer, the following describes the present invention in further detail with reference to the accompanying drawings and examples.

首先,对本发明实施例提供的一种网络设备管理的方法进行总体描述:First, a general description of a network device management method provided by an embodiment of the present invention is given:

参见图1,为本发明实施例提供的流程图:Referring to Fig. 1, the flowchart provided for the embodiment of the present invention:

11):客户端登录服务器端,获取服务器端保存的脚本文件,并发送处理所述脚本文件的请求给服务器端;11): The client logs in to the server, obtains the script file saved by the server, and sends a request for processing the script file to the server;

12):服务器端对所述脚本文件进行处理,当完成所述脚本文件的处理时,向所述客户端返回处理结果;12): The server side processes the script file, and returns a processing result to the client when the processing of the script file is completed;

13):客户端接收并显示所述服务器端返回的处理结果。13): The client receives and displays the processing result returned by the server.

其中,所述处理所述脚本文件的请求包括:运行所述脚本文件;或者调试所述脚本文件。Wherein, the request for processing the script file includes: running the script file; or debugging the script file.

下面分别列举实施例对客户端向服务器端发送处理脚本文件的请求为运行所述脚本文件;或者调试所述脚本文件,为例进行详细描述:The following examples respectively enumerate the request that the client sends the processing script file to the server to run the script file; or debug the script file as an example to describe in detail:

实施例一,当客户端向服务器端发送处理脚本文件的请求为运行所述脚本文件,或者调试所述脚本文件时,所采用的流程如下:Embodiment 1, when the client sends a request for processing the script file to the server to run the script file or debug the script file, the process adopted is as follows:

101:客户端登录服务器端,获取服务器端保存的脚本文件,并发送运行或者调试所述脚本文件的请求给服务器端;101: The client logs in to the server, obtains the script file saved on the server, and sends a request to run or debug the script file to the server;

102:服务器端对所述脚本文件运行或者调试,对于一些较耗时的操作,为避免等待时间过长导致客户端被挂起无法响应的问题,可以采用异步方式来实现,例如,当客户端的请求到达服务器端后,服务器端立即返回响应消息,但该返回的响应消息中不包含对该请求的处理结果,当服务器端对上述脚本文件处理完毕后,返回对所述请求的处理结果;102: The server runs or debugs the script file. For some time-consuming operations, in order to avoid the problem that the client is suspended and unable to respond due to long waiting time, it can be implemented in an asynchronous manner. For example, when the client After the request arrives at the server, the server immediately returns a response message, but the returned response message does not include the processing result of the request. When the server finishes processing the above script file, it returns the processing result of the request;

其中,所述调试包括对脚本设置和清除脚本中的断点,例如,客户端调用服务器端的接口打开一个服务器端存在的脚本文件,客户端用户通过鼠标点击或者快捷键的方式设置断点到脚本的具体位置,客户端显示设置的断点,并调用服务器端的断点设置服务器端的接口,服务器端响应断点设置操作,设置对应的断点到相应的文件中,服务器端的接口返回操作的结果给客户端。Wherein, the debugging includes setting and clearing breakpoints in the script. For example, the client calls the interface of the server to open a script file that exists on the server, and the client user sets the breakpoint to the script by clicking the mouse or using a shortcut key. The specific location, the client displays the set breakpoint, and calls the server-side breakpoint to set the server-side interface, the server responds to the breakpoint setting operation, sets the corresponding breakpoint to the corresponding file, and the server-side interface returns the operation result to client.

103:客户端接收到服务器端返回的处理结果时,显示该处理结果。103: When the client receives the processing result returned by the server, it displays the processing result.

其中,当服务器端运行的过程中接收到客户端发送的通知或出现严重异常情况时,服务器端会通过网络设备管理子系统根据上述通知来执行相应的操作,例如,发送邮件给维护人员,播打维护人员的电话,或者发送短消息给维护人员。Among them, when the server receives a notification sent by the client or a serious abnormal situation occurs during the operation of the server, the server will perform corresponding operations according to the above notification through the network device management subsystem, for example, send an email to the maintenance personnel, broadcast Call the maintenance personnel, or send a short message to the maintenance personnel.

该实施例中,客户端可以实现远程调用服务起端运行脚本文件,或者调试脚本文件。In this embodiment, the client can remotely call the server to run the script file or debug the script file.

实施例二,当客户端向服务器端发送处理脚本文件的请求为定时处理脚本文件的请求时,所采用的流程如下:Embodiment 2, when the request sent by the client to the server for processing the script file is a request for regularly processing the script file, the process adopted is as follows:

201:客户端登录服务器端,获取脚本服务器端保存的脚本文件,向服务器端发送定时运行脚本文件的请求;201: The client logs in to the server, obtains the script file saved by the script server, and sends a request to the server to run the script file at regular intervals;

202:当达到所述定时的时间时,服务器端自动运行所述脚本文件,运行完毕后,向客户端返回运行结果;202: When the predetermined time is reached, the server automatically runs the script file, and returns the running result to the client after the running is completed;

203:客户端接收并显示服务器端返回的运行结果。203: The client receives and displays the running result returned by the server.

该实施例与实施例一相比,客户端不仅可以远程调用服务器端运行脚本文件,而且可以使服务器端定时自动运行脚本文件,因此,更加智能,但是在运行的过程中,对于一些较耗时的操作,不能采用异步的方式。Compared with Embodiment 1, this embodiment can not only remotely call the server to run the script file, but also can make the server run the script file automatically at regular intervals. Therefore, it is more intelligent, but in the process of running, for some time-consuming The operation cannot be performed asynchronously.

实施例三,当执行完实施例二的过程后,还需要发送维护命令给与服务器端连接的网远时,所采用的流程如下:Embodiment 3, when it is necessary to send a maintenance command to the remote network connected to the server after executing the process of Embodiment 2, the process adopted is as follows:

301:客户端登录服务器端,获取脚本服务器端保存的脚本文件,向服务器端发送定时运行脚本文件的请求;301: The client logs in to the server, obtains the script file saved by the script server, and sends a request to the server to run the script file at regular intervals;

202:当达到所述定时的时间时,服务器端自动运行所述脚本文件,运行完毕后,向客户端返回运行结果;202: When the predetermined time is reached, the server automatically runs the script file, and returns the running result to the client after the running is completed;

303:客户端接收到服务器端返回的运行结果后时,显示该运行结果,根据显示的该运行结果,判断需要发送维护命令到网络设备或者网元时,通过服务器端向网络设备或网元发送维护命令;303: After the client receives the operation result returned by the server, it displays the operation result. According to the displayed operation result, when it is judged that a maintenance command needs to be sent to the network device or network element, the server sends it to the network device or network element. maintenance order;

304:网络设备或网元接收并执行所述维护命令后,向服务器端返回执行的结果;304: After receiving and executing the maintenance command, the network device or network element returns the execution result to the server;

305:服务器端获取并解析网元返回的执行的结果后发送到客户端,客户端接收并显示。305: The server acquires and parses the execution result returned by the network element and sends it to the client, and the client receives and displays it.

其中,服务器端向与其连接的网元发送维护命令,包括:服务器端同时向与其连接的不同的网元发送相同的维护命令,或者服务器端分别向与其连接的不同的网元发送不同的维护命令。Wherein, the server end sends maintenance commands to the network elements connected to it, including: the server end sends the same maintenance command to different network elements connected to it at the same time, or the server end sends different maintenance commands to different network elements connected to it respectively .

该实施例与实施例三相比,客户端通过显示网元执行维护命令后返回的结果,确定维护过程是否合理。Compared with Embodiment 3 in this embodiment, the client determines whether the maintenance process is reasonable by displaying the result returned after the network element executes the maintenance command.

实施例四:Embodiment four:

401:客户端通过身份认证登录服务器端,获取脚本服务器端保存的脚本文件,向服务器端发送定时运行所述脚本文件的请求;401: The client logs in to the server through identity authentication, obtains the script file saved by the script server, and sends a request to the server to run the script file at regular intervals;

402:当达到客所述定时的时间时,服务器端自动运行所述脚本文件,运行完毕后,向客户端返回运行结果;402: When the time specified by the customer is reached, the server automatically runs the script file, and returns the running result to the client after the running is completed;

403:客户端接收到服务器端返回的运行结果后时,显示该运行结果,根据显示的该运行结果,判断需要发送维护命令到网络设备或者网元时,通过服务器端向网络设备或网元发送维护命令;403: After the client receives the operation result returned by the server, it displays the operation result. According to the displayed operation result, when it is judged that a maintenance command needs to be sent to the network device or network element, the server sends it to the network device or network element. maintenance order;

404:服务器端通过客户端登录时的身份,确定该客户端进行维护命令下发的权限,例如,仅有一个用户具有进行维护命令下发的权限等,如果该客户端有维护命令下发的权限,服务器端向网络设备或者网元下发维护命令,网络设备或网元接收并执行所述维护命令后,向服务器端返回执行的结果;服务器端解析网元返回的结果后发送到客户端,客户端接收并显示,否则,服务器端向客户端返回该客户端没有操作权限的消息。404: The server determines the authority of the client to issue maintenance commands through the identity of the client when logging in. For example, only one user has the authority to issue maintenance commands. If the client has the authority to issue maintenance commands Authorization, the server sends a maintenance command to the network device or network element, and after the network device or network element receives and executes the maintenance command, it returns the execution result to the server; the server parses the result returned by the network element and sends it to the client , the client receives and displays it, otherwise, the server returns to the client a message that the client has no operation authority.

其中,客户端在本发明实施例所在系统中对网络设备或者网元的操作权限小于或等于现有的网络设备管理系统中对应用户的权限。Wherein, the operation authority of the client on the network device or network element in the system of the embodiment of the present invention is less than or equal to the authority of the corresponding user in the existing network device management system.

其中,所述脚本服务器端从所述脚本客户端接收到对脚本文件的处理请求,或者接收到对脚本文件的检查请求时,对脚本文件进行正确性的检查。Wherein, when the script server receives a script file processing request from the script client, or receives a script file check request, it checks the script file for correctness.

该实施例与实施例三相比,客户端在登陆的时候要通过身份认证,并且通过客户端的身份决定下发维护命令的权限,因此,实施的时候更安全Compared with Embodiment 3, this embodiment needs to pass identity authentication when logging in, and the authority to issue maintenance commands is determined by the identity of the client. Therefore, it is safer to implement

下面对本发明实施例提供的一种网络设备管理系统进行详细说明:A network device management system provided by an embodiment of the present invention is described in detail below:

参见图2,为本发明实施例一提供的一种网络设备管理系统框图,包括:脚本客户端21、脚本服务器端22、脚本解释器23;Referring to FIG. 2 , it is a block diagram of a network device management system provided by Embodiment 1 of the present invention, including: ascript client 21, ascript server 22, and ascript interpreter 23;

脚本客户端21,用于从脚本服务器端22获取脚本文件,并向所述脚本服务器端22发送处理所述脚本文件的请求,当从所述脚本服务器端22接收到所述请求的处理结果时,显示所述处理结果,例如,脚本客户端21由一个编辑界面和一个调试界面组成,其中编辑界面主要用来打开和显示需要运行或调试的脚本,也可以对脚本进行编辑,调试界面主要完成对脚本的执行和调试的显示;Thescript client 21 is used to obtain the script file from thescript server 22, and sends a request for processing the script file to thescript server 22, when the processing result of the request is received from thescript server 22 , displaying the processing result, for example, thescript client 21 is made up of an editing interface and a debugging interface, wherein the editing interface is mainly used to open and display the script that needs to be run or debugged, and the script can also be edited, and the debugging interface mainly completes Display of script execution and debugging;

脚本服务器端22,用于接收脚本客户端21发送的处理脚本的请求,调用脚本解释器23对所述脚本文件处理,并向所述脚本客户端21返回处理结果,例如,当脚本客户端21需要进行操作时,向脚本服务器端22发起请求,脚本服务器端22响应该请求,并根据请求类型调用脚本解释器23中对应的接口,并等待脚本解释器23的返回结果,当脚本解释器23返回结果时,将脚本解释器23返回的结果发送给脚本客户端21,对于一些比较耗时的操作,为避免等待时间过长导致脚本客户端21被挂起无法响应的问题,可以采用异步方式来实现,即,当脚本客户端21的请求到达脚本服务器22端后,脚本服务器22端立即返回响应消息,但该返回的响应消息中不包含对请求的处理结果,当请求处理完毕后,返回对请求的处理结果;Thescript server end 22 is used to receive the script processing request sent by thescript client 21, call thescript interpreter 23 to process the script file, and return the processing result to thescript client 21, for example, when thescript client 21 When needing to operate, initiate a request to thescript server end 22, thescript server end 22 responds to the request, and calls the corresponding interface in thescript interpreter 23 according to the request type, and waits for the return result of thescript interpreter 23, when thescript interpreter 23 When the result is returned, the result returned by thescript interpreter 23 is sent to thescript client 21. For some more time-consuming operations, in order to avoid the problem that thescript client 21 is suspended and unable to respond due to too long waiting time, an asynchronous method can be used To achieve, that is, when the request of thescript client 21 arrives at thescript server 22, thescript server 22 returns a response message immediately, but the returned response message does not include the processing result of the request. When the request is processed, it returns The result of processing the request;

脚本解释器23,用于针对所述脚本客户端的请求对所述脚本文件进行处理,例如,脚本客户端21调用脚本服务器端22的接口打开一个脚本服务器端22存在的脚本文件,脚本客户端21通过脚本服务器端22调用脚本解释器23获取当前脚本文件中的断点,设置和清除当前文件中的断点、单步运行,运行到断点或者运行到指定位置,获取并设置堆栈信息的接口。Script interpreter 23, is used for processing described script file at the request of described script client, for example,script client 21 calls the interface ofscript server end 22 to open a script file thatscript server end 22 exists,script client 21 Call thescript interpreter 23 through thescript server side 22 to obtain the breakpoint in the current script file, set and clear the breakpoint in the current file, single-step operation, run to the breakpoint or run to the specified position, obtain and set the interface of the stack information .

其中,当脚本服务器端22运行的过程中接收到客户端指定的通知语句或出现严重异常情况时,脚本服务器端22会通过网络设备管理子系统来完成指定的通知,例如,发送邮件给维护人员,播打维护人员的电话,或者发送短消息给维护人员。Wherein, when thescript server 22 receives the notification statement specified by the client or when a serious abnormal situation occurs during the operation of the script server, thescript server 22 will complete the specified notification through the network device management subsystem, for example, send an email to the maintenance personnel , dial the number of the maintenance personnel, or send a short message to the maintenance personnel.

参见图3,为本发明实施例二提供的一种网络设备管理系统框图,包括:脚本客户端21、脚本服务器端22、脚本解释器23和定时单元24;Referring to FIG. 3 , it is a block diagram of a network device management system provided by Embodiment 2 of the present invention, including: ascript client 21, ascript server 22, ascript interpreter 23 and atiming unit 24;

脚本客户端21,用于从脚本服务器端22获取脚本文件,并向所述脚本服务器端22发送处理所述脚本文件的请求,当从所述脚本服务器端22接收到所述请求的处理结果时,显示所述处理结果;Thescript client 21 is used to obtain the script file from thescript server 22, and sends a request for processing the script file to thescript server 22, when the processing result of the request is received from thescript server 22 , displaying the processing result;

脚本服务器端22,用于接收脚本客户端21发送的处理脚本的请求时,调用脚本解释器23对所述脚本文件处理,并向所述脚本客户端21返回处理结果;Script server end 22, when being used for receiving the request of processing script thatscript client 21 sends, callsscript interpreter 23 to described script file processing, and returns processing result to describedscript client 21;

脚本解释器23,用于针对所述脚本客户端的请求对所述脚本文件进行处理,例如,脚本客户端21调用脚本服务器端22的接口打开一个脚本服务器端22存在的脚本文件,脚本客户端21通过脚本服务器端22调用脚本解释器23获取当前脚本文件中的断点,设置和清除当前文件中的断点、单步运行,运行到断点或者运行到指定位置,获取并设置堆栈信息的接口;Script interpreter 23, is used for processing described script file at the request of described script client, for example,script client 21 calls the interface ofscript server end 22 to open a script file thatscript server end 22 exists,script client 21 Call thescript interpreter 23 through thescript server side 22 to obtain the breakpoint in the current script file, set and clear the breakpoint in the current file, single-step operation, run to the breakpoint or run to the specified position, obtain and set the interface of the stack information ;

定时单元24,用于当处理所述脚本文件的请求,为定时处理所述脚本文件的请求时,从所述脚本客户端21接收定时处理所述脚本文件的请求,当达到定时的时间时,通知所述脚本解释器23对所述脚本文件进行处理。Thetiming unit 24 is configured to receive a request from thescript client 21 to process the script file regularly when processing the request for the script file, and when the time for timing is reached, Notify thescript interpreter 23 to process the script file.

其中,当脚本服务器端22运行的过程中接收到客户端指定的通知语句或出现严重异常情况时,脚本服务器端22会通过网络设备管理子系统根据上述通知来完成相应的操作,例如,发送邮件给维护人员,播打维护人员的电话,或者发送短消息给维护人员。Wherein, when thescript server end 22 receives the notification statement specified by the client or when a serious abnormal situation occurs during the operation of the script server end, thescript server end 22 will complete the corresponding operation according to the above notification through the network device management subsystem, for example, send an email Call the maintenance personnel, dial the telephone number of the maintenance personnel, or send a short message to the maintenance personnel.

参见图4,为本发明实施例三提供的一种网络设备管理系统框图,包括:脚本客户端21、脚本服务器端22、脚本解释器23、定时单元24和脚本扩展单元25;Referring to FIG. 4 , it is a block diagram of a network device management system provided by Embodiment 3 of the present invention, including: ascript client 21, ascript server 22, ascript interpreter 23, atiming unit 24, and ascript extension unit 25;

脚本客户端21,用于从脚本服务器端22获取脚本文件,并向所述脚本服务器端22发送处理所述脚本文件的请求,当从所述脚本服务器端22接收到所述请求的处理结果时,显示所述处理结果;Thescript client 21 is used to obtain the script file from thescript server 22, and sends a request for processing the script file to thescript server 22, when the processing result of the request is received from thescript server 22 , displaying the processing result;

脚本服务器端22,用于接收脚本客户端21发送的处理脚本的请求时,调用脚本解释器23对所述脚本文件处理,并向所述脚本客户端21返回处理结果;Script server end 22, when being used for receiving the request of processing script thatscript client 21 sends, callsscript interpreter 23 to described script file processing, and returns processing result to describedscript client 21;

脚本解释器23,用于针对所述脚本客户端的请求对所述脚本文件进行处理,例如,脚本客户端21调用脚本服务器端22的接口打开一个脚本服务器端22存在的脚本文件,脚本客户端21通过脚本服务器端22调用脚本解释器23获取当前脚本文件中的断点,设置和清除当前文件中的断点、单步运行,运行到断点或者运行到指定位置,获取并设置堆栈信息的接口;Script interpreter 23, is used for processing described script file at the request of described script client, for example,script client 21 calls the interface ofscript server end 22 to open a script file thatscript server end 22 exists,script client 21 Call thescript interpreter 23 through thescript server side 22 to obtain the breakpoint in the current script file, set and clear the breakpoint in the current file, single-step operation, run to the breakpoint or run to the specified position, obtain and set the interface of the stack information ;

定时单元24,用于当处理所述脚本文件的请求,为定时处理所述脚本文件的请求时,从所述脚本客户端21接收定时处理所述脚本文件的请求,当达到定时的时间时,通知所述脚本解释器23对所述脚本文件进行处理。Thetiming unit 24 is configured to receive a request from thescript client 21 to process the script file regularly when processing the request for the script file, and when the time for timing is reached, Notify thescript interpreter 23 to process the script file.

脚本扩展单元25,用于接收到向与所述脚本服务器22连接的网络设备或网元发送维护命令的请求时,发送维护命令到网络设备或网元,获取并解析网络设备或网元返回的结果,并通过脚本解释器23将网络设备或网元返回的结果发送到脚本客户端21。例如,脚本扩展单元25通过维护命令到网元并获取网元的返回值,解析网元返回的数据以获取特定的参数值和特定的统计结果,将获取的特定的参数和特定的统计结果格式化为特定的报表。Thescript extension unit 25 is configured to send a maintenance command to the network device or network element when receiving a request to send a maintenance command to the network device or network element connected to thescript server 22, and obtain and analyze the returned information from the network device or network element. result, and send the result returned by the network device or network element to thescript client 21 through thescript interpreter 23 . For example, thescript extension unit 25 sends the maintenance command to the network element and obtains the return value of the network element, parses the data returned by the network element to obtain specific parameter values and specific statistical results, and will obtain specific parameters and specific statistical result formats into specific reports.

其中,脚本扩展单元25对于不同网络设备或者网元下发的维护命令相同时,向不同的网络设备或者网元同时发送该维护命令。Wherein, when the maintenance commands issued by different network devices or network elements are the same, thescript extension unit 25 sends the maintenance commands to different network devices or network elements at the same time.

其中,当脚本服务器端22运行的过程中接收到客户端指定的通知语句或出现严重异常情况时,脚本服务器端22会通过网络设备管理子系统根据上述通知来完成相应的操作,例如,发送邮件给维护人员,播打维护人员的电话,或者发送短消息给维护人员。Wherein, when thescript server end 22 receives the notification statement specified by the client or when a serious abnormal situation occurs during the operation of the script server end, thescript server end 22 will complete the corresponding operation according to the above notification through the network device management subsystem, for example, send an email Call the maintenance personnel, dial the telephone number of the maintenance personnel, or send a short message to the maintenance personnel.

参见图5,为本发明实施例四提供的一种网络设备管理系统框图,包括:脚本客户端21、脚本服务器端22、脚本解释器23、定时单元24、脚本扩展单元25和限制单元26;Referring to FIG. 5 , it is a block diagram of a network device management system provided by Embodiment 4 of the present invention, including: ascript client 21, ascript server 22, ascript interpreter 23, atiming unit 24, ascript extension unit 25 and arestriction unit 26;

脚本客户端21,用于从脚本服务器端22获取脚本文件,并向所述脚本服务器端22发送处理所述脚本文件的请求,当从所述脚本服务器端22接收到所述请求的处理结果时,显示所述处理结果;Thescript client 21 is used to obtain the script file from thescript server 22, and sends a request for processing the script file to thescript server 22, when the processing result of the request is received from thescript server 22 , displaying the processing result;

脚本服务器端22,用于接收脚本客户端21发送的处理脚本的请求时,调用脚本解释器23对所述脚本文件处理,并向所述脚本客户端21返回处理结果;Script server end 22, when being used for receiving the request of processing script thatscript client 21 sends, callsscript interpreter 23 to described script file processing, and returns processing result to describedscript client 21;

脚本解释器23,用于针对所述脚本客户端的请求对所述脚本文件进行处理,例如,脚本客户端21调用脚本服务器端22的接口打开一个脚本服务器端22存在的脚本文件,脚本客户端21通过脚本服务器端22调用脚本解释器23获取当前脚本文件中的断点,设置和清除当前文件中的断点、单步运行,运行到断点或者运行到指定位置,获取并设置堆栈信息的接口;Script interpreter 23, is used for processing described script file at the request of described script client, for example,script client 21 calls the interface ofscript server end 22 to open a script file thatscript server end 22 exists,script client 21 Call thescript interpreter 23 through thescript server side 22 to obtain the breakpoint in the current script file, set and clear the breakpoint in the current file, single-step operation, run to the breakpoint or run to the specified position, obtain and set the interface of the stack information ;

定时单元24,用于当处理所述脚本文件的请求,为定时处理所述脚本文件的请求时,从所述脚本客户端21接收定时处理所述脚本文件的请求,当达到定时的时间时,通知所述脚本解释器23对所述脚本文件进行处理。Thetiming unit 24 is configured to receive a request from thescript client 21 to process the script file regularly when processing the request for the script file, and when the time for timing is reached, Notify thescript interpreter 23 to process the script file.

脚本扩展单元25,用于接收到向与脚本服务器22连接的网络设备或网元发送维护命令的请求时,发送维护命令到网络设备或网元,获取并解析网络设备或网元返回的结果,并通过脚本解释器23将网络设备或网元返回的结果发送到脚本客户端21。例如,脚本扩展单元25通过维护命令到网元并获取网元的返回值,解析网元返回的数据以获取特定的参数值和特定的统计结果,将获取的特定的参数和特定的统计结果格式化为特定的报表。Thescript extension unit 25 is configured to send a maintenance command to the network device or network element when receiving a request to send a maintenance command to the network device or network element connected to thescript server 22, and obtain and parse the result returned by the network device or network element, And send the result returned by the network device or network element to thescript client 21 through thescript interpreter 23 . For example, thescript extension unit 25 sends the maintenance command to the network element and obtains the return value of the network element, parses the data returned by the network element to obtain specific parameter values and specific statistical results, and will obtain specific parameters and specific statistical result formats into specific reports.

限制单元26,用于对所述脚本客户端21进行身份认证,并且通过该身份确定脚本客户端21的权限,例如,脚本客户端21的用户仅有一个具有进行下发维护命令的权限,并且,用户在该系统中对网络设备的操作权限小于或等于现有的网络设备管理系统。Therestriction unit 26 is configured to perform identity authentication on thescript client 21, and determine the authority of thescript client 21 through the identity, for example, only one user of thescript client 21 has the authority to issue maintenance commands, and , the user's authority to operate network equipment in this system is less than or equal to the existing network equipment management system.

其中,该实施例提供的系统可以进一步包括:检查单元27,用于从脚本客户端21接收到对脚本文件的处理请求,或者接收到对脚本文件的检查请求时,对脚本文件进行正确性的检查。Wherein, the system provided by this embodiment may further include: a checkingunit 27, configured to check the correctness of the script file when receiving a processing request for the script file from thescript client 21, or when receiving a check request for the script file. examine.

其中,当脚本服务器端22运行的过程中接收到客户端指定的通知语句或出现严重异常情况时,脚本服务器端22会通过网络设备管理子系统根据上述通知来完成相应的操作,例如,发送邮件给维护人员,播打维护人员的电话,或者发送短消息给维护人员。Wherein, when thescript server end 22 receives the notification statement specified by the client or when a serious abnormal situation occurs during the operation of the script server end, thescript server end 22 will complete the corresponding operation according to the above notification through the network device management subsystem, for example, send an email Call the maintenance personnel, dial the telephone number of the maintenance personnel, or send a short message to the maintenance personnel.

其中,脚本扩展单元25对于不同网络设备或者网元下发的维护命令相同时,可以向不同的网络设备或者网元同时发送该维护命令。Wherein, when the maintenance commands issued by different network devices or network elements are the same, thescript extension unit 25 may send the maintenance commands to different network devices or network elements at the same time.

其中,所述脚本客户端21可以置于网络设备管理的客户端中,脚本服务器端22、脚本解释器23、定时单元24、脚本扩展单元25和限制单元26可以置于网络设备管理的服务器端。Wherein, thescript client 21 can be placed in the client of network device management, and thescript server 22,script interpreter 23, timingunit 24,script extension unit 25 andrestriction unit 26 can be placed in the server of network device management .

以上实施例可以看出,由于客户端可以远程登录服务器端,获取服务器端保存的脚本文件,调用服务器端处理该脚本文件后显示出来的结果,因此可以远程登录并管理需要维护的网络设备,提高了网络设备维护的效率;并且能够对脚本文件进行正确性检查,让客户端及时了解到脚本文件的情况;通过对客户端进行身份认证,使网络设备的维护系统实现安全的控制措施。As can be seen from the above embodiments, since the client can remotely log in to the server, obtain the script file saved by the server, and call the server to process the script file and display the results, it can remotely log in and manage the network equipment that needs to be maintained, improving The efficiency of network equipment maintenance is improved; and the correctness of script files can be checked, so that the client can know the situation of the script file in time; through the identity authentication of the client, the maintenance system of network equipment can implement security control measures.

以上对本发明实施例提供的一种网络设备管理的方法和系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method and system for network device management provided by the embodiments of the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The descriptions of the above embodiments are only used to help understand the present invention. The method of the invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood To limit the present invention.

Claims (14)

CNB2007100906800A2007-03-302007-03-30 Method and system for network device managementExpired - Fee RelatedCN100466556C (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CNB2007100906800ACN100466556C (en)2007-03-302007-03-30 Method and system for network device management

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CNB2007100906800ACN100466556C (en)2007-03-302007-03-30 Method and system for network device management

Publications (2)

Publication NumberPublication Date
CN101035025Atrue CN101035025A (en)2007-09-12
CN100466556C CN100466556C (en)2009-03-04

Family

ID=38731344

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CNB2007100906800AExpired - Fee RelatedCN100466556C (en)2007-03-302007-03-30 Method and system for network device management

Country Status (1)

CountryLink
CN (1)CN100466556C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2009132529A1 (en)*2008-04-292009-11-05华为技术有限公司Method and device for validating the web form data
CN102622094A (en)*2010-12-312012-08-01宏正自动科技股份有限公司Remote management system, multi-computer switcher and remote management method
CN103810238A (en)*2013-11-202014-05-21国家电网公司Large-data-volume Excel file exporting method based on asynchronous processing
CN105629924A (en)*2014-11-212016-06-01费希尔-罗斯蒙特系统公司Process plant network with secured external access
CN106598830A (en)*2015-10-162017-04-26阿里巴巴集团控股有限公司Mobile terminal webpage script debugging method and system
CN106911784A (en)*2017-03-022017-06-30北京奇鱼时代科技有限公司A kind of method and apparatus for performing asynchronous event
CN107992424A (en)*2017-12-152018-05-04平安科技(深圳)有限公司Automatic test analysis method, application server and computer-readable recording medium
CN109597618A (en)*2018-10-232019-04-09深圳微迅信息科技有限公司Program developing method, device, computer equipment and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP3763816B2 (en)*2000-09-012006-04-05ノキア コーポレイション Network architecture and method for service script execution and management
CN1529849B (en)*2001-02-022011-05-04开放电视公司Method and apparatus for compiling of interpretative language for interactive television
CN1175618C (en)*2001-04-132004-11-10数位联合电信股份有限公司Method for preventing unwelcome account from entering website
CN1256669C (en)*2002-12-272006-05-17联想(北京)有限公司Heterogeneous machine group management system and information processing method
CN100359466C (en)*2004-08-272008-01-02华为技术有限公司 Tool Command Language Integrated Development System
CN1756191B (en)*2004-09-302010-04-28华为技术有限公司 How to start the network element management system
CN1809066A (en)*2005-01-172006-07-26佳能株式会社Information processing apparatus, information processing method
CN100407138C (en)*2005-08-042008-07-30腾讯科技(深圳)有限公司 Architecture and Implementation of a Dynamic User Interface Based on Brew
CN100396026C (en)*2005-12-282008-06-18华为技术有限公司 System and method for performing management information base-based testing on equipment
CN100502309C (en)*2006-09-122009-06-17成都迈普产业集团有限公司Embedded Web network management system and its interaction method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101572696B (en)*2008-04-292012-07-18华为技术有限公司Method and device for validating data on webpage form
WO2009132529A1 (en)*2008-04-292009-11-05华为技术有限公司Method and device for validating the web form data
CN102622094A (en)*2010-12-312012-08-01宏正自动科技股份有限公司Remote management system, multi-computer switcher and remote management method
CN102622094B (en)*2010-12-312016-05-18宏正自动科技股份有限公司Remote management system, multi-computer switcher and remote management method
CN103810238A (en)*2013-11-202014-05-21国家电网公司Large-data-volume Excel file exporting method based on asynchronous processing
CN105629924B (en)*2014-11-212021-05-04费希尔-罗斯蒙特系统公司 Process plant network with protected external access
CN105629924A (en)*2014-11-212016-06-01费希尔-罗斯蒙特系统公司Process plant network with secured external access
US11073805B2 (en)2014-11-212021-07-27Fisher-Rosemount Systems, Inc.Process plant network with secured external access
CN106598830A (en)*2015-10-162017-04-26阿里巴巴集团控股有限公司Mobile terminal webpage script debugging method and system
CN106598830B (en)*2015-10-162019-06-07阿里巴巴集团控股有限公司The page script adjustment method and system of mobile terminal
CN106911784A (en)*2017-03-022017-06-30北京奇鱼时代科技有限公司A kind of method and apparatus for performing asynchronous event
CN107992424A (en)*2017-12-152018-05-04平安科技(深圳)有限公司Automatic test analysis method, application server and computer-readable recording medium
CN109597618A (en)*2018-10-232019-04-09深圳微迅信息科技有限公司Program developing method, device, computer equipment and storage medium

Also Published As

Publication numberPublication date
CN100466556C (en)2009-03-04

Similar Documents

PublicationPublication DateTitle
CN101035025A (en)Network device management method and system
CN1913452A (en)Method and equipment of intelligent patrol detection for communication network
CN104410543B (en)Automated testing method and system based on cloud resource
CN101035039A (en)USB mapping method
CN101056220A (en)Central monitoring method of the data service system without network management interface
CN101060436A (en)A fault analyzing method and device for communication equipment
CN101034367A (en)System configuration information comparison device and computer program
CN101043388A (en)Method, equipment and system for detecting whether web access user terminal is on line
CN106982194A (en)Vulnerability scanning method and device
CN101038488A (en)Bridge remote monitoring system
CN103856467A (en)Method and distributed system for achieving safety scanning
CN105740142B (en)SSR centralized management platform pressure test management system
CN1791037A (en)Method for realizing Web service automatic test
CN1866869A (en)Service network tracking system and method
CN115686540A (en) RPA control method and system based on Hongmeng system
CN101488890A (en)Method and system for network attack test
CN1320801C (en)Computer auxilary security method and system
CN1852546A (en)Operation maintenance system and method for base-station system
CN1921389A (en)Safety detecting method and purview control system for client terminal
CN105809031A (en)Database auditing method, apparatus and system
CN104580514B (en)Software application remote debugging method based on cloud computing and device
CN107315803A (en)A kind of automatic building method of data-base cluster and system
CN103338382B (en)A kind of method of remote monitoring digital TV terminal, device and digital television system
CN101060431A (en)A data configuration method, system and operating and maintenance center
CN111258712B (en) A method and system for protecting virtual machine security under virtual platform network isolation

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20090304


[8]ページ先頭

©2009-2025 Movatter.jp