WO2011153792A1 - 一种运行状态的检测方法及系统 - Google Patents

一种运行状态的检测方法及系统 Download PDF

Info

Publication number
WO2011153792A1
WO2011153792A1 PCT/CN2010/078918 CN2010078918W WO2011153792A1 WO 2011153792 A1 WO2011153792 A1 WO 2011153792A1 CN 2010078918 W CN2010078918 W CN 2010078918W WO 2011153792 A1 WO2011153792 A1 WO 2011153792A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection
detected
package
module
script
Prior art date
Application number
PCT/CN2010/078918
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 WO2011153792A1 publication Critical patent/WO2011153792A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing

Definitions

  • the present invention relates to an intelligent network technology in the field of telecommunications, and in particular to a method and system for detecting an operating state. Background technique
  • the intelligent network technology in the telecommunication system is an additional network structure provided for the fast, convenient and economical provision of new telecommunication services on the basic network structure of the existing switching and transmission technologies. Because the intelligent network technology has standard model constraints and standard communication protocols to support the interconnection of products, it has created the basic conditions for the rapid provision of new services. Based on the above reasons, various types of value-added services in the intelligent network continue to grow and develop, and the number of users of the intelligent network has also increased dramatically. As a result, the operating equipment in the intelligent network has been continuously expanded. Therefore, the engineering personnel who maintain the equipment have higher requirements. How can it be timely? It is convenient and intuitive to understand the current operating status of each device, obtain the main parameters of the current running of each value-added service, and understand the overall performance of the system on the device, which is very important for engineers who maintain the equipment.
  • the operating state of an operating system on a device includes the following three parts: the operating state of the operating system of the device, the running status of the database, and the running status of the business loaded on the device.
  • the operating state of the operating system includes the load status of the central processing unit (CPU, Central Processing Unit), disk space, and read/write status of input/output (I/O, Input/Output); Main parameters such as normal startup, table space, log space, and disk fragmentation. So far, all the engineers who are maintaining the equipment log in to the operating system of each device to run various commands to view the contents of the operating table structure of the operating system, etc., to obtain the above contents.
  • the main object of the present invention is to provide a method and system for detecting an operating state, which automatically completes the detection of the operating state of the device.
  • the invention discloses a method for detecting an operating state, which comprises:
  • the detecting module sends the detection packet to the device to be tested according to the related information of the device to be detected that is set in advance; and detects the detection item of the device to be detected.
  • the method further includes: generating a detection package directory
  • the method further includes: placing the detection package into the detection package directory, and configuring the detection script and the detection package.
  • the configuring the detection script and the detection package are specifically:
  • the attributes of the detection script and the attributes of the detection package are configured by using a configuration file in an Extensible Markup Language (XML) format.
  • XML Extensible Markup Language
  • Each detection package corresponds to an XML format configuration file, and the configuration file is correspondingly stored in the detection package directory.
  • the attributes of the detection package include a name of the detection package, a device to be detected applied to the detection package, and an operating system that the detection package can be used for detection;
  • the attributes of the detection script include the number and name of the detection script, the suggestions when the detection script is checked, and the function description corresponding to the detection script.
  • the method further includes: setting related information of the device to be detected.
  • the related information about the device to be detected is specifically:
  • IP protocol
  • the detection module before the detecting module sends the detection packet to the device to be detected according to the related information of the device to be detected, the detection module further includes:
  • the detecting module modifies the information of the detection script in the detection package according to actual conditions.
  • the method further includes: displaying the detection result, and generating a report according to the detection result.
  • the detecting module sends the detection packet to the device to be detected according to the related information of the device to be detected that is set in advance:
  • the detection packet is sent to the device to be detected.
  • the detection of the detection item of the device to be detected is specifically:
  • the detection module After the detection module enters the username and password for Telnet remote login, click the Start button, the detection script runs on the device to be tested, and feeds the detection result back to the detection module.
  • the invention also provides a detection system for an operating state, comprising: a setting module, a detecting module, and a device to be detected; wherein
  • a setting module configured to set a detection module; set a detection script according to a detection item of the device to be detected, and generate a detection package;
  • the detecting module is configured to send the detection packet to the device to be detected according to the related information of the device to be detected that is set in advance; and detect the detection item of the device to be detected;
  • the device to be detected is used to save the detection packet sent by the detection module.
  • the setting module is further configured to generate a detection package directory and place the detection package in a detection package directory; and/or, set relevant information of the device to be detected;
  • the detecting module is further configured to modify the information of the detection script in the detection package according to an actual situation; and/or, display the detection result, and generate a report according to the detection result.
  • system further comprises:
  • a configuration module for configuring detection scripts and detection packages is
  • the method and system for detecting the running state provided by the invention combines the detecting script with the detecting module, can quickly and automatically complete the detecting work of the running state of the device to be tested, saves human resources; sets a detection script according to the detecting item, and uses the detecting
  • the script generates the detection package, and the generated detection package can be reused, which simplifies the detection process of the same detection item of the same device to be tested at different time periods, and is convenient and efficient for detecting the work; in addition, the report can be generated according to the detection result, and the engineering of the device can be maintained. The personnel can intuitively and systematically grasp the operating status of the equipment.
  • FIG. 1 is a schematic flow chart of a method for detecting an operating state according to the present invention
  • FIG. 2 is a schematic structural view of a detection system for realizing an operating state according to the present invention. detailed description
  • Hill sorting refers to software that provides the user with an interface, such as a command parser.
  • the shell receives user commands and calls the corresponding application. It is also a programming language. As a command language, it can be interactive. Interpret and execute commands entered by the user or automatically interpret and execute pre-set commands.
  • the basic idea of the present invention is: setting a detection module; setting a detection script according to a detection item of the device to be detected, and generating a detection packet; the detection module transmitting the detection packet to the device to be detected according to the related information of the device to be detected set in advance; The detection items of the device are detected.
  • FIG. 1 is a schematic flowchart of a method for detecting an operating state according to the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step 101 Set a detection module to generate a detection package directory.
  • the installation software of the detection software is run on the Windows operating system of the computer.
  • a detection software named checktool.exe is generated in the installation directory, and the software is a detection module for detecting the running state of the device.
  • there are some running directories under the detection module such as the detection package directory, the running log directory, and the report generation directory.
  • Step 102 Set a detection script according to the detection item of the device to be detected, generate a detection packet, and put it into a detection package directory, and configure the detection script and the detection package;
  • the plurality of shell detection scripts are edited according to the detection items to be performed on the device to be detected.
  • the detection item may be the main frequency of the CPU of the device to be detected, the usage rate of the hard disk, the hardware model, etc.;
  • Multiple shell detection scripts are placed in the same folder, which is called the detection package; all the detection packages are placed in the detection package directory generated in step 101;
  • the configuration file of the Extensible Markup Language (XML) format can be used to configure the attributes of the detection script and the attributes of the detection package.
  • Each detection package corresponds to an XML format configuration file, and the configuration file is correspondingly stored in the detection package directory.
  • the attributes of the detection package include the name of the detection package, the device to be detected applied to the detection package, and the operating system that the detection package can be used for detection.
  • the operating system that the detection package can be used for detection is generally a Linux operating system and a Unix operating system;
  • the properties of the script include the number and name of the detection script, the suggestions for checking the script for checking, and the function description for the detection script.
  • Step 103 Set related information of the device to be detected.
  • the related information of the device to be detected is set on the interface provided by the detecting module, that is, the protocol (IP, Internet Protocol) that is interconnected between the networks of the device to be detected is input through the interface.
  • IP Internet Protocol
  • the login mode of the device to be detected includes the file transfer protocol (FTP, File Transfer Protocol). Mode and Secure Shell Protocol (SSH, Secure Shell Protocol) login method.
  • FTP File Transfer Protocol
  • SSH Secure Shell Protocol
  • Step 104 The detecting module modifies the information of the detection script in the detection packet according to the actual situation, and sends the detection packet to the device to be detected according to the related information of the device to be detected;
  • the detection module can automatically identify each detection package in the detection package directory, and read the main function of each shell detection script by parsing the XML format configuration file; the detection module selects the detection package according to the need, and the shell detection script in the detection package is There are information such as the function description and the default threshold.
  • the information such as the threshold and the function description may not match the actual situation. Therefore, according to the actual situation, the name and function description of each shell in the selected detection package can be detected.
  • the default value of the detection item is modified, and the modified threshold value is used for the detection.
  • the shell detection script needs to be executed according to the actual situation.
  • the detection item is the success rate of the color ring's overhead household, and the detection item.
  • the default threshold is 90%, that is, greater than or equal to 90% is normal, and less than 90% is abnormal. In this case, the threshold can be modified according to the actual situation;
  • the detection packet to be sent is found according to the attribute of the detection packet configured in the configuration file of the XML format.
  • the detection module modifies the information of the detection script in the detection packet according to the actual situation, and then logs in to the device to be detected by using the FTP login mode or the SSH login mode. After the device is logged in, click the Create button on the interface provided by the detection module.
  • the detection module sends the detected detection packet to the device to be detected through the network command according to the IP address in the related information of the device to be detected.
  • the received test package is saved in the checktooldata directory, which can be pre-created in the device to be tested.
  • Step 105 Perform detection on the detection item of the detection device, and display the detection result.
  • the detection module inputs the username and password of the Telnet remote login, click the start button on the interface provided by the detection module, and the detection module checks the detection item of the detection device.
  • the detection script feeds back the detection result of each detection item, that is, the value of Result, to the detection module, and the detection result is displayed on the interface provided by the detection module; for example, if the value of Result is 0, it means that the detection passes, and the specific content of the detection is correct.
  • the detection module obtains the running log of the shell detection script in the detection package in real time;
  • a temporary file may be set on the device to be detected, and the detection result and the running log are temporarily saved in the file.
  • the detecting module uses the cat command to read And display the contents of the file.
  • Step 106 Generate a report according to the detection result.
  • the interface of the detection module may prompt the detection to be completed, and the detection module generates an excel report according to the detection result fed back during the operation of the shell detection script, and provides the engineering personnel to the maintenance device. , easy for engineers to view.
  • FIG. 2 is a schematic structural diagram of a detection system for realizing an operating state according to the present invention.
  • the system includes: a setting module 21, a detecting module 22, The device to be tested 23; wherein
  • a setting module 21 configured to set the detection module 22; set a detection script according to the detection item of the device to be detected 23, and generate a detection package;
  • the detecting module 22 is configured to send the detection packet to the device to be detected 23 according to the related information of the device 23 to be detected, which is set in advance; and detect the detection item of the device 23 to be detected;
  • the device to be detected 23 is used to save the detection packet sent by the detection module 22.
  • the setting module 21 is further configured to generate a detection package directory and place the detection package in a detection package directory; and/or, set relevant information of the device 23 to be detected;
  • the setting module 21 sets the related information of the device 23 to be detected as: setting the IP address of the device 23 to be detected on the interface provided by the detecting module 22, logging in to the login mode of the device 23 to be detected, and the username and password corresponding to the login mode, Telnet remotely Login username and password;
  • the detecting module 22 is further configured to modify the information of the detection script in the detection package according to an actual situation; and/or, display the detection result, and generate a report according to the detection result;
  • the detecting module 22 sends the detection packet to the device to be detected 23 according to the related information of the device 23 to be detected, which is set to: the detection packet to be sent is found according to the attribute of the detection packet configured in the configuration file of the XML format, and the detection module 22 logs in to After the device 23 is to be detected, click the create button on the interface, and send the detection packet to the device to be detected 23 through a network command according to the IP address of the device 23 to be detected.
  • the detection module 22 detects the detection item of the detection device 23 as follows: After the detection module 22 inputs the username and password of the Telnet remote login, the detection button is clicked, the detection script runs on the device to be detected 23, and the detection result is fed back to the detection module 22 .
  • the system further includes: a configuration module 24, configured to configure the detection script and the detection package; the configuration module 24 configures the detection script and the detection package to: perform the attribute of the detection script and the attribute of the detection package by using a configuration file in an XML format.
  • Configuration each detection packet corresponds to an XML format configuration file, and the configuration file is correspondingly stored in the detection package directory;
  • the attributes of the detection package include the name of the detection package, the device to be detected applied to the detection package, and the detection package can be used for detecting Operating system, etc., the operating system that the detection package can be used for detecting is a Linux operating system and a unix operating system; the attributes of the detection script include the number and name of the detection script, and the detection script is Suggestions for line check, function descriptions for test scripts, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

