[go: up one dir, main page]

CN102820980B - A kind of device and method of transmitting order to lower levels - Google Patents

A kind of device and method of transmitting order to lower levels Download PDF

Info

Publication number
CN102820980B
CN102820980B CN201110151633.9A CN201110151633A CN102820980B CN 102820980 B CN102820980 B CN 102820980B CN 201110151633 A CN201110151633 A CN 201110151633A CN 102820980 B CN102820980 B CN 102820980B
Authority
CN
China
Prior art keywords
command
sending
return information
command group
receiving
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.)
Expired - Fee Related
Application number
CN201110151633.9A
Other languages
Chinese (zh)
Other versions
CN102820980A (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.)
ZTE Corp
Original Assignee
Nanjing ZTE New Software 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 Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
Priority to CN201110151633.9A priority Critical patent/CN102820980B/en
Publication of CN102820980A publication Critical patent/CN102820980A/en
Application granted granted Critical
Publication of CN102820980B publication Critical patent/CN102820980B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Communication Control (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明公开了一种下发命令的设备及方法,包括:发送装置和接收装置,其中:发送装置用于与目标设备建立连接,与接收装置相独立地向目标设备发送命令组;接收装置用于与发送装置相独立地接收目标设备发送的返回信息。本发明采用异步下发命令的方法,一方面可以大大提升命令的下发速度,充分发挥设备的潜能,从而达到同步下发所无法达到的性能指标;另一方面,无需进行返回信息结束标志的判断,接收装置以阻塞的方式进行侦听,与调用装置能进行很灵活的互动,能大大提升下发效率。

The invention discloses a device and method for issuing commands, including: a sending device and a receiving device, wherein: the sending device is used to establish a connection with a target device, and sends a command group to the target device independently of the receiving device; It is independent of the sending means to receive the return information sent by the target device. The present invention adopts the method of sending commands asynchronously. On the one hand, it can greatly increase the speed of sending commands, and give full play to the potential of the equipment, so as to achieve the performance index that cannot be achieved by sending synchronously; It is judged that the receiving device listens in a blocking manner, and can interact flexibly with the calling device, which can greatly improve the delivery efficiency.

Description

一种下发命令的设备及方法A device and method for issuing commands

技术领域technical field

本发明涉及网络设备管理技术,尤其涉及一种下发命令的设备及方法。The invention relates to network device management technology, in particular to a device and method for issuing commands.

背景技术Background technique

随着网络设备的数量呈几何级数的增长,网络结构日益复杂,单纯依靠人工已无法完成对网络的管理,因此,网管系统在当今的网络管理方案中发挥着举足轻重的作用,网络运营商以及企业级用户对网管系统的需求也越来越多。With the number of network devices increasing geometrically and the network structure becoming more and more complex, it is no longer possible to manage the network solely by manual work. Therefore, the network management system plays a pivotal role in today's network management solutions. Network operators and Enterprise-level users have more and more demands on network management systems.

在网管系统中,主流的方法是采用SNMP(简单网络管理协议)进行网络管理,但在许多情况下无法或不方便使用SNMP协议,如管理不同厂商的设备或管理没有提供SNMP管理功能的设备等,需要用到命令行接口(CLI)命令对设备进行操作,从而达到管理的目的。In the network management system, the mainstream method is to use SNMP (Simple Network Management Protocol) for network management, but in many cases it is impossible or inconvenient to use the SNMP protocol, such as managing devices from different manufacturers or managing devices that do not provide SNMP management functions, etc. , you need to use command line interface (CLI) commands to operate the device, so as to achieve the purpose of management.

具有管理功能的IP网络设备基本都是采用Telnet或SSH协议下发CLI命令,后台下发CLI命令一般都采用同步方式,即向设备发送一条命令后等待所有设备返回结果,虽然这种方式过程简单、易于控制,但却存在命令下发速度较慢以及与设备的交互不够灵活的问题。IP network devices with management functions basically use the Telnet or SSH protocol to issue CLI commands, and the CLI commands issued in the background generally adopt a synchronous method, that is, send a command to the device and wait for all devices to return results, although this method is simple. , easy to control, but there are problems such as slow command sending speed and inflexible interaction with the device.

发明内容Contents of the invention

本发明要解决的技术问题是提供一种下发命令的设备及方法,可以实现高效而灵活地向设备下发命令。The technical problem to be solved by the present invention is to provide a device and a method for sending commands, which can realize efficient and flexible sending of commands to devices.

为了解决上述技术问题,本发明的一种下发命令的设备,包括:发送装置和接收装置,其中:In order to solve the above technical problems, a device for issuing commands in the present invention includes: a sending device and a receiving device, wherein:

发送装置,用于与目标设备建立连接,与接收装置相独立地向目标设备发送命令组;a sending device, configured to establish a connection with the target device, and send a command group to the target device independently of the receiving device;

接收装置,用于与发送装置相独立地接收目标设备发送的返回信息。The receiving means is used for receiving the return information sent by the target device independently of the sending means.

进一步地,发送装置,还用于为命令组添加开始标志命令和结束标志命令;Further, the sending device is also used to add a start flag command and an end flag command to the command group;

接收装置,还用于对接收到的目标设备的返回信息进行累积,根据返回信息中的开始标志命令和结束标志命令对累积的返回信息以命令组为基准进行划分,建立返回信息与命令组的对应关系。The receiving device is also used to accumulate the received return information of the target device, divide the accumulated return information based on the command group according to the start flag command and the end flag command in the return information, and establish a relationship between the return information and the command group corresponding relationship.

进一步地,还包括结果组编装置;Further, it also includes a result organizing device;

接收装置,还用于将以命令组为基准划分的返回信息发送给结果组编装置;The receiving device is also used to send the return information divided based on the command group to the result grouping device;

结果组编装置,用于从以命令组为基准划分的返回信息中确定命令组中各命令的执行结果。The result grouping device is used for determining the execution result of each command in the command group from the return information divided based on the command group.

进一步地,还包括故障重传装置;Further, a fault retransmission device is also included;

故障重传装置,用于检测发送装置发送命令组和接收装置接收返回信息的状态,在发生异常时,断开发送装置与目标设备的连接,通知目标设备重新登录,并查找故障点命令,将发送装置的状态回退到故障点命令。The fault retransmission device is used to detect the status of the sending device sending the command group and the receiving device receiving the returned information. When an abnormality occurs, disconnect the sending device from the target device, notify the target device to log in again, and find the fault point command. The state of the sending device falls back to the point of failure command.

进一步地,接收装置根据开始标志命令和结束标志命令对累积的返回信息以命令组为基准进行划分的过程是提取返回信息,查找开始标志命令,如果查找到,则提取并记录命令组编号,并查找结束标志命令,如果查找到,则建立开始标志命令和结束标志命令之间的返回信息与命令组编号的对应关系。Further, the receiving device divides the accumulated return information based on the command group according to the start mark command and the end mark command. Search for the end mark command, if found, establish the corresponding relationship between the return information between the start mark command and the end mark command and the command group number.

进一步地,结果组编装置从以命令组为基准划分的返回信息中确定命令组中各命令的执行结果的过程是,结果组编装置根据命令组编号获取对应的命令组,并将命令组中的命令在对应的返回信息中进行匹配,确定命令的返回信息,根据特征信息判断各命令的执行结果。Further, the process of determining the execution result of each command in the command group by the result assembling device from the returned information based on the command group is that the result assembling device obtains the corresponding command group according to the command group number, and converts the command group The command is matched in the corresponding return information, the return information of the command is determined, and the execution result of each command is judged according to the feature information.

进一步地,一种下发命令的方法,包括:Further, a method for issuing commands includes:

发送装置与目标设备建立连接,与接收装置相独立地向目标设备发送命令组;The sending device establishes a connection with the target device, and sends the command group to the target device independently of the receiving device;

接收装置与发送装置相独立地接收目标设备发送的返回信息。The receiving means and the sending means independently receive the return information sent by the target device.

进一步地,还包括:Further, it also includes:

发送装置在向目标设备发送命令组前,为命令组添加开始标志命令和结束标志命令;The sending device adds a start mark command and an end mark command to the command group before sending the command group to the target device;

接收装置在接收到返回信息后,对接收到的目标设备的返回信息进行累积,根据返回信息中的开始标志命令和结束标志命令对累积的返回信息以命令组为基准进行划分,建立返回信息与命令组的对应关系。After receiving the return information, the receiving device accumulates the received return information of the target device, divides the accumulated return information based on the command group according to the start flag command and the end flag command in the return information, and establishes the return information and Correspondence between command groups.

进一步地,还包括:Further, it also includes:

接收装置对累积的返回信息以命令组为基准进行划分后,将以命令组为基准划分的返回信息发送给结果组编装置;After the receiving device divides the accumulated return information based on the command group, it sends the return information divided based on the command group to the result grouping device;

结果组编装置从以命令组为基准划分的返回信息中确定命令组中各命令的执行结果。The result composing device determines the execution result of each command in the command group from the return information divided based on the command group.

进一步地,还包括:Further, it also includes:

故障重传装置在发送装置发送命令组和接收装置接收返回信息的过程中,检测发送装置和接收装置的状态,在发生异常时,断开发送装置与目标设备的连接,通知目标设备重新登录,并查找故障点命令,将发送装置的状态回退到故障点命令。The fault retransmission device detects the status of the sending device and the receiving device during the process of the sending device sending the command group and the receiving device receiving the returned information. When an abnormality occurs, the sending device is disconnected from the target device, and the target device is notified to log in again. And search for the fault point command, and return the state of the sending device to the fault point command.

综上所述,本发明采用异步下发命令的方法,一方面可以大大提升命令的下发速度,充分发挥设备的潜能,从而达到同步下发所无法达到的性能指标;另一方面,由于同步下发命令接收信息时需要判断返回信息的结束标志,但是结束标志千变万化,因此不够灵活,特别是在需要和设备进行互动确认的场景下,同步方式往往难以处理,而异步方式无需进行返回信息结束标志的判断,接收装置以阻塞的方式进行侦听,与调用装置能进行很灵活的互动。本发明可以满足对命令下发速度要求比较高的场合,如需要大批量下发命令而设备又相对比较稳定,能大大提升下发效率;此外,当命令的下发过程比较复杂时,如在设备上进行文件操作等,中间可能会进行多次不确定的确认和反馈,异步方式的灵活性就更能得以体现。To sum up, the present invention adopts the method of sending commands asynchronously. On the one hand, it can greatly increase the speed of sending commands, and fully utilize the potential of the equipment, so as to achieve the performance index that cannot be achieved by sending synchronously; on the other hand, due to the synchronous When sending a command to receive information, it is necessary to judge the end flag of the returned information, but the end flag is ever-changing, so it is not flexible enough, especially in the scene where interaction confirmation with the device is required, the synchronous method is often difficult to handle, and the asynchronous method does not need to return the end of the information For flag judgment, the receiving device listens in a blocking manner, and can interact flexibly with the calling device. The present invention can meet the occasions where the command delivery speed is relatively high. If a large number of commands need to be issued and the equipment is relatively stable, the delivery efficiency can be greatly improved; in addition, when the command delivery process is relatively complicated, such as in When performing file operations on the device, there may be multiple uncertain confirmations and feedbacks in the middle, so the flexibility of the asynchronous method can be better reflected.

附图说明Description of drawings

图1是本发明的下发命令的设备的架构图;Fig. 1 is the architectural diagram of the equipment of issuing order of the present invention;

图2是本发明中发送装置发送命令的流程图;Fig. 2 is a flow chart of the command sent by the sending device in the present invention;

图3是本发明中接收装置接收返回信息的流程图;Fig. 3 is the flow chart of receiving the returned information by the receiving device in the present invention;

图4是本发明中结果组编装置的组编返回信息的流程图;Fig. 4 is the flow chart of the grouping return information of the result grouping device in the present invention;

图5是本发明中故障重传装置进行故障重传的流程图。Fig. 5 is a flow chart of the failure retransmission performed by the failure retransmission device in the present invention.

具体实施方式Detailed ways

本实施方式在考虑到目前采用的命令同步下发方式速度较慢且与设备的交互不够灵活的问题,因此,将发送命令的过程和接收返回信息的过程分开进行,发送装置专注于命令的发送,接收装置专注于返回信息的接收,提高了命令下发的效率;另外,接收装置无需对返回信息的结束标志进行判断,只对返回信息进行特征判断,与设备的交互也更加灵活。In this implementation mode, in consideration of the slow speed of the synchronous delivery of commands currently adopted and the inflexible interaction with the device, the process of sending commands and the process of receiving returned information are separated, and the sending device focuses on sending commands , the receiving device focuses on receiving the returned information, which improves the efficiency of command delivery; in addition, the receiving device does not need to judge the end sign of the returned information, but only judges the characteristics of the returned information, and the interaction with the device is more flexible.

本实施方式中,在下发命令时,发送装置和目标设备建立连接并进行登录,登录成功后向目标设备发送命令组(发送前进行编号),目标设备对命令进行处理后,将返回信息发送给接收装置,接收装置对接收到返回信息进行分组处理,将分组后的结果传递给结果组编装置进行解析,形成调用装置所需要的数据结构。当发送或接收的过程中出现连接故障,发送装置或接收装置会启动故障重传装置,故障重传装置根据故障点确定要重新发送的命令组。In this embodiment, when issuing a command, the sending device establishes a connection with the target device and logs in. After the login is successful, it sends a command group (numbered before sending) to the target device. After the target device processes the command, it sends the return information to The receiving device performs grouping processing on the received returned information, and transmits the grouped results to the result grouping device for analysis to form the data structure required by the calling device. When a connection failure occurs during the sending or receiving process, the sending device or the receiving device will start the fault retransmission device, and the fault retransmission device determines the command group to be resent according to the fault point.

如图1所示,本实施方式的下发命令的装置包括:发送装置、接收装置、故障重传装置和结果组编装置,其中:As shown in Figure 1, the device for issuing commands in this embodiment includes: a sending device, a receiving device, a fault retransmission device and a result grouping device, wherein:

发送装置,用以实现向设备发送CLI命令,包括设备登录、命令编号、发送命令以及命令缓存维护。The sending device is used for sending CLI commands to the device, including device login, command number, sending command and command cache maintenance.

接收装置,用以接收目标设备的返回信息,包括返回字符串的过滤、接收超时控制。The receiving device is used to receive the returned information from the target device, including filtering of returned character strings and receiving timeout control.

故障重传装置,用以实现对设备的连接状态侦测,确定故障点,将故障点及故障点后的已发送命令进行重新发送,此装置贯穿于发送装置和接收装置中,对发送和接收过程出现的连接异常均进行侦测并进行命令发送点回退。The fault retransmission device is used to detect the connection status of the equipment, determine the fault point, and resend the fault point and the sent commands after the fault point. All connection exceptions in the process are detected and the command sending point is rolled back.

结果组编装置,用以实现将接收到的返回信息进行组编,组编成一定的数据结构,以供调用装置使用。The result assembling device is used to realize assembling the received returned information into a certain data structure for use by the calling device.

本实施方式的下发命令的方法包括以下步骤:The method for issuing an order in this embodiment includes the following steps:

步骤A:确定命令要下发到的目标设备,以及要发送的命令组;Step A: Determine the target device to which the command is to be sent, and the command group to be sent;

步骤B:与目标设备建立连接,进行登录,如果接收装置没有启动,需进行启动,并对命令组进行编号,为命令组添加开始标志命令和结束标志命令;Step B: Establish a connection with the target device and log in. If the receiving device is not started, it needs to be started, and the command group is numbered, and the start mark command and the end mark command are added to the command group;

步骤C:将经过编号的命令组加入命令缓存,并逐条下发,开始标志命令第一个下发,结束标志命令最后一个下发;Step C: Add the numbered command groups into the command cache and issue them one by one, the start flag command is issued first, and the end flag command is issued last;

步骤D:接收装置启动后以阻塞方式接收目标设备的返回信息;Step D: After the receiving device is started, it receives the return information of the target device in a blocking manner;

步骤E:故障重传装置实时侦测发送命令的过程和接收返回信息的过程中的故障;Step E: The failure retransmission device detects failures in the process of sending commands and receiving returned information in real time;

步骤E:故障重传装置在侦测到故障后,断开当前有故障的连接,再重新进行连接登录,登录成功后根据故障点在命令缓存中提取需要重新发送的命令组,进行发送;Step E: After detecting the fault, the fault retransmission device disconnects the current faulty connection, and then re-connects and logs in. After the login is successful, it extracts the command group that needs to be resent from the command cache according to the fault point, and sends it;

故障重传装置在对接收装置设定的接收时延内如果没有接收到返回信息,则提示接收完成或超时异常。If the failure retransmission device does not receive the return information within the receiving delay set by the receiving device, it will prompt that the receiving is completed or the timeout is abnormal.

步骤F:接收装置将目标设备的返回信息按顺序进行累加,根据开始标志命令和结束标志命令的返回信息进行划分,并将划分后的返回信息交给结果组编装置进行结果数据结构的构建,构建成功后回调调用装置。Step F: the receiving device accumulates the return information of the target device in order, divides the return information according to the start mark command and the end mark command, and hands the divided return information to the result assembly device to construct the result data structure, After the build is successful, the callback invokes the device.

本实施方式的方法和装置可以应用在数据网管系统中,在大批量进行CLI命令的下发时使用。The method and device of this embodiment can be applied in a data network management system and used when issuing CLI commands in batches.

下面结合附图对本实施方式进行详细说明。The present embodiment will be described in detail below in conjunction with the accompanying drawings.

如图2所示为发送装置发送命令的过程,包括:As shown in Figure 2, the process of sending the command by the sending device includes:

步骤201:发送装置检测与设备的连接状态是否正常,如果连接状态不正常或者尚未登录,则进行重登录(先断开再登录)或登录;Step 201: The sending device detects whether the connection status with the device is normal, if the connection status is abnormal or has not been logged in, then re-login (disconnect first and then log in) or log in;

步骤202:登录成功后,设定并启动接收装置,然后对命令组进行编号,为命令组添加开始标志命令和结束标志命令,将命令组加入命令缓存中;Step 202: After the login is successful, set and start the receiving device, then number the command group, add a start mark command and an end mark command to the command group, and add the command group to the command cache;

步骤203:缓存监测到有命令组到达,则立即取出命令组,并向设备逐条发送命令组中的命令。Step 203: The cache monitors that a command group arrives, immediately fetches the command group, and sends the commands in the command group to the device one by one.

如图3所示,接收返回信息的过程包括:As shown in Figure 3, the process of receiving the returned information includes:

步骤301:接收装置以阻塞的方式读取设备的返回信息,一旦从设备中读取到返回信息片段,则将信息片段追加到返回结果缓存中;Step 301: The receiving device reads the returned information of the device in a blocking manner, and once the returned information fragment is read from the device, appends the information fragment to the returned result cache;

步骤302:从缓存中提取字符串,首先寻找开始标志命令,如果找到则从中提取并记录下命令组编号;Step 302: Extract the character string from the cache, first look for the start flag command, if found, extract and record the command group number;

Telnet和SSH协议对命令都可以进行回显,因此发送的标志命令会在返回信息中进行回显。Both Telnet and SSH protocols can echo commands, so the flag command sent will be echoed in the returned information.

步骤303:寻找结束标志命令,对累积的返回信息以命令组为基准进行划分,建立返回信息与命令组的对应关系,并提取开始标志和结束标志之间的字符串传递给结果组编装置。Step 303: Find the end flag command, divide the accumulated return information based on the command group, establish the corresponding relationship between the return information and the command group, and extract the character string between the start flag and the end flag and send it to the result assembly device.

开始标志命令和结束标志命令都找不到则以异常处理,并初始化结果缓存和相关位置信息。另一方面,当在设定的超时时间内没有接收到任何返回信息,则中断接收过程。If neither the start sign command nor the end sign command can be found, it will be treated as an exception, and the result cache and related position information will be initialized. On the other hand, when no return information is received within the set timeout period, the receiving process is interrupted.

如图4所示,结果组编的过程包括:As shown in Figure 4, the process of result grouping includes:

步骤401:接收装置将命令组编号和该命令组的返回信息作为参数传递给结果组编装置;Step 401: the receiving device sends the command group number and the return information of the command group as parameters to the result grouping device;

步骤402:结果组编装置根据命令组编号从命令缓存中获取对应的命令组,并用命令组中的各个命令在返回信息中依次匹配,确定出各个命令的返回信息;Step 402: The result grouping device obtains the corresponding command group from the command cache according to the command group number, and uses each command in the command group to match in the return information in order to determine the return information of each command;

步骤403:根据系统中预存的特征信息判定命令执行正确与否,如果存在故障还要确定故障原因,将这些信息填入事先约定的数据结构中。Step 403: Determine whether the command is executed correctly or not according to the pre-stored feature information in the system, and if there is a fault, determine the cause of the fault, and fill the information into the pre-agreed data structure.

如图5所示,在发送命令和接收返回信息的过程中,由于设备或网络不稳定或其它因素使得连接出现了故障,导致下发和接收过程出现异常故障,重传的过程包括:As shown in Figure 5, during the process of sending commands and receiving returned information, the connection fails due to equipment or network instability or other factors, resulting in abnormal failures in the sending and receiving process. The retransmission process includes:

步骤501:故障重传装置检测到异常后,就立刻暂停发送和接收动作,并将当前有故障的连接断开;Step 501: After the fault retransmission device detects an abnormality, it immediately suspends the sending and receiving actions, and disconnects the current faulty connection;

步骤502:通知目标设备重新登录,如果登录成功,则查找故障点命令,根据故障点命令在命令缓存中提取命令组,将发送装置的状态回退到故障点命令。Step 502: Notify the target device to log in again. If the login is successful, search for the fault point command, extract the command group from the command cache according to the fault point command, and roll back the state of the sending device to the fault point command.

例如,当故障重传装置在A1点时检测到故障,而发送装置已经依次发送命令组至A4点,此时故障重传装置将发送装置的命令组位置回退至A1点。For example, when the faulty retransmitting device detects a fault at point A1, and the sending device has sent command groups to point A4 in sequence, the faulty retransmitting device returns the position of the command group of the sending device to point A1.

显然,本领域的技术人员应该明白,上述的本发明的各实体、各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,或者将它们分别制作成各个集成电路实体,或者将它们的多个实体或者步骤制作成单个集成电路实体来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each entity and step of the present invention described above can be implemented by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Optionally, they can be realized by program codes executable by a computing device, thus, they can be stored in a storage device to be executed by a computing device, or they can be separately manufactured as individual integrated circuit entities, or their Multiple entities or steps are implemented as a single integrated circuit entity. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only an embodiment of the present invention, and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (8)

1.一种下发命令的设备,应用于网管系统,包括:专注于命令发送的发送装置和专注于返回信息接收的接收装置,其中:1. A device for issuing commands, which is applied to a network management system, comprising: a sending device dedicated to sending commands and a receiving device dedicated to receiving returned information, wherein: 所述发送装置,用于与目标设备建立连接,与所述接收装置相独立地向所述目标设备发送命令组;还用于为所述命令组添加开始标志命令和结束标志命令;The sending device is used to establish a connection with the target device, and to send a command group to the target device independently of the receiving device; it is also used to add a start mark command and an end mark command to the command group; 所述接收装置,用于与所述发送装置相独立地接收所述目标设备发送的返回信息;还用于对接收到的所述目标设备的返回信息进行累积,根据所述返回信息中的开始标志命令和结束标志命令对累积的返回信息以命令组为基准进行划分,建立所述返回信息与命令组的对应关系。The receiving means is configured to receive the return information sent by the target device independently of the sending means; and is also configured to accumulate the received return information of the target device, and according to the beginning of the return information in the return information The flag command and the end flag command divide the accumulated return information based on the command group, and establish the corresponding relationship between the returned information and the command group. 2.如权利要求1所述的设备,其特征在于,还包括结果组编装置;2. The apparatus according to claim 1, further comprising a result grouping device; 所述接收装置,还用于将以命令组为基准划分的返回信息发送给所述结果组编装置;The receiving device is further configured to send the return information divided based on the command group to the result grouping device; 所述结果组编装置,用于从所述以命令组为基准划分的返回信息中确定所述命令组中各命令的执行结果。The result grouping device is configured to determine the execution result of each command in the command group from the returned information divided based on the command group. 3.如权利要求1所述的设备,其特征在于,还包括故障重传装置;3. The device according to claim 1, further comprising a fault retransmission device; 所述故障重传装置,用于检测所述发送装置发送命令组和所述接收装置接收返回信息的状态,在发生异常时,断开所述发送装置与所述目标设备的连接,通知所述目标设备重新登录,并查找故障点命令,将所述发送装置的状态回退到所述故障点命令。The fault retransmission device is used to detect the status of the sending device sending the command group and the receiving device receiving the returned information, and disconnect the sending device from the target device when an abnormality occurs, and notify the The target device logs in again, and searches for the fault point command, and rolls back the state of the sending device to the fault point command. 4.如权利要求2所述的设备,其特征在于:4. The device of claim 2, wherein: 所述接收装置根据所述开始标志命令和结束标志命令对累积的返回信息以命令组为基准进行划分的过程是提取返回信息,查找所述开始标志命令,如果查找到,则提取并记录命令组编号,并查找所述结束标志命令,如果查找到,则建立所述开始标志命令和结束标志命令之间的返回信息与所述命令组编号的对应关系。The process of the receiving device dividing the accumulated return information based on the command group according to the start mark command and the end mark command is to extract the return information, search for the start mark command, and if found, extract and record the command group number, and search for the end mark command, if found, then establish the corresponding relationship between the return information between the start mark command and the end mark command and the command group number. 5.如权利要求4所述的设备,其特征在于:5. The device of claim 4, wherein: 所述结果组编装置从所述以命令组为基准划分的返回信息中确定所述命令组中各命令的执行结果的过程是,所述结果组编装置根据所述命令组编号获取对应的命令组,并将所述命令组中的命令在对应的返回信息中进行匹配,确定命令的返回信息,根据特征信息判断各命令的执行结果。The process of determining the execution result of each command in the command group from the return information divided by the command group as a basis is that the result grouping device obtains the corresponding command according to the command group number group, and match the commands in the command group with the corresponding return information, determine the return information of the command, and judge the execution result of each command according to the feature information. 6.一种下发命令的方法,应用于网管系统,包括:6. A method for issuing commands, applied to a network management system, comprising: 发送装置与目标设备建立连接,与接收装置相独立地向所述目标设备发送命令组;The sending device establishes a connection with the target device, and sends the command group to the target device independently of the receiving device; 所述接收装置与所述发送装置相独立地接收所述目标设备发送的返回信息;The receiving means and the sending means independently receive the return information sent by the target device; 其中,所述发送装置专注于命令的发送,所述接收装置专注于返回信息的接收;Wherein, the sending device focuses on sending commands, and the receiving device focuses on receiving return information; 所述方法还包括:The method also includes: 所述发送装置在向所述目标设备发送命令组前,为所述命令组添加开始标志命令和结束标志命令;The sending device adds a start flag command and an end flag command to the command group before sending the command group to the target device; 所述接收装置在接收到返回信息后,对接收到的所述目标设备的返回信息进行累积,根据所述返回信息中的开始标志命令和结束标志命令对累积的返回信息以命令组为基准进行划分,建立所述返回信息与命令组的对应关系。After the receiving device receives the return information, it accumulates the received return information of the target device, and performs the accumulated return information based on the command group according to the start mark command and the end mark command in the return information. Divide and establish the corresponding relationship between the returned information and the command group. 7.如权利要求6所述的方法,其特征在于,还包括:7. The method of claim 6, further comprising: 所述接收装置对累积的返回信息以命令组为基准进行划分后,将以命令组为基准划分的返回信息发送给结果组编装置;After the receiving device divides the accumulated return information based on the command group, it sends the return information divided based on the command group to the result grouping device; 所述结果组编装置从所述以命令组为基准划分的返回信息中确定所述命令组中各命令的执行结果。The result assembling means determines the execution result of each command in the command group from the returned information divided based on the command group. 8.如权利要求6所述的方法,其特征在于,还包括:8. The method of claim 6, further comprising: 故障重传装置在所述发送装置发送命令组和所述接收装置接收返回信息的过程中,检测所述发送装置和接收装置的状态,在发生异常时,断开所述发送装置与所述目标设备的连接,通知所述目标设备重新登录,并查找故障点命令,将所述发送装置的状态回退到所述故障点命令。The fault retransmission device detects the status of the sending device and the receiving device during the process of sending the command group by the sending device and receiving the return information by the receiving device, and disconnects the sending device from the target when an abnormality occurs. connection of the device, notify the target device to log in again, and find the fault point command, and return the state of the sending device to the fault point command.
CN201110151633.9A 2011-06-08 2011-06-08 A kind of device and method of transmitting order to lower levels Expired - Fee Related CN102820980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110151633.9A CN102820980B (en) 2011-06-08 2011-06-08 A kind of device and method of transmitting order to lower levels

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110151633.9A CN102820980B (en) 2011-06-08 2011-06-08 A kind of device and method of transmitting order to lower levels

Publications (2)

Publication Number Publication Date
CN102820980A CN102820980A (en) 2012-12-12
CN102820980B true CN102820980B (en) 2018-11-06

Family

ID=47304854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110151633.9A Expired - Fee Related CN102820980B (en) 2011-06-08 2011-06-08 A kind of device and method of transmitting order to lower levels

Country Status (1)

Country Link
CN (1) CN102820980B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105393230B (en) * 2013-07-12 2018-05-25 三菱电机株式会社 Network system, mobile communication terminal and subject machine determine method
CN105847041B (en) * 2016-03-18 2019-06-07 烽火通信科技股份有限公司 A kind of exchange method based on network management system command-line data

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983169A (en) * 2005-12-12 2007-06-20 华为技术有限公司 Method for supporting asynchronous command report

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004029817A1 (en) * 2002-09-24 2004-04-08 Koninklijke Philips Electronics N.V. Bus connection system
CN101075938A (en) * 2006-05-19 2007-11-21 深圳艾科创新微电子有限公司 System and method for converting between cell-phone telecommunication protocol and USB mass storage protocol
CN101442515B (en) * 2007-11-22 2011-09-07 深圳市科陆电子科技股份有限公司 Remote control method based on browser
CN101751288A (en) * 2008-12-12 2010-06-23 中国移动通信集团山东有限公司 Method, device and system applying process scheduler

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983169A (en) * 2005-12-12 2007-06-20 华为技术有限公司 Method for supporting asynchronous command report

Also Published As

Publication number Publication date
CN102820980A (en) 2012-12-12

Similar Documents

Publication Publication Date Title
JP5872731B2 (en) Computer implemented method, non-transitory computer readable medium and computer system for communicating detection of link failure to each of a plurality of nodes of a cluster
CN103441861B (en) A kind of data record generation method and device
CN103220225B (en) Message processing method, device and system
CN103078791B (en) OAM message processing method, equipment and system
CN107743076A (en) A method and device for switching NCSI shared network ports
CN105379201A (en) Path switching method and device
WO2012088910A1 (en) Method and system for detecting connectivity fault
CN102769533A (en) Data processing method and data processing device
CN105142035B (en) A kind of video flowing slice repeater system and method
CN105721235B (en) A method and apparatus for detecting connectivity
WO2024087692A1 (en) Device management method, and devices, system and storage medium
CN105721190A (en) Data transmission path fault detection method and device, and server
CN102820980B (en) A kind of device and method of transmitting order to lower levels
CN104683130B (en) A kind of method and apparatus of configuring stacking port
CN105530137A (en) Flow data analysis method and flow data analysis system
CN104270450A (en) A dual-controller multi-link heartbeat monitoring method using UDP protocol
CN103916413A (en) Control method and device for heterogeneous minicomputers, and cloud computing system
CN110177031A (en) A kind of data monitoring control system and its method for monitoring and controlling based on SDN network
CN101136756B (en) Electric self-checking method, system and BMC chip on network long-range control host machine
US8520566B2 (en) Network connection method with auto-negotiation mechanism, network apparatus having auto-negotiation mechanism and network connection method
CN105912432A (en) Failure detection method, device and system for server
CN105763347A (en) Method for obtaining parameter, network equipment and system
CN116074188A (en) Cloud computing business processing method, system and computer-readable storage medium
CN108880761A (en) Server network card information obtains system
CN115834517A (en) Fault isolation method, device, switch and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20180731

Address after: 210012 No. 68 Bauhinia Road, Yuhuatai District, Jiangsu, Nanjing

Applicant after: Nanjing Zhongxing New Software Co.,Ltd.

Address before: 518057 Nanshan District high tech Industrial Park, Shenzhen, Guangdong, Ministry of justice, Zhongxing Road, South China road.

Applicant before: ZTE Corp.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191104

Address after: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Patentee after: ZTE Corp.

Address before: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68

Patentee before: Nanjing Zhongxing New Software Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181106

CF01 Termination of patent right due to non-payment of annual fee