一种运行状态的检测方法及系统 技术领域
本发明涉及电信领域智能网技术, 尤其涉及一种运行状态的检测方法 及系统。 背景技术
电信系统中的智能网技术是在现有的交换与传输技术的基础网络结构 上, 为快速、 方便、 经济地提供电信新业务而设置的一种附加网络结构。 由于智能网技术有标准模型约束, 以及标准通信协议支持产品的互联, 从 而为快速提供新业务创造了基础条件。 基于上述原因, 智能网中各类增值 业务不断发展壮大, 智能网的用户数量也急剧增加, 导致智能网中运行设 备不断扩容, 因此给维护设备的工程人员提出了较高的要求, 如何能及时 方便并且直观的了解到各个设备当前的运行状态, 获得各个增值业务当前 运行的主要参数, 以及了解设备上系统的总体性能, 对维护设备的工程人 员来说至关重要。
通常情况下, 一个设备上操作系统的运行状态包括以下三个部分: 设 备的操作系统的运行状态、 数据库的运行状态以及加载在设备上的业务的 运行状态。 其中, 操作系统的运行状态包括中央处理单元(CPU, Central Processing Unit )的负载情况、 磁盘空间以及输入 /输出 ( I/O , Input/Output ) 的读写情况等; 数据库的运行状态包括能否正常启动、 表空间、 日志空间 以及磁盘碎片等主要参数。 目前为止, 都是靠维护设备的工程人员登录到 各个设备的操作系统上运行各种命令, 来查看操作系统的业务表结构的内 容等获取以上内容的。 这种方法的缺陷是不仅需要大量的人力资源, 更需 要维护设备的工程人员对业务相当熟悉, 而且往往获取的信息很瑣碎, 并 不能系统的说明操作系统当前的运行情况。 发明内容
有鉴于此, 本发明的主要目的在于提供一种运行状态的检测方法及系 统, 自动的完成设备运行状态的检测。
为达到上述目的, 本发明的技术方案是这样实现的:
本发明公开一种运行状态的检测方法, 包括:
设置检测模块; 根据待检测设备的检测项设置检测脚本, 并生成检测 包;
检测模块根据预先设置的待检测设备的相关信息将检测包发送给待检 测设备; 对待检测设备的检测项进行检测。
上述方法中,
所述设置检测模块之后还包括: 生成检测包目录;
所述生成检测包之后还包括: 将所述检测包放到所述检测包目录, 对 检测脚本和检测包进行配置。
上述方法中, 所述对检测脚本和检测包进行配置具体为:
利用可扩展标记语言 (XML )格式的配置文件对检测脚本的属性和检 测包的属性进行配置, 每个检测包对应一个 XML格式的配置文件, 配置文 件对应保存在检测包目录下。
上述方法中,
所述检测包的属性包括检测包的名称、 检测包应用的待检测设备、 检 测包能够用于检测的操作系统;
所述检测脚本的属性包括检测脚本的编号、 名称, 检测脚本进行检查 时的建议, 检测脚本对应的功能说明。
上述方法中, 所述对检测脚本和检测包进行配置之后还包括: 设置待检测设备的相关信息。 上述方法中, 所述设置待检测设备的相关信息具体为:
在检测模块提供的界面上设置待检测设备的网络之间互连的协议 ( IP ) 地址, 登录待检测设备的登录方式, 以及登录方式对应的用户名和密码,
Telnet远程登录的用户名和密码。
上述方法中, 所述检测模块根据预先设置的待检测设备的相关信息将 检测包发送给待检测设备之前还包括:
检测模块根据实际情况对所述检测包中的检测脚本的信息进行修改。 上述方法中, 所述对待检测设备的检测项进行检测之后还包括: 显示检测结果, 并根据检测结果生成报表。
上述方法中, 所述检测模块根据预先设置的待检测设备的相关信息将 检测包发送给待检测设备具体为:
根据 XML格式的配置文件中配置的检测包的属性找到需要发送的检 测包, 检测模块登录到待检测设备后点击界面上的创建按钮, 根据预先设 置的待检测设备的 IP地址,通过网络命令将所述检测包发送给待检测设备。
上述方法中, 所述对待检测设备的检测项进行检测具体为:
检测模块输入 Telnet远程登录的用户名和密码后, 点击开始按钮, 检 测脚本在待检测设备上运行, 并将检测结果反馈到检测模块。
本发明还提供一种运行状态的检测系统, 包括: 设置模块、 检测模块、 待检测设备; 其中,
设置模块, 用于设置检测模块; 根据待检测设备的检测项设置检测脚 本, 并生成检测包;
检测模块, 用于根据预先设置的待检测设备的相关信息将检测包发送 给待检测设备; 对待检测设备的检测项进行检测;
待检测设备, 用于保存检测模块发送的检测包。
上述系统中, 所述设置模块进一步用于生成检测包目录并将所述检测包放到检测包 目录; 和 /或, 设置待检测设备的相关信息;
所述检测模块进一步用于根据实际情况对所述检测包中的检测脚本的 信息进行修改; 和 /或, 显示检测结果, 并根据检测结果生成报表。
上述系统中, 该系统进一步包括:
配置模块, 用于对检测脚本和检测包进行配置。
本发明提供的运行状态的检测方法及系统, 将检测脚本与检测模块相 结合, 可以快捷的自动的完成待检测设备运行状态的检测工作, 节省了人 力资源; 根据检测项设置检测脚本, 利用检测脚本生成检测包, 生成的检 测包可以重复利用, 简化了不同时段对同一待检测设备的相同检测项的检 测流程, 方便高效的进行检测工作; 此外, 可以根据检测结果生成报表, 维护设备的工程人员可以直观且系统的掌握设备的运行状态。 附图说明
图 1是本发明实现运行状态的检测方法的流程示意图;
图 2是本发明实现运行状态的检测系统的结构示意图。 具体实施方式
希尔排序 (shell )是指提供使用者使用界面的软件, 例如命令解析器, shell接收用户命令, 调用相应的应用程序, 同时它又是一种程序设计语言, 作为命令语言, 它可以交互式解释和执行用户输入的命令或者自动地解释 和执行预先设定好的命令。
本发明的基本思想是: 设置检测模块; 根据待检测设备的检测项设置 检测脚本, 并生成检测包; 检测模块根据预先设置的待检测设备的相关信 息将检测包发送给待检测设备; 对待检测设备的检测项进行检测。
下面通过附图及具体实施例对本发明再做进一步的详细说明。 本发明提供一种运行状态的检测方法, 图 1 是本发明实现运行状态的 检测方法的流程示意图, 如图 1所示, 该方法包括以下步骤:
步骤 101 , 设置检测模块, 生成检测包目录;
具体的, 在计算机的 Windows操作系统上运行检测软件的安装包, 安 装完成后, 在安装目录下生成一个名为 checktool.exe的检测软件, 该软件 是用于检测设备运行状态的检测模块, 可在 Windows操作系统上运行提供 界面, 通过界面进行各种配置工作; 同时生成的还有一些检测模块下的运 行目录, 例如检测包目录、 运行日志目录和生成报表目录等。
步骤 102,根据待检测设备的检测项设置检测脚本, 生成检测包并放到 检测包目录, 对检测脚本和检测包进行配置;
具体的, 根据需要在待检测设备上进行的检测项编辑多个 shell检测脚 本, 例如, 检测项可以是待检测设备的 CPU的主频、 硬盘使用率、 硬件型 号等; 将同一个待检测设备的多个 shell检测脚本放到同一个文件夹中, 该 文件夹称为检测包; 将所有检测包都放到在步骤 101 中生成的检测包目录 下;
可以利用可扩展标记语言 (XML, Extensible Markup Language )格式 的配置文件对检测脚本的属性和检测包的属性进行配置, 每个检测包对应 一个 XML格式的配置文件, 配置文件对应保存在检测包目录下; 检测包的 属性包括检测包的名称、 检测包应用的待检测设备、 检测包能够用于检测 的操作系统等,检测包可用于检测的操作系统一般是 linux操作系统和 unix 操作系统; 检测脚本的属性包括检测脚本的编号、 名称, 检测脚本进行检 查时的建议, 检测脚本对应的功能说明等。
步骤 103 , 设置待检测设备的相关信息;
具体的, 在检测模块提供的界面上设置一个待检测设备的相关信息, 即通过界面输入该待检测设备的网络之间互连的协议( IP, Internet Protocol ) 地址, 登录该待检测设备的登录方式, 以及登录方式对应的用户名和密码, 还有 Telnet远程登录的用户名和密码; 登录该待检测设备的登录方式包括 文件传输协议( FTP, File Transfer Protocol )登录方式和安全外壳协议( SSH, Secure Shell Protocol ) 登录方式。
步骤 104,检测模块根据实际情况对检测包中的检测脚本的信息进行修 改, 并根据待检测设备的相关信息将检测包发送给待检测设备;
具体的, 检测模块可以自动识别检测包目录下的各个检测包, 通过解 析 XML格式的配置文件读取各个 shell检测脚本的主要功能; 检测模块根 据需要选择检测包, 检测包中的 shell检测脚本都有功能说明和默认的阔值 等信息, 该阔值和功能说明等信息有可能与实际情况不符, 所以可以根据 实际情况, 对选出的检测包中的各个 shell检测脚本的名称、 功能说明、 检 测项默认的阔值等信息进行修改, 以修改后的阔值为标准进行检测, 还可 以根据实际情况设置 shell检测脚本是否需要执行; 例如, 检测项是彩铃的 开销户的成功率, 检测项默认的阔值是 90%, 即大于或等于 90%为正常, 小于 90%为异常, 此时, 可以根据实际情况对该阔值进行修改;
根据 XML格式的配置文件中配置的检测包的属性找到需要发送的检 测包, 检测模块根据实际情况对检测包中的检测脚本的信息进行修改后, 以 FTP登录方式或者 SSH登录方式登录到待检测设备, 登录后点击检测模 块提供的界面上的创建按钮, 检测模块根据预先设置的待检测设备的相关 信息中的 IP地址, 通过网络命令将找到的检测包发送给待检测设备, 待检 测设备将收到的检测包保存到 checktooldata 目录下, 该目录可以在待检测 设备中预先创建。
步骤 105 , 对待检测设备的检测项进行检测, 显示检测结果;
具体的, 在检测模块输入 Telnet远程登录的用户名和密码后, 在检测 模块提供的界面上点击开始按钮, 检测模块对待检测设备的检测项进行检 检测脚本将各个检测项的检测结果, 即 Result的值反馈到检测模块, 检测 模块提供的界面上显示检测结果; 例如, 如果 Result的值为 0, 表示检测通 过, 检测通过的具体内容是能够正确连接, 并且 shell检测脚本正常运行, 检测结果达到阔值; 如果 Result的值为 1 , 表示检测未通过, 检测未通过的 具体内容是能够正确连接, 并且 shell检测脚本正常运行, 但是检测结果未 达到阔值; 如果 Result的值为 8 , 表示不支持, 不支持的具体内容是当前设 备的环境不支持此检测项的运行, 例如待检测设备的操作系统或者数据库 类型不支持此检测项的运行; 如果 Result的值为 9, 表示检测失败, 检测失 败的具体内容是除了以上三种情况以外的所有情况, 包括不能正确连接, shell检测脚本不存在 , shell检测脚本未成功运行, shell检测脚本运行过程 中出错或待检测设备环境异常等; 检测模块实时获取检测包中 shell检测脚 本的运行日志;
当检测结果或者运行日志比较多时, 可以在待检测设备上设置一个临 时文件, 将检测结果和运行日志暂时保存在该文件中, 在运行完最后一个 shell检测脚本后, 检测模块利用 cat命令读取并显示文件中的内容。
步骤 106, 根据检测结果生成报表;
具体的, 在待检测设备的检测项都检测完成后, 检测模块的界面可以 提示检测完成, 同时检测模块根据 shell检测脚本运行过程中反馈的检测结 果, 生成 excel报表, 提供给维护设备的工程人员, 便于工程人员查看。
为实现上述方法, 本发明还提供一种运行状态的检测系统, 图 2是本 发明实现运行状态的检测系统的结构示意图, 如图 2所示, 该系统包括: 设置模块 21、 检测模块 22、 待检测设备 23; 其中,
设置模块 21 , 用于设置检测模块 22; 根据待检测设备 23的检测项设 置检测脚本, 并生成检测包; 检测模块 22 ,用于根据预先设置的待检测设备 23的相关信息将检测包 发送给待检测设备 23; 对待检测设备 23的检测项进行检测;
待检测设备 23 , 用于保存检测模块 22发送的检测包。
所述设置模块 21进一步用于生成检测包目录并将所述检测包放到检测 包目录; 和 /或, 设置待检测设备 23的相关信息;
设置模块 21设置待检测设备 23的相关信息为: 在检测模块 22提供的 界面上设置待检测设备 23的 IP地址, 登录待检测设备 23的登录方式, 以 及登录方式对应的用户名和密码, Telnet远程登录的用户名和密码;
所述检测模块 22进一步用于根据实际情况对所述检测包中的检测脚本 的信息进行修改; 和 /或, 显示检测结果, 并根据检测结果生成报表;
检测模块 22根据预先设置的待检测设备 23的相关信息将检测包发送 给待检测设备 23为: 根据 XML格式的配置文件中配置的检测包的属性找 到需要发送的检测包, 检测模块 22登录到待检测设备 23后点击界面上的 创建按钮,根据预先设置的待检测设备 23的 IP地址,通过网络命令将所述 检测包发送给待检测设备 23 ;
检测模块 22对待检测设备 23的检测项进行检测为: 检测模块 22输入 Telnet远程登录的用户名和密码后, 点击开始按钮,检测脚本在待检测设备 23上运行, 并将检测结果反馈到检测模块 22。
该系统进一步包括: 配置模块 24, 用于对检测脚本和检测包进行配置; 配置模块 24对检测脚本和检测包进行配置为: 利用 XML格式的配置 文件对检测脚本的属性和检测包的属性进行配置, 每个检测包对应一个 XML格式的配置文件, 配置文件对应保存在检测包目录下; 所述检测包的 属性包括检测包的名称、 检测包应用的待检测设备、 检测包能够用于检测 的操作系统等, 所述检测包可用于检测的操作系统是 linux操作系统和 unix 操作系统; 所述检测脚本的属性包括检测脚本的编号、 名称, 检测脚本进 行检查时的建议, 检测脚本对应的功能说明等。
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。

Claims

权利要求书
1、 一种运行状态的检测方法, 其特征在于, 该方法包括:
设置检测模块; 根据待检测设备的检测项设置检测脚本, 并生成检测 包;
检测模块根据预先设置的待检测设备的相关信息将检测包发送给待检 测设备; 对待检测设备的检测项进行检测。
2、 根据权利要求 1所述的方法, 其特征在于,
所述设置检测模块之后还包括: 生成检测包目录;
所述生成检测包之后还包括: 将所述检测包放到所述检测包目录, 对 检测脚本和检测包进行配置。
3、 根据权利要求 2所述的方法, 其特征在于, 所述对检测脚本和检测 包进行配置为:
利用可扩展标记语言 (XML )格式的配置文件对检测脚本的属性和检 测包的属性进行配置, 每个检测包对应一个 XML格式的配置文件, 配置文 件对应保存在检测包目录下。
4、 根据权利要求 2或 3所述的方法, 其特征在于,
所述检测包的属性包括检测包的名称、 检测包应用的待检测设备、 检 测包能够用于检测的操作系统;
所述检测脚本的属性包括检测脚本的编号、 名称, 检测脚本进行检查 时的建议, 检测脚本对应的功能说明。
5、 根据权利要求 1或 2所述的方法, 其特征在于, 所述对检测脚本和 检测包进行配置之后还包括:
设置待检测设备的相关信息。
6、 根据权利要求 5所述的方法, 其特征在于, 所述设置待检测设备的 相关信息为: 在检测模块提供的界面上设置待检测设备的网络之间互连的协议 ( IP ) 地址, 登录待检测设备的登录方式, 以及登录方式对应的用户名和密码, Telnet远程登录的用户名和密码。
7、 根据权利要求 1至 3任一所述的方法, 其特征在于, 所述检测模块 根据预先设置的待检测设备的相关信息将检测包发送给待检测设备之前还 包括:
检测模块根据实际情况对所述检测包中的检测脚本的信息进行修改。
8、 根据权利要求 1至 3任一所述的方法, 其特征在于, 所述对待检测 设备的检测项进行检测之后还包括:
显示检测结果, 并根据检测结果生成报表。
9、 根据权利要求 3所述的方法, 其特征在于, 所述检测模块根据预先 设置的待检测设备的相关信息将检测包发送给待检测设备为:
根据 XML格式的配置文件中配置的检测包的属性找到需要发送的检 测包, 检测模块登录到待检测设备后点击界面上的创建按钮, 根据预先设 置的待检测设备的 IP地址,通过网络命令将所述检测包发送给待检测设备。
10、 根据权利要求 9所述的方法, 其特征在于, 所述对待检测设备的 检测项进行检测为:
检测模块输入 Telnet远程登录的用户名和密码后, 点击开始按钮, 检 测脚本在待检测设备上运行, 并将检测结果反馈到检测模块。
11、 一种运行状态的检测系统, 其特征在于, 该系统包括: 设置模块、 检测模块、 待检测设备; 其中,
设置模块, 用于设置检测模块; 根据待检测设备的检测项设置检测脚 本, 并生成检测包;
检测模块, 用于根据预先设置的待检测设备的相关信息将检测包发送 给待检测设备; 对待检测设备的检测项进行检测; 待检测设备, 用于保存检测模块发送的检测包。
12、 根据权利要求 11所述的系统, 其特征在于,
所述设置模块进一步用于生成检测包目录并将所述检测包放到检测包 目录; 和 /或, 设置待检测设备的相关信息;
所述检测模块进一步用于根据实际情况对所述检测包中的检测脚本的 信息进行修改; 和 /或, 显示检测结果, 并根据检测结果生成报表。
13、 根据权利要求 11或 12所述的系统, 其特征在于, 该系统进一步 包括:
配置模块, 用于对检测脚本和检测包进行配置。
PCT/CN2010/078918 2010-06-11 2010-11-19 一种运行状态的检测方法及系统 WO2011153792A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010200725.7A CN101894059B (zh) 2010-06-11 2010-06-11 一种运行状态的检测方法及系统
CN201010200725.7 2010-06-11

Publications (1)

Publication Number Publication Date
WO2011153792A1 true WO2011153792A1 (zh) 2011-12-15

Family

ID=43103254

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/078918 WO2011153792A1 (zh) 2010-06-11 2010-11-19 一种运行状态的检测方法及系统

Country Status (2)

Country Link
CN (1) CN101894059B (zh)
WO (1) WO2011153792A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404323A (zh) * 2011-11-18 2012-04-04 深圳中兴网信科技有限公司 一种网络攻击ip自动拒绝方法
CN103178994A (zh) * 2011-12-26 2013-06-26 闻泰通讯股份有限公司 自动检测多台服务器的方法
CN105630647A (zh) * 2014-11-28 2016-06-01 中兴通讯股份有限公司 一种设备检测方法及检测设备
CN105068902B (zh) * 2015-07-31 2018-06-15 国家电网公司 一种类Unix操作系统计算机硬件检测方法
CN105183649A (zh) * 2015-09-08 2015-12-23 武汉虹信通信技术有限责任公司 一种用于自动化测试的自动telnet方法及系统
CN105553763A (zh) * 2015-12-10 2016-05-04 山东中创软件商用中间件股份有限公司 一种基于网络的检测方法及系统
CN105738723A (zh) * 2016-01-29 2016-07-06 苏州佳世达电通有限公司 一种产线自动检测方法和检测设备
CN107995152B (zh) * 2016-10-27 2020-07-03 腾讯科技(深圳)有限公司 一种恶意访问检测方法、装置及检测服务器
CN110071844A (zh) * 2019-05-14 2019-07-30 广东电网有限责任公司 一种检测脚本创建系统、方法和相关装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145985A (zh) * 2007-06-20 2008-03-19 中兴通讯股份有限公司 一种远程实时检测自动交换光网络运行状态的方法和系统
CN101354677A (zh) * 2008-09-11 2009-01-28 青岛海信移动通信技术股份有限公司 一种应用程序运行状态的检测方法、恢复方法及装置
CN101605063A (zh) * 2008-06-10 2009-12-16 鸿富锦精密工业(深圳)有限公司 网络故障定位系统及方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100395707C (zh) * 2006-02-07 2008-06-18 华为技术有限公司 升级程序的方法
CN100544292C (zh) * 2007-07-03 2009-09-23 中兴通讯股份有限公司 一种宽带接入服务器自动化测试的方法
CN101610498B (zh) * 2008-06-20 2012-05-09 中兴通讯股份有限公司 一种移动终端更新设备管理对象的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145985A (zh) * 2007-06-20 2008-03-19 中兴通讯股份有限公司 一种远程实时检测自动交换光网络运行状态的方法和系统
CN101605063A (zh) * 2008-06-10 2009-12-16 鸿富锦精密工业(深圳)有限公司 网络故障定位系统及方法
CN101354677A (zh) * 2008-09-11 2009-01-28 青岛海信移动通信技术股份有限公司 一种应用程序运行状态的检测方法、恢复方法及装置

Also Published As

Publication number Publication date
CN101894059B (zh) 2016-02-24
CN101894059A (zh) 2010-11-24

Similar Documents

Publication Publication Date Title
WO2011153792A1 (zh) 一种运行状态的检测方法及系统
CN109495308B (zh) 一种基于管理信息系统的自动化运维系统
CN102385582B (zh) 生产测试数据处理方法、服务器及系统
US8661095B2 (en) Identifying scripting form of text commands for a network device
WO2012088905A1 (zh) 一种通讯网络系统及通讯设备的巡检子系统和巡检方法
JP2000200232A (ja) インタラクティブネットワ―ク転送プロトコルサ―バを備えた非同期通知を結合するネットワ―ク装置
CN106936633B (zh) 一种应用安装包制作的方法及服务器
CN103138985B (zh) 一种支撑网业务主机进程控制方法和系统
CN111966465B (zh) 一种实时修改宿主机配置参数的方法、系统、设备及介质
CN104809015A (zh) 一种基于Linux系统下的自动部署Oracle rac环境的方法
CN108717362B (zh) 一种基于可继承结构的网络设备配置系统及配置方法
CN105487859B (zh) 一种基于模板的大数据组件web部署方法
WO2012139461A1 (zh) 一种数据采集方法、装置及系统
WO2013056571A1 (zh) 信令跟踪的处理方法及装置
CN113946559A (zh) 数据处理方法、目标数据库系统及数据处理系统
CN115134193B (zh) 在现有数据中心结构中部署网络管理控制器的方法和系统
CN114554618A (zh) 一种无线接入点装置、设备接入方法、设备及存储介质
CN114726789A (zh) 流量管理、配置流量管理策略的方法、装置、设备及介质
CN102736926A (zh) 一种基于任务模板的升级方法及装置、批量升级系统
CN103457771B (zh) 一种ha的虚拟机集群的管理方法和设备
CN113282374B (zh) 一种服务器控制方法、装置及系统
WO2022121492A1 (zh) 文件传输方法、装置、计算机设备及存储介质
CN109274715A (zh) 车载多通道通信系统的平台资源管理系统
CN110955537B (zh) 一种物理机纳管方法及装置
Cisco Release Notes for Cisco MGX 8260 Media Gateway, Version 1.2.4

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

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

Country of ref document: EP

Kind code of ref document: A1