CN103310290B - Remote inventorying method and system for network equipment, and inventorying platform - Google Patents
Remote inventorying method and system for network equipment, and inventorying platform Download PDFInfo
- Publication number
- CN103310290B CN103310290B CN201210065982.3A CN201210065982A CN103310290B CN 103310290 B CN103310290 B CN 103310290B CN 201210065982 A CN201210065982 A CN 201210065982A CN 103310290 B CN103310290 B CN 103310290B
- Authority
- CN
- China
- Prior art keywords
- switch
- information
- inventory
- parts
- management server
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000006735 deficit Effects 0.000 claims description 10
- 238000013475 authorization Methods 0.000 claims description 5
- 238000004458 analytical method Methods 0.000 claims description 4
- 238000007726 management method Methods 0.000 description 58
- 238000012544 monitoring process Methods 0.000 description 22
- 230000006870 function Effects 0.000 description 8
- 239000003795 chemical substances by application Substances 0.000 description 6
- 230000002349 favourable effect Effects 0.000 description 6
- 239000002699 waste material Substances 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- General Factory Administration (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明提出一种网络设备远程盘点方法,包括以下步骤:盘点平台向网络组工作平台发送盘点请求;网络组工作平台根据盘点请求获取各个交换机对应的软件版本信息,且根据软件版本信息生成各个交换机对应的设备信息抓取命令并发送交换机管理服务器;交换机管理服务器根据盘点请求获得对应的交换机的日志信息;和盘点平台根据日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果。本发明的实施例具有远程且自动化盘点的优点,降低人力,节省成本,且盘点准确。本发明还提出了一种网络设备远程盘点的系统、盘点平台以及交换机管理服务器。
The present invention proposes a remote inventory method for network equipment, comprising the following steps: the inventory platform sends an inventory request to the network group work platform; the network group work platform obtains the software version information corresponding to each switch according to the inventory request, and generates each switch according to the software version information The corresponding device information grabs the command and sends it to the switch management server; the switch management server obtains the log information of the corresponding switch according to the inventory request; and the inventory platform compares the log information with the pre-stored switch information and part information to generate an inventory result. The embodiment of the present invention has the advantages of remote and automatic stocktaking, reduces manpower, saves costs, and is accurate in stocktaking. The invention also provides a remote inventory system for network equipment, an inventory platform and a switch management server.
Description
技术领域technical field
本发明设计计算机技术领域,特别设计一种网络设备远程盘点方法、网络设备远程盘点系统、盘点平台以及交换机管理服务器。The invention relates to the field of computer technology, and particularly designs a remote inventory method for network equipment, a remote inventory system for network equipment, an inventory platform, and a switch management server.
背景技术Background technique
随着互联网行业规模的不断扩大IDC机房建设迅速,网络设备数量不断增加,对于网络设备管理的挑战性越来越高。现行盘点办法过于依赖人工操作自动化程度较低,因此在盘点效率和正确率上有所欠缺。With the continuous expansion of the scale of the Internet industry, the construction of IDC equipment rooms is rapid, and the number of network devices continues to increase, making network device management more and more challenging. The current inventory method relies too much on manual operations and has a low degree of automation, so it lacks in inventory efficiency and accuracy.
现有公司对于在线网络设备盘点只是基于数量与账目的核对,而且网络设备并不支持热插拔功能,因此在线设备中部分网络零件如板卡、光电模块、电源模块无法查看实物序列号,只能根据账本记录现场核查数量是否吻合。即不能保证网络零件信息记录正确,又不能保证网络零件对应关系准确,所以现有技术在盘点信息准确性上存在较大隐患,违背了资产管理账实相符的最终目的。The existing company's inventory of online network equipment is only based on the verification of quantity and accounts, and the network equipment does not support the hot-swappable function. Can check whether the quantity matches on-site according to the ledger records. That is, it cannot guarantee that the information records of network parts are correct, and it cannot guarantee that the corresponding relationship of network parts is accurate. Therefore, the existing technology has great hidden dangers in the accuracy of inventory information, which violates the ultimate goal of asset management account matching.
目前普遍使用的盘点方式包括实地盘点法、条码盘点法以及电子标签法三种。实地盘点法通过打印纸质文档人工现场核实在线网络设备数量,与账本记录进行对比得出盘点结果。该方式适用于小型IDC机房,如IDC规模庞大在线网络设备数量众多,采取此种方式对于盘点人员数量要求较高,盘点耗时较长,不能对盘点过程中设备使用状态的改变进行实时记录,因此数据准确性难以保证。条码盘点法通过条码识别工具对贴有条码的在线网络设备进行扫描,根据设备标签的唯一性在系统中匹配与之相符的数据,得到设备的盘点结果。该方法虽然不需要打印纸质文档,盘点效率和准确性有所提升,但是要求每个设备都粘贴可被识别的条码标签,部分网络零件如板卡、光模块在使用时需要全部插入交换机中且不具备在线插拔功能,扫码工具无法对实物标签扫描,因此限制了此方法的盘点覆盖范围。所以该方法只适用于盘点粒度相对较低的公司使用,对于盘点粒度精确到光模块、板卡级别网络零件的公司并不适用。而且此类条码多为纸质标签随着使用年限的增加会出现老化、脱落、不易识别的现象,对盘点进度影响较大。相对于现场盘点法而言条码盘点法虽然优化了盘点方法和盘点效率但是仍然依赖人工采集信息,适合于IDC规模较小,管理者对盘点粒度要求不高的机房使用。若线上设备数量较多且对盘点粒度要求较高的机房并不适用。电子标签管理法,即射频识别技术。首先要对所有在线网络设备粘贴应答器(电子标签),应答器会主动发送固定频率的射频信号,通过阅读器(手持终端)接收并解码信号后将信息反馈给中央系统,待在线网络设备信息收集完毕后再根据系统记录进行比对输出盘点结果。此种方法克服了盘点过程中的人工依赖,提升了盘点效率,保障了盘点数据的准确性。但是应答器的价格过高,数量要求较多。前期需要投入大量资金致使盘点成本大大提升,仅作为盘点使用性价比并不突出。而且应用此种管理方法的前提条件是被盘点设备必须粘贴电子标签,网络设备精密度相对较高网络零件并不能全部满足电子标签粘贴要求。如板卡、光模块粘贴电子标签后可能会影响设备正常使用,因此电子标签管理法在适用度上有所限制,对于在线盘点要求较高,设备管理精确度达到零件序列号层面的公司并不适用。Currently commonly used inventory methods include physical inventory method, barcode inventory method and electronic label method. The physical inventory method manually verifies the number of online network devices by printing paper documents, and compares them with the ledger records to obtain the inventory results. This method is suitable for small IDC computer rooms. For example, if the IDC has a large scale and a large number of online network devices, this method requires a high number of inventory personnel, takes a long time to take inventory, and cannot record the changes in the use status of the equipment in the inventory process in real time. Therefore, the accuracy of the data cannot be guaranteed. The barcode inventory method uses a barcode recognition tool to scan the online network equipment with a barcode, and matches the corresponding data in the system according to the uniqueness of the equipment label to obtain the inventory result of the equipment. Although this method does not need to print paper documents, the inventory efficiency and accuracy have been improved, but it requires each device to be pasted with an identifiable barcode label, and some network components such as boards and optical modules need to be inserted into the switch when in use. And it does not have the function of online plugging and unplugging, and the scanning tool cannot scan the physical label, thus limiting the inventory coverage of this method. Therefore, this method is only suitable for companies with a relatively low inventory granularity, and is not suitable for companies whose inventory granularity is as accurate as optical modules and board-level network components. Moreover, most of these barcodes are paper labels, which will age, fall off, and be difficult to identify as the service life increases, which will have a greater impact on the inventory progress. Compared with the on-site inventory method, although the barcode inventory method optimizes the inventory method and inventory efficiency, it still relies on manual collection of information. It is suitable for use in computer rooms where the IDC scale is small and the manager does not require high inventory granularity. It is not suitable for computer rooms with a large number of online devices and high requirements for inventory granularity. Electronic label management method, that is, radio frequency identification technology. First of all, a transponder (electronic label) should be attached to all online network devices. The transponder will actively send a fixed-frequency radio frequency signal, receive and decode the signal through a reader (handheld terminal), and then feed back the information to the central system. After the collection is completed, compare and output the inventory results according to the system records. This method overcomes the manual dependence in the inventory process, improves the efficiency of the inventory, and ensures the accuracy of the inventory data. However, the price of the transponder is too high, and the quantity requirement is relatively large. A large amount of capital needs to be invested in the early stage, which greatly increases the inventory cost, and the cost performance is not outstanding only as an inventory. Moreover, the prerequisite for applying this management method is that the equipment to be inventoried must be pasted with electronic labels, and the precision of network equipment is relatively high, and network components cannot all meet the requirements for pasting electronic labels. For example, sticking electronic labels on boards and optical modules may affect the normal use of equipment. Therefore, the electronic label management method is limited in applicability. Companies with high requirements for online inventory and equipment management accuracy reaching the level of part serial numbers do not Be applicable.
发明内容Contents of the invention
本发明旨在至少解决现有技术中存在的技术问题之一。The present invention aims to solve at least one of the technical problems existing in the prior art.
为此,本发明的一个目的在于提出一种能够远程、自动化且准确盘点网络设备的数量,且能够精确地盘点出网络设备内各个零件是否对应的网络设备远程盘点方法。Therefore, an object of the present invention is to propose a remote inventory method for network equipment that can remotely, automatically and accurately count the number of network equipment, and accurately check whether each part in the network equipment corresponds to each other.
本发明的另一目的在于提出一种网络设备远程盘点系统。Another object of the present invention is to provide a remote inventory system for network equipment.
本发明的再一目的在于提出一种盘点平台。Another object of the present invention is to provide an inventory platform.
本发明的第四个目的在于提出一种交换机管理服务器。The fourth object of the present invention is to provide a switch management server.
为了实现上述目的,本发明第一方面实施例提出了一种网络设备远程盘点方法,包括以下步骤:盘点平台向网络组工作平台发送盘点请求;所述网络组工作平台根据所述盘点请求获取各个交换机对应的软件版本信息;所述网络组工作平台根据所述软件版本信息生成所述各个交换机对应的设备信息抓取命令并发送交换机管理服务器;所述交换机管理服务器根据所述盘点请求获得对应的交换机的日志信息,其中,所述日志信息包括所述交换机的信息以及所述交换机内部的零件信息;以及所述盘点平台获得所述日志信息,并根据所述日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果。In order to achieve the above object, the embodiment of the first aspect of the present invention proposes a remote inventory method for network equipment, including the following steps: the inventory platform sends an inventory request to the network group work platform; the network group work platform obtains each The software version information corresponding to the switch; the network group work platform generates the device information capture command corresponding to each switch according to the software version information and sends it to the switch management server; the switch management server obtains the corresponding The log information of the switch, wherein the log information includes the information of the switch and the parts information inside the switch; and the inventory platform obtains the log information, and according to the log information and the pre-stored switch information and parts The information is compared to generate inventory results.
根据本发明实施例的方法能够有效解决服务器机房规模不断扩大导致的线上设备人工盘点的困难,且避免了人力资源浪费,减少了人为操作环节确保了盘点信息准确。本发明的实施例的方法能够自动对网络设备进行远程盘点,有效提高了在线设备盘点效率,而且自动盘点功能是基于网络设备自身特性不需要前期资金投入,节省了预算支出,对于各种规模的机房提供了良好的管理方法,实时掌握在线设备信息,为资产安全提供了有利保障。且不仅精确盘点出数量的准确,还能盘点出网络设备内零件是否对应。The method according to the embodiment of the present invention can effectively solve the difficulty of manual inventory of online equipment caused by the continuous expansion of the scale of the server room, avoid the waste of human resources, reduce the human operation links and ensure the accuracy of the inventory information. The method of the embodiment of the present invention can automatically carry out remote inventory of network equipment, which effectively improves the efficiency of online equipment inventory, and the automatic inventory function is based on the characteristics of the network equipment itself, which does not require early capital investment and saves budget expenditures. The computer room provides a good management method, real-time grasp of online equipment information, and provides a favorable guarantee for asset security. And it not only accurately counts the accuracy of the quantity, but also checks whether the parts in the network equipment are corresponding.
本发明第二方面实施例提出了一种网络设备远程盘点系统,包括:盘点平台、与所述盘点平台相连的网络组工作平台、与所述网络组工作平台相连的交换机管理服务器以及与所述交换机管理服务器相连的多个交换机,其中,所述盘点平台用于向网络组工作平台发送盘点请求,以及获得日志信息,并根据所述日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果;所述网络组工作平台用于根据所述盘点请求获取各个交换机对应的软件版本信息,以及根据所述软件版本信息生成所述各个交换机对应的设备信息抓取命令并发送交换机管理服务器;所述交换机管理服务器用于根据所述盘点请求获得对应的交换机的日志信息,其中,所述日志信息包括所述交换机的信息以及所述交换机内部的零件信息。The embodiment of the second aspect of the present invention proposes a remote inventory system for network equipment, including: an inventory platform, a network group work platform connected to the inventory platform, a switch management server connected to the network group work platform, and the A plurality of switches connected to the switch management server, wherein the inventory platform is used to send an inventory request to the network group work platform, and obtain log information, and compare the log information with pre-stored switch information and part information to generate Inventory results; the network group work platform is used to obtain the software version information corresponding to each switch according to the inventory request, and generate the device information capture command corresponding to each switch according to the software version information and send it to the switch management server; The switch management server is configured to obtain log information of a corresponding switch according to the inventory request, where the log information includes information about the switch and information about parts inside the switch.
根据本发明实施例的系统能够自动对网络设备进行远程盘点,有效提高了在线设备盘点效率,而且自动盘点功能是基于网络设备自身特性不需要前期资金投入,节省了预算支出,降低了成本,且对于各种规模的机房提供了良好的管理,实时掌握在线设备信息,为资产安全提供了有利保障。不仅精确盘点出数量的准确,还能盘点出网络设备内零件是否对应。The system according to the embodiment of the present invention can automatically perform a remote inventory of network equipment, effectively improving the efficiency of online equipment inventory, and the automatic inventory function is based on the characteristics of the network equipment itself without the need for early capital investment, saving budgetary expenditures and reducing costs, and It provides good management for computer rooms of various sizes, real-time grasp of online equipment information, and provides a favorable guarantee for asset security. It not only accurately counts the accuracy of the quantity, but also checks whether the parts in the network equipment are corresponding.
本发明第三方面实施例提出了一种盘点平台,包括发送模块,用于向网络组工作平台发送盘点请求;接收模块,用于从所述网络组工作平台获得所述各个交换机的日志信息,其中,所述日志信息包括所述交换机的信息以及所述交换机内部的零件信息;以及盘点模块,用于根据所述日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果。The embodiment of the third aspect of the present invention proposes an inventory platform, including a sending module for sending an inventory request to the network group work platform; a receiving module for obtaining the log information of each switch from the network group work platform, Wherein, the log information includes information of the switch and parts information inside the switch; and an inventory module, configured to compare the log information with pre-stored switch information and part information to generate an inventory result.
根据本发明实施例的盘点平台能够对网络设备进行远程准确的自动化盘点,有效解决服务器机房规模不断扩大导致的线上设备人工盘点的困难,且避免了人力资源浪费,减少了人为操作环节确保了盘点信息准确。且节省了预算支出,并为资产安全提供了有利保障。The inventory platform according to the embodiment of the present invention can carry out remote and accurate automatic inventory of network equipment, effectively solve the difficulty of manual inventory of online equipment caused by the continuous expansion of server room scale, avoid the waste of human resources, and reduce the manual operation. The inventory information is accurate. And save the budget expenditure, and provide a favorable guarantee for asset safety.
本发明第四方面实施例提出了一种交换机管理服务器,其特征在于,包括:接收模块,用于接收网络组工作平台发送的盘点请求;命令生成模块,用于根据所述盘点请求获得对应的交换机的日志信息,其中,所述日志信息包括所述交换机的信息以及所述交换机内部的零件信息;整理反馈模块,用于将所述日志信息反馈至所述网络组工作平台。The embodiment of the fourth aspect of the present invention proposes a switch management server, which is characterized in that it includes: a receiving module, used to receive the inventory request sent by the network group work platform; a command generation module, used to obtain the corresponding inventory request according to the inventory request The log information of the switch, wherein the log information includes the information of the switch and the internal parts information of the switch; a sorting and feedback module is used to feed back the log information to the network group work platform.
根据本发明实施例的交换机管理服务器,通过抓取命令抓取各个交换机的日志信息,具有抓取准确且自动化的优点。According to the switch management server of the embodiment of the present invention, the log information of each switch is captured by a capture command, which has the advantages of accurate and automatic capture.
本发明的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and comprehensible from the description of the embodiments in conjunction with the following drawings, wherein:
图1为本发明实施例的网络设备远程盘点方法的流程图;Fig. 1 is the flow chart of the network device remote inventory method of the embodiment of the present invention;
图2为本发明实施例的网络设备远程盘点方法的详细流程图;以及Fig. 2 is the detailed flowchart of the network device remote inventory method of the embodiment of the present invention; And
图3为本发明实施例的网络设备远程盘点系统的结构图;Fig. 3 is the structural diagram of the network device remote inventory system of the embodiment of the present invention;
图4为本发明一个实施例的网络设备远程盘点系统;Fig. 4 is the network device remote inventory system of an embodiment of the present invention;
图5为本发明实施例的盘点平台的结构图;以及Fig. 5 is the structural diagram of the inventory platform of the embodiment of the present invention; And
图6为本发明实施例的交换机管理服务器的结构图。FIG. 6 is a structural diagram of a switch management server according to an embodiment of the present invention.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
在本发明的描述中,术语“纵向”、“横向”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明而不是要求本发明必须以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the present invention, the terms "longitudinal", "transverse", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", " The orientations or positional relationships indicated by "top", "bottom", etc. are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and do not require that the present invention must be constructed and operated in a specific orientation, so they cannot be understood as Limitations on the Invention.
参照下面的描述和附图,将清楚本发明的实施例的这些和其他方面。在这些描述和附图中,具体公开了本发明的实施例中的一些特定实施方式,来表示实施本发明的实施例的原理的一些方式,但是应当理解,本发明的实施例的范围不受此限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。These and other aspects of embodiments of the invention will become apparent with reference to the following description and drawings. In these descriptions and drawings, some specific implementations of the embodiments of the present invention are specifically disclosed to represent some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited by this limit. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.
以下结合附图1-2首先描述根据本发明实施例的网络设备远程盘点方法。The method for remote inventory of network equipment according to the embodiment of the present invention will be firstly described below with reference to FIGS. 1-2 .
本发明的实施例是以目前机房内的交换机大部分支持设备信息抓取命令(命令获取相关信息),从而可通过日志抓取系统(交换机管理服务器)登录交换机运行设备信息抓取命令抓取各个交换机日志信息为基础的。具体地,参见图1,根据本发明实施例的网络设备远程盘点方法,包括如下步骤:Embodiments of the present invention are based on the fact that most of the switches in the computer room currently support device information capture commands (commands to obtain related information), so that the log capture system (switch management server) can log in to the switch to run the device information capture commands to capture each Based on switch log information. Specifically, referring to FIG. 1, the network device remote inventory method according to an embodiment of the present invention includes the following steps:
步骤S101,盘点平台向网络组工作平台发送盘点请求。其中,盘点请求包括机房信息、交换机类型信息、交换机序列号和交换机管理IP信息中的一种或多种。可以根据上述任意一种盘点请求进行对相应交换机的盘点。例如,当需要盘点某一个机房中的全部交换机时,则可以将上述的盘点信息定义为上述的机房信息,这样便可以对上述机房中的交换机进行盘点。当然,盘点信息也可以为机房信息、交换机类型信息、交换机序列号和交换机管理IP信息的其中的任意组合,例如,当需要盘点某一个机房中且某一类型的交换机时,则可以将上述的盘点信息定义为上述的机房信息和上述类型信息,这样便可以对上述机房中的具有上述交换机类型信息的的交换机进行盘点。此外,如需对单独的交换机进行盘点,则将盘点请求填写为交换机管理IP信息即可。Step S101, the inventory platform sends an inventory request to the network group work platform. Wherein, the inventory request includes one or more of equipment room information, switch type information, switch serial number and switch management IP information. The inventory of the corresponding switch can be performed according to any one of the above inventory requests. For example, when it is necessary to take inventory of all the switches in a certain computer room, the above-mentioned inventory information can be defined as the above-mentioned computer room information, so that the switches in the above-mentioned computer room can be inventoried. Of course, the inventory information can also be any combination of computer room information, switch type information, switch serial number and switch management IP information. The inventory information is defined as the information of the above-mentioned computer room and the above-mentioned type information, so that the switches in the above-mentioned computer room with the above-mentioned switch type information can be inventoried. In addition, if you need to take inventory of a separate switch, you can fill in the inventory request as the management IP information of the switch.
步骤S102,网络组工作平台根据所述盘点请求获取各个交换机对应的软件版本信息。在本发明的一个示例中,网络组工作平台例如可通过简单网络管理协议SNMP获取各个交换机对应的软件版本信息。通俗地讲,网络组工作平台(H平台)接到盘点请求后,会通过SNMP协议对相应的交换机进行识别获取设备版本信息(软件版本信息)。Step S102, the network group work platform obtains the software version information corresponding to each switch according to the inventory request. In an example of the present invention, the network group work platform can obtain the software version information corresponding to each switch through the simple network management protocol SNMP, for example. In layman's terms, after receiving the inventory request, the network group work platform (H platform) will identify the corresponding switch through the SNMP protocol to obtain device version information (software version information).
步骤S103,网络组工作平台根据所述软件版本信息生成所述各个交换机对应的设备信息抓取命令并发送交换机管理服务器。即网络组工作平台在生成设备信息抓取命令后登陆交换机管理服务器(CMD-AGENT),并向其发出盘点请求,以便交换机管理服务器获取交换机的日志信息。Step S103, the network group working platform generates a device information capture command corresponding to each switch according to the software version information and sends it to the switch management server. That is, the network group work platform logs in to the switch management server (CMD-AGENT) after generating the device information capture command, and sends an inventory request to it, so that the switch management server can obtain the log information of the switch.
具体而言,网络组工作平台在获取到相应的多个交换机中的每一个交换机的软件版本信息后,可根据该软件版本信息生成与该交换机对应的设备信息抓取命令。Specifically, after acquiring the software version information of each of the corresponding multiple switches, the network group working platform can generate a device information capture command corresponding to the switch according to the software version information.
需要说明的是,不同型号的交换机以及交换机使用的软件版本的不同,其交换机使用的设备信息抓取命令也不同,例如:华为Quidway S5400交换机所用软件版本为5.30与华为Quidway S9312交换机所用软件版本为5.50,两者之间的设备信息抓取命令就不同。因此,需要确定每一个交换机的软件版本信息后,方可根据该软件版本信息确定其所对应的设备信息抓取命令。It should be noted that different models of switches and different software versions used by the switches have different device information capture commands. For example, the software version used by the Huawei Quidway S5400 switch is 5.30 and the software version used by the Huawei Quidway S9312 switch is 5.50, the command to capture device information is different between the two. Therefore, after the software version information of each switch needs to be determined, the corresponding device information capture command can be determined according to the software version information.
步骤S104,交换机管理服务器根据所述盘点请求获得对应的交换机的日志信息,例如,交换机管理服务器可以通过身份验证、授权和统计AAA系统访问交换机并下载交换机的日志信息。当然,交换机管理服务器同样可以采用其它方式访问交换机,本发明的实施例对此并没有限制。Step S104, the switch management server obtains the log information of the corresponding switch according to the inventory request, for example, the switch management server can access the switch and download the log information of the switch through the authentication, authorization and statistics AAA system. Certainly, the switch management server may also use other methods to access the switch, which is not limited in this embodiment of the present invention.
具体地,交换机的日志信息包括交换机的信息以及交换机内部的零件信息。更为具体地,交换机的信息例如包括交换机类型和交换机序列号,交换机内部的零件信息例如包括零件类型和零件序列号SN等。当然,交换机内部的零件信息并不限于此,如交换机内部的零件的数量等。Specifically, the log information of the switch includes information about the switch and information about parts inside the switch. More specifically, the switch information includes, for example, the switch type and the switch serial number, and the internal part information of the switch includes, for example, the part type and the part serial number SN. Certainly, the part information inside the switch is not limited thereto, such as the quantity of parts inside the switch.
在本发明的一个示例中,交换机管理服务器(CMD-AGENT)命令交换机输出文件并下载最初的日志信息(LOG)。下载完毕后交换机管理服务器(CMD-AGENT)会对回收的日志信息进行初步分析,过滤与盘点无关的交换机信息并保留需求字段,例如交换机类型、交换机序列号(SN)、交换机内的零件类型等,并将过滤后的日志信息发给网络组工作平台(H平台)。In one example of the present invention, the switch management server (CMD-AGENT) commands the switch to output files and download initial log information (LOG). After the download is complete, the switch management server (CMD-AGENT) will conduct a preliminary analysis of the recovered log information, filter the switch information that is not related to the inventory and retain the required fields, such as the switch type, the switch serial number (SN), the type of parts in the switch, etc. , and send the filtered log information to the network group work platform (H platform).
步骤S105,盘点平台获得所述日志信息,并根据所述日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果。作为一个具体的示例,网络组工作平台(H平台)收到日志信息后会通知盘点平台,并提示盘点平台可以下载日志信息,此时盘点平台便可以登陆网络组工作平台(H平台)下载日志信息,并且对得到的日志信息进一步分析生成最终的盘点结果。Step S105, the inventory platform obtains the log information, and compares the log information with pre-stored switch information and component information to generate an inventory result. As a specific example, after receiving the log information, the network group work platform (H platform) will notify the inventory platform and prompt the inventory platform to download the log information. At this time, the inventory platform can log in to the network group work platform (H platform) to download the log information, and further analyze the obtained log information to generate the final inventory result.
具体而言,根据日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果,参见图2,包括如下步骤:Specifically, compare the log information with the pre-stored switch information and part information to generate an inventory result, see Figure 2, including the following steps:
步骤S51、从日志信息中获取每个交换机对应的零件信息。例如,交换机包括多个板卡、电源等零件,因此,每一种零件均有自身的零件类型以及同一种零件有着不同的零件序列号。Step S51, acquiring the part information corresponding to each switch from the log information. For example, a switch includes multiple boards, power supplies and other parts, therefore, each part has its own part type and the same part has different part serial numbers.
步骤S52、根据零件信息中的零件类型判断每个交换机中零件类型是否与系统(如远程监控系统RMS)中预存的零件类型对应。例如,对于某一个交换机而言,其在日志信息中可包括多种零件类型,同样在系统(如远程监控系统RMS)中对该交换机预存的零件类型同样为多种,将两者进行比较。判断两者的零件类型是否对应。Step S52 , according to the part type in the part information, it is judged whether the part type in each switch corresponds to the pre-stored part type in the system (such as the remote monitoring system RMS). For example, for a certain switch, its log information may include multiple types of parts, and similarly, there are also multiple types of parts pre-stored in the system (such as the remote monitoring system RMS), and the two are compared. Determine whether the part types of the two correspond.
步骤S53、如果对应(日志信息中的零件类型和系统(如远程监控系统RMS)中预存的零件类型对应),则进一步根据零件信息中的零件序列号判断每个交换机中零件序列号是否与系统中预存的零件序列号对应。也就是说,在判断日志信息中的零件类型和系统(如远程监控系统RMS)中预存的零件类型对应后,将对零件进行序列号比对,由于每一个零件存在唯一的序列号,因此通过对比序列号的方式可判断日志信息中记录的该零件是否与系统(如远程监控系统RMS)中预存的该零件是否为同一个零件。Step S53, if corresponding (the part type in the log information corresponds to the prestored part type in the system (such as the remote monitoring system RMS)), then further judge whether the part serial number in each switchboard is consistent with the system according to the part serial number in the part information Corresponds to the serial number of the part stored in the That is to say, after judging that the part type in the log information corresponds to the pre-stored part type in the system (such as the remote monitoring system RMS), the serial number of the part will be compared. Since each part has a unique serial number, it is passed The method of comparing the serial number can determine whether the part recorded in the log information is the same part as the part pre-stored in the system (such as the remote monitoring system RMS).
步骤S54、如果序列号对应,则判断盘点正确。即日志信息中记录的该交换机所包含的零件与系统(如远程监控系统RMS)中预存的该交换机的零件相同。Step S54, if the serial numbers correspond, it is judged that the inventory is correct. That is, the parts contained in the switch recorded in the log information are the same as the parts of the switch pre-stored in the system (such as the remote monitoring system RMS).
步骤S55、如果序列号不对应,则进一步进行盘盈或盘亏判断。Step S55, if the serial number does not correspond, then further judge whether the inventory is surplus or deficit.
其中,盘亏指系统(如远程监控系统RMS)记录的交换机类型,在日志文件中没有信息与之对应。Wherein, the disk loss refers to the switch type recorded by the system (such as the remote monitoring system RMS), and there is no corresponding information in the log file.
盘盈指在日志信息中抓取的类型,在系统中没有信息与之对应。Overage refers to the type captured in the log information, and there is no information corresponding to it in the system.
正确为类型,序列号、零件类型等均与系统(如远程监控系统RMS)中记录相符。The correct one is the type, the serial number, part type, etc. are all consistent with the records in the system (such as the remote monitoring system RMS).
如果判断其交换机/零件类型、交换机/零件名均与系统记录相符而零件序列号与系统中记录不同,则继续进行如下判断,根据日志信息对每个交换机对应的零件数量进行统计。If it is judged that the switch/part type and switch/part name are consistent with the system records and the part serial number is different from the system records, then continue to make the following judgments and count the number of parts corresponding to each switch according to the log information.
步骤S56、判断每个交换机的零件数量是否与系统中预存的数量相等。Step S56, judging whether the number of parts of each switch is equal to the number pre-stored in the system.
步骤S57、如果相等,则判断交换机的零件正确。Step S57, if they are equal, it is judged that the parts of the switch are correct.
步骤S58、如果交换机的零件数量大于系统中预存的该交换机的零件数量,则判断交换机的零件出现盘盈。即该交换机实际的零件数量多余系统(如远程监控系统RMS)中预存的该交换机的零件数量。Step S58, if the number of parts of the switch is greater than the number of parts of the switch pre-stored in the system, it is judged that the parts of the switch are overstocked. That is, the actual number of parts of the switch exceeds the number of parts of the switch pre-stored in the system (such as the remote monitoring system RMS).
步骤S59、如果交换机的零件数量小于系统中预存的数量,则判断所述交换机的零件出现盘亏。即该交换机实际的零件数量少于系统(如远程监控系统RMS)中预存的该交换机的零件数量。Step S59, if the quantity of parts of the switch is less than the quantity pre-stored in the system, it is judged that the parts of the switch are in deficit. That is, the actual number of parts of the switch is less than the number of parts of the switch pre-stored in the system (such as the remote monitoring system RMS).
在该实施例中,盘亏为日志信息中记录的零件数量小于系统中记录的零件数量。盘盈为日志信息中记录的零件数量大于系统中记录的零件数量。正确为日志中记录的零件数量等于系统中记录的零件数量。In this embodiment, the inventory deficit is that the number of parts recorded in the log information is less than the number of parts recorded in the system. Overage is the number of parts recorded in the log information is greater than the number of parts recorded in the system. Correct is that the number of parts recorded in the log is equal to the number of parts recorded in the system.
本发明实施例的方法能够有效解决服务器机房规模不断扩大导致的线上设备人工盘点的困难,且避免了人力资源浪费,减少了人为操作环节确保了盘点信息准确。本发明的实施例的方法能够自动对网络设备进行远程盘点,有效提高了在线设备盘点效率,而且自动盘点功能是基于网络设备自身特性不需要前期资金投入,节省了预算支出,对于各种规模的机房提供了良好的管理方法,实时掌握在线设备信息,为资产安全提供了有利保障。且不仅精确盘点出数量的准确,还能盘点出网络设备内零件是否对应。The method of the embodiment of the present invention can effectively solve the difficulty of manual inventory of online equipment caused by the continuous expansion of the scale of the server room, avoid the waste of human resources, and reduce the number of manual operations to ensure accurate inventory information. The method of the embodiment of the present invention can automatically carry out remote inventory of network equipment, which effectively improves the efficiency of online equipment inventory, and the automatic inventory function is based on the characteristics of the network equipment itself, which does not require early capital investment and saves budget expenditures. The computer room provides a good management method, real-time grasp of online equipment information, and provides a favorable guarantee for asset security. And it not only accurately counts the accuracy of the quantity, but also checks whether the parts in the network equipment are corresponding.
参考图3和图4,本发明的实施例还提出了一种网络设备远程盘点系统300,包括盘点平台310、与盘点平台310相连的网络组工作平台320、与网络组工作平台320相连的交换机管理服务器330以及与交换机管理服务器330相连的多个交换机340。其中:Referring to Fig. 3 and Fig. 4, the embodiment of the present invention also proposes a network device remote inventory system 300, comprising an inventory platform 310, a network group work platform 320 connected to the inventory platform 310, and a switch connected to the network group work platform 320 A management server 330 and a plurality of switches 340 connected to the switch management server 330 . in:
盘点平台310用于向网络组工作平台320发送盘点请求,以及获得日志信息,并根据所述日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果。The inventory platform 310 is used to send an inventory request to the network group work platform 320, obtain log information, and compare the log information with pre-stored switch information and component information to generate an inventory result.
网络组工作平台320用于根据盘点请求获取各个交换机(多个交换机340)对应的软件版本信息,以及根据软件版本信息生成各个交换机对应的设备信息抓取命令并发送交换机管理服务器330。The network group work platform 320 is used to obtain software version information corresponding to each switch (multiple switches 340 ) according to the inventory request, and generate a device information capture command corresponding to each switch according to the software version information and send it to the switch management server 330 .
交换机管理服务器330用于根据盘点请求获得对应的交换机的日志信息,其中,日志信息包括交换机的信息以及交换机内部的零件信息。The switch management server 330 is configured to obtain the log information of the corresponding switch according to the inventory request, wherein the log information includes the information of the switch and the information of parts inside the switch.
以下详细描述本发明实施例的各个功能模块。Each functional module of the embodiment of the present invention is described in detail below.
在本发明的具体示例中,盘点平台310向网络组工作平台320发送的盘点请求可包括机房信息、交换机类型信息、交换机序列号和交换机管理IP信息中的一种或多种。可以根据上述任意一种盘点请求进行对相应交换机的盘点。例如,当需要盘点某一个机房中的全部交换机时,则可以将上述的盘点信息定义为上述的机房信息,这样便可以对上述机房中的交换机进行盘点。当然,盘点信息也可以为机房信息、交换机类型信息、交换机序列号和交换机管理IP信息的其中的任意组合,例如,当需要盘点某一个机房中且某一类型的交换机时,则可以将上述的盘点信息定义为上述的机房信息和上述类型信息,这样便可以对上述机房中的具有上述交换机类型信息的的交换机进行盘点。此外,如需对单独的交换机进行盘点,则将盘点请求填写为交换机管理IP信息即可。In a specific example of the present invention, the inventory request sent by the inventory platform 310 to the network group work platform 320 may include one or more of equipment room information, switch type information, switch serial number, and switch management IP information. The inventory of the corresponding switch can be performed according to any one of the above inventory requests. For example, when it is necessary to take inventory of all the switches in a certain computer room, the above-mentioned inventory information can be defined as the above-mentioned computer room information, so that the switches in the above-mentioned computer room can be inventoried. Of course, the inventory information can also be any combination of computer room information, switch type information, switch serial number and switch management IP information. The inventory information is defined as the information of the above-mentioned computer room and the above-mentioned type information, so that the switches in the above-mentioned computer room with the above-mentioned switch type information can be inventoried. In addition, if you need to take inventory of a separate switch, you can fill in the inventory request as the management IP information of the switch.
在本发明的一个实施例中,盘点平台310还用于在获得所述日志信息后,根据所述日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果。作为一个具体的示例,网络组工作平台320(H平台)收到日志信息后会通知盘点平台,并提示盘点平台310可以下载日志信息,此时盘点平台310便可以登陆网络组工作平台320(H平台)下载日志信息,并且对得到的日志信息进一步分析生成最终的盘点结果。In one embodiment of the present invention, the inventory platform 310 is further configured to generate an inventory result by comparing the log information with pre-stored switch information and component information after obtaining the log information. As a specific example, the network group work platform 320 (H platform) will notify the inventory platform after receiving the log information, and prompt the inventory platform 310 to download the log information, and now the inventory platform 310 can log in to the network group work platform 320 (H platform) to download the log information, and further analyze the obtained log information to generate the final inventory result.
具体而言,盘点平台310根据日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果,包括:Specifically, the inventory platform 310 compares the log information with the pre-stored switch information and part information to generate an inventory result, including:
1、从日志信息中获取每个交换机对应的零件信息。例如,交换机包括多个板卡、电源等零件,因此,每一种零件均有自身的零件类型以及同一种零件有着不同的零件序列号。1. Obtain the part information corresponding to each switch from the log information. For example, a switch includes multiple boards, power supplies and other parts, therefore, each part has its own part type and the same part has different part serial numbers.
2、根据零件信息中的零件类型判断每个交换机中零件类型是否与系统(如远程监控系统RMS)中预存的零件类型对应。例如,对于某一个交换机而言,其在日志信息中可包括多种零件类型,同样在系统(如远程监控系统RMS)中对该交换机预存的零件类型同样为多种,将两者进行比较。判断两者的零件类型是否对应。2. According to the part type in the part information, it is judged whether the part type in each switch corresponds to the pre-stored part type in the system (such as the remote monitoring system RMS). For example, for a certain switch, its log information may include multiple types of parts, and similarly, there are also multiple types of parts pre-stored in the system (such as the remote monitoring system RMS), and the two are compared. Determine whether the part types of the two correspond.
3、如果对应(日志信息中的零件类型和系统(如远程监控系统RMS)中预存的零件类型对应),则进一步根据零件信息中的零件序列号判断每个交换机中零件序列号是否与系统中预存的零件序列号对应。也就是说,在判断日志信息中的零件类型和系统(如远程监控系统RMS)中预存的零件类型对应后,将对零件进行序列号比对,由于每一个零件存在唯一的序列号,因此通过对比序列号的方式可判断日志信息中记录的该零件是否与系统(如远程监控系统RMS)中预存的该零件是否为同一个零件。3. If it corresponds (the part type in the log information corresponds to the pre-stored part type in the system (such as the remote monitoring system RMS), then further judge whether the part serial number in each switch is the same as that in the system according to the part serial number in the part information. Corresponds to the pre-stored part serial number. That is to say, after judging that the part type in the log information corresponds to the pre-stored part type in the system (such as the remote monitoring system RMS), the serial number of the part will be compared. Since each part has a unique serial number, it is passed The method of comparing the serial number can determine whether the part recorded in the log information is the same part as the part pre-stored in the system (such as the remote monitoring system RMS).
4、如果序列号对应,则判断盘点正确。即日志信息中记录的该交换机所包含的零件与系统(如远程监控系统RMS)中预存的该交换机的零件相同。4. If the serial numbers correspond, it is judged that the inventory is correct. That is, the parts contained in the switch recorded in the log information are the same as the parts of the switch pre-stored in the system (such as the remote monitoring system RMS).
5、如果序列号不对应,则进一步进行盘盈或盘亏判断。5. If the serial number does not correspond, then further judge the profit or loss of the stock.
其中,盘亏指系统(如远程监控系统RMS)记录的交换机类型,在日志文件中没有信息与之对应。Wherein, the disk loss refers to the switch type recorded by the system (such as the remote monitoring system RMS), and there is no corresponding information in the log file.
盘盈指在日志信息中抓取的类型,在系统中没有信息与之对应。Overage refers to the type captured in the log information, and there is no information corresponding to it in the system.
正确为类型,序列号、零件类型等均与系统(如远程监控系统RMS)中记录相符。The correct one is the type, the serial number, part type, etc. are all consistent with the records in the system (such as the remote monitoring system RMS).
盘点平台310在判断其交换机/零件类型、交换机/零件名均与系统记录相符而零件序列号与系统中记录不同,盘点平台310将继续进行如下判断:Inventory platform 310 judges that its switch/part type and switch/part name are consistent with the system record but the part serial number is different from the record in the system. The inventory platform 310 will continue to make the following judgments:
6、根据日志信息对每个交换机对应的零件数量进行统计。6. Count the number of parts corresponding to each switch according to the log information.
7、判断每个交换机的零件数量是否与系统中预存的数量相等。7. Determine whether the number of parts of each switch is equal to the number pre-stored in the system.
8、如果相等,则判断交换机的零件正确。8. If they are equal, it is judged that the parts of the switch are correct.
9、如果交换机的零件数量大于系统中预存的该交换机的零件数量,则判断交换机的零件出现盘盈。即该交换机实际的零件数量多余系统(如远程监控系统RMS)中预存的该交换机的零件数量。9. If the number of parts of the switch is greater than the number of parts of the switch pre-stored in the system, it is judged that the parts of the switch are overstocked. That is, the actual number of parts of the switch exceeds the number of parts of the switch pre-stored in the system (such as the remote monitoring system RMS).
10、如果交换机的零件数量小于系统中预存的数量,则判断所述交换机的零件出现盘亏。即该交换机实际的零件数量少于系统(如远程监控系统RMS)中预存的该交换机的零件数量。10. If the quantity of parts of the switch is less than the quantity pre-stored in the system, it is judged that the parts of the switch are in deficit. That is, the actual number of parts of the switch is less than the number of parts of the switch pre-stored in the system (such as the remote monitoring system RMS).
在该实施例中,盘亏为日志信息中记录的零件数量小于系统中记录的零件数量。盘盈为日志信息中记录的零件数量大于系统中记录的零件数量。正确为日志中记录的零件数量等于系统中记录的零件数量。In this embodiment, the inventory deficit is that the number of parts recorded in the log information is less than the number of parts recorded in the system. Overage is the number of parts recorded in the log information is greater than the number of parts recorded in the system. Correct is that the number of parts recorded in the log is equal to the number of parts recorded in the system.
在本发明的一个示例中,在本发明的一个示例中,网络组工作平台例如可通过简单网络管理协议SNMP获取各个交换机对应的软件版本信息。通俗地讲,网络组工作平台(H平台)接到盘点请求后,会通过SNMP协议对相应的交换机进行识别获取设备版本信息(软件版本信息)。In an example of the present invention, in an example of the present invention, the network group work platform can obtain the software version information corresponding to each switch, for example, through the Simple Network Management Protocol SNMP. In layman's terms, after receiving the inventory request, the network group work platform (H platform) will identify the corresponding switch through the SNMP protocol to obtain device version information (software version information).
对网络组工作平台320而言,网络组工作平台320用于根据所述软件版本信息生成所述各个交换机对应的设备信息抓取命令并发送交换机管理服务器。即网络组工作平台320在生成设备信息抓取命令后登陆交换机管理服务器330(CMD-AGENT),并向其发出盘点请求,以便交换机管理服务器330获取交换机的日志信息。For the network group working platform 320, the network group working platform 320 is used to generate the device information capture command corresponding to each switch according to the software version information and send it to the switch management server. That is, the network group work platform 320 logs in to the switch management server 330 (CMD-AGENT) after generating the device information capture command, and sends an inventory request to it, so that the switch management server 330 can obtain the log information of the switch.
具体而言,网络组工作平台320在获取到相应的多个交换机340中的每一个交换机的软件版本信息后,可根据该软件版本信息生成与该交换机对应的设备信息抓取命令。Specifically, after acquiring the software version information of each of the corresponding multiple switches 340, the network group work platform 320 may generate a device information capture command corresponding to the switch according to the software version information.
需要说明的是,不同型号的交换机以及交换机使用的软件版本的不同,其交换机使用的设备信息抓取命令也不同,例如:华为Quidway S5400交换机所用软件版本为5.30与华为Quidway S9312交换机所用软件版本为5.50,两者之间的设备信息抓取命令就不同。因此,需要确定每一个交换机的软件版本信息后,方可根据该软件版本信息确定其所对应的设备信息抓取命令。It should be noted that different models of switches and different software versions used by the switches have different device information capture commands. For example, the software version used by the Huawei Quidway S5400 switch is 5.30 and the software version used by the Huawei Quidway S9312 switch is 5.50, the command to capture device information is different between the two. Therefore, after the software version information of each switch needs to be determined, the corresponding device information capture command can be determined according to the software version information.
对交换机管理服务器330而言,交换机管理服务器330用于根据所述盘点请求获得对应的交换机的日志信息,例如,交换机管理服务器330可以通过身份验证、授权和统计AAA系统访问交换机并下载交换机的日志信息。当然,交换机管理服务器同样可以采用其它方式访问交换机,本发明的实施例对此并没有限制。For the switch management server 330, the switch management server 330 is used to obtain the log information of the corresponding switch according to the inventory request, for example, the switch management server 330 can access the switch and download the log of the switch through the authentication, authorization and statistics AAA system information. Certainly, the switch management server may also use other methods to access the switch, which is not limited in this embodiment of the present invention.
具体地,多个交换机340的日志信息包括交换机的信息以及交换机内部的零件信息。更为具体地,交换机的信息例如包括交换机类型和交换机序列号,交换机内部的零件信息例如包括零件类型和零件序列号SN等。当然,交换机内部的零件信息并不限于此,如交换机内部的零件的数量等。Specifically, the log information of the plurality of switches 340 includes switch information and component information inside the switch. More specifically, the switch information includes, for example, the switch type and the switch serial number, and the internal part information of the switch includes, for example, the part type and the part serial number SN. Certainly, the part information inside the switch is not limited thereto, such as the quantity of parts inside the switch.
在本发明的一个示例中,交换机管理服务器330(CMD-AGENT)命令交换机输出文件并下载最初的日志信息(LOG)。下载完毕后交换机管理服务器330(CMD-AGENT)会对回收的日志信息进行初步分析,过滤与盘点无关的交换机信息并保留需求字段,例如交换机类型、交换机序列号(SN)、交换机内的零件类型等,并将过滤后的日志信息发给网络组工作平台(H平台)。In one example of the present invention, the switch management server 330 (CMD-AGENT) commands the switch to output files and download initial log information (LOG). After the download is complete, the switch management server 330 (CMD-AGENT) will conduct a preliminary analysis on the recovered log information, filter switch information irrelevant to the inventory and keep the required fields, such as switch type, switch serial number (SN), and part type in the switch etc., and send the filtered log information to the network group work platform (H platform).
本发明实施例的系统能够自动对网络设备进行远程盘点,有效提高了在线设备盘点效率,而且自动盘点功能是基于网络设备自身特性不需要前期资金投入,节省了预算支出,降低了成本,且对于各种规模的机房提供了良好的管理,实时掌握在线设备信息,为资产安全提供了有利保障。不仅精确盘点出数量的准确,还能盘点出网络设备内零件是否对应。The system of the embodiment of the present invention can automatically carry out remote inventory of network equipment, effectively improving the efficiency of online equipment inventory, and the automatic inventory function is based on the characteristics of the network equipment itself without the need for early capital investment, which saves budgetary expenditures and reduces costs. Computer rooms of various sizes provide good management, real-time grasp of online equipment information, and provide a favorable guarantee for asset security. It not only accurately counts the accuracy of the quantity, but also checks whether the parts in the network equipment are corresponding.
参见图5,本发明的进一步实施例的盘点平台310包括发送模块311、接收模块312以及盘点模块313。其中:Referring to FIG. 5 , an inventory platform 310 in a further embodiment of the present invention includes a sending module 311 , a receiving module 312 and an inventory module 313 . in:
发送模块311用于向网络组工作平台320发送盘点请求。接收模块312用于从网络组工作平台320获得各个交换机(多个交换机330)的日志信息,其中,日志信息包括所述交换机的信息以及交换机内部的零件信息,其中,交换机的信息包括交换机类型和交换机序列号,所述交换机内部的零件信息包括零件类型和零件序列号。盘点模块313用于根据日志信息与预存的交换机信息及零件信息进行比对以生成盘点结果。The sending module 311 is configured to send an inventory request to the network group work platform 320 . The receiving module 312 is used to obtain the log information of each switch (multiple switches 330) from the network group work platform 320, wherein the log information includes the information of the switch and the internal part information of the switch, wherein the information of the switch includes the switch type and The switch serial number, the part information inside the switch includes part type and part serial number. The inventory module 313 is used to compare the log information with the pre-stored switch information and component information to generate an inventory result.
在本发明的一个示例中,盘点请求包括机房信息、交换机类型信息、交换机序列号和交换机管理IP信息中的一种或多种。这样,可以根据上述任意一种盘点请求进行对相应交换机的盘点。例如,当需要盘点某一个机房中的全部交换机时,则可以将上述的盘点信息定义为上述的机房信息,这样便可以对上述机房中的交换机进行盘点。当然,盘点信息也可以为机房信息、交换机类型信息、交换机序列号和交换机管理IP信息的其中的任意组合,例如,当需要盘点某一个机房中且某一类型的交换机时,则可以将上述的盘点信息定义为上述的机房信息和上述类型信息,这样便可以对上述机房中的具有上述交换机类型信息的的交换机进行盘点。此外,如需对单独的交换机进行盘点,则将盘点请求填写为交换机管理IP信息即可。In an example of the present invention, the inventory request includes one or more of equipment room information, switch type information, switch serial number, and switch management IP information. In this way, an inventory of the corresponding switch can be performed according to any one of the above inventory requests. For example, when it is necessary to take inventory of all the switches in a certain computer room, the above-mentioned inventory information can be defined as the above-mentioned computer room information, so that the switches in the above-mentioned computer room can be inventoried. Of course, the inventory information can also be any combination of computer room information, switch type information, switch serial number and switch management IP information. The inventory information is defined as the information of the above-mentioned computer room and the above-mentioned type information, so that the switches in the above-mentioned computer room with the above-mentioned switch type information can be inventoried. In addition, if you need to take inventory of a separate switch, you can fill in the inventory request as the management IP information of the switch.
作为一个具体的示例,盘点模块310包括零件比对子模块(图中未示出),零件比对子模块用于从日志信息中获取每个交换机对应的零件信息,并根据零件信息中的零件类型判断每个交换机中零件类型是否与系统中预存的零件类型对应,其中,As a specific example, the inventory module 310 includes a part comparison submodule (not shown in the figure), and the part comparison submodule is used to obtain the part information corresponding to each switch from the log information, and according to the part information in the part information The type determines whether the part type in each switch corresponds to the pre-stored part type in the system, where,
如果对应,则进一步根据所述零件信息中的零件序列号判断所述每个交换机中零件序列号是否与所述系统中预存的零件序列号对应。If so, it is further judged according to the part serial number in the part information whether the part serial number in each switch corresponds to the part serial number prestored in the system.
如果序列号对应,则判断盘点正确。If the serial numbers correspond, it is judged that the inventory is correct.
如果序列号不对应,则进一步进行盘盈或盘亏判断。If the serial numbers do not correspond, then further judgment is made on the profit or loss of the stock.
其中,盘亏指系统(如远程监控系统RMS)记录的交换机类型,在日志文件中没有信息与之对应。Wherein, the disk loss refers to the switch type recorded by the system (such as the remote monitoring system RMS), and there is no corresponding information in the log file.
盘盈指在日志信息中抓取的类型,在系统中没有信息与之对应。Overage refers to the type captured in the log information, and there is no information corresponding to it in the system.
正确为类型,序列号、零件类型等均与系统(如远程监控系统RMS)中记录相符。The correct one is the type, the serial number, part type, etc. are all consistent with the records in the system (such as the remote monitoring system RMS).
如果判断其交换机/零件类型、交换机/零件名均与系统记录相符而零件序列号与系统中记录不同,则零件比对子模块继续进行如下判断:If it is judged that the switch/part type and the switch/part name are consistent with the system record and the part serial number is different from the record in the system, the parts comparison sub-module continues to make the following judgments:
根据所述日志信息对每个交换机对应的零件数量进行统计,并判断每个所述交换机的零件数量是否与所述系统中预存的数量相等,其中,如果相等,则判断所述交换机的零件正确。如果所述交换机的零件数量大于所述系统中预存的数量,则判断所述交换机的零件出现盘盈。如果所述交换机的零件数量小于所述系统中预存的数量,则判断所述交换机的零件出现盘亏。According to the log information, the number of parts corresponding to each switch is counted, and it is judged whether the number of parts of each switch is equal to the number pre-stored in the system, wherein, if they are equal, it is judged that the parts of the switch are correct . If the number of parts of the switch is greater than the number prestored in the system, it is judged that the parts of the switch are overstocked. If the quantity of parts of the switch is less than the quantity pre-stored in the system, it is judged that the parts of the switch are in deficit.
在该实施例中,盘亏为日志信息中记录的零件数量小于系统中记录的零件数量。盘盈为日志信息中记录的零件数量大于系统中记录的零件数量。正确为日志中记录的零件数量等于系统中记录的零件数量。In this embodiment, the inventory deficit is that the number of parts recorded in the log information is less than the number of parts recorded in the system. Overage is the number of parts recorded in the log information is greater than the number of parts recorded in the system. Correct is that the number of parts recorded in the log is equal to the number of parts recorded in the system.
本发明实施例的盘点平台能够对网络设备进行远程准确的自动化盘点,有效解决服务器机房规模不断扩大导致的线上设备人工盘点的困难,且避免了人力资源浪费,减少了人为操作环节确保了盘点信息准确。且节省了预算支出,并为资产安全提供了有利保障。The inventory platform of the embodiment of the present invention can carry out remote and accurate automatic inventory of network equipment, effectively solve the difficulty of manual inventory of online equipment caused by the continuous expansion of server room scale, and avoid the waste of human resources, reduce human operation links and ensure inventory The information is accurate. And save the budget expenditure, and provide a favorable guarantee for asset safety.
参见图6,本发明进一步实施例的交换机管理服务器330,包括接收模块331、命令生成模块332以及整理反馈模块333。Referring to FIG. 6 , a switch management server 330 in a further embodiment of the present invention includes a receiving module 331 , a command generating module 332 and a finishing feedback module 333 .
接收模块331用于接收网络组工作平台320发送的盘点请求,其中,盘点请求包括机房信息、交换机类型信息、交换机序列号和交换机管理IP信息中的一种或多种。由此可根据需要选择任意一个或多个交换机。The receiving module 331 is used to receive the inventory request sent by the network group work platform 320, wherein the inventory request includes one or more of information about the computer room, information about the switch type, serial number of the switch, and information about the management IP of the switch. Therefore, any one or more switches can be selected as required.
命令生成模块332用于根据盘点请求获得对应的交换机的日志信息,其中,日志信息包括交换机的信息以及交换机内部的零件信息。整理反馈模块333用于将日志信息反馈至网络组工作平台320。The command generation module 332 is used to obtain the log information of the corresponding switch according to the inventory request, wherein the log information includes the information of the switch and the information of parts inside the switch. The sorting and feedback module 333 is used to feed back the log information to the network group work platform 320 .
进一步地,交换机管理服务器330可通过身份验证、授权和统计AAA系统访问交换机340并下载交换机340的日志信息。Further, the switch management server 330 can access the switch 340 and download the log information of the switch 340 through the authentication, authorization and statistics AAA system.
根据本发明实施例的交换机管理服务器,通过抓取命令抓取各个交换机的日志信息,具有抓取准确且自动化的优点。According to the switch management server of the embodiment of the present invention, the log information of each switch is captured by a capture command, which has the advantages of accurate and automatic capture.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment for use. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device or device.
计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. The program is processed electronically and stored in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the above described embodiments, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
尽管已经示出和描述了本发明的实施例,本领域的普通技术人员可以理解:在不脱离本发明的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由权利要求及其等同物限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications, substitutions and modifications can be made to these embodiments without departing from the principle and spirit of the present invention. The scope of the invention is defined by the claims and their equivalents.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210065982.3A CN103310290B (en) | 2012-03-13 | 2012-03-13 | Remote inventorying method and system for network equipment, and inventorying platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210065982.3A CN103310290B (en) | 2012-03-13 | 2012-03-13 | Remote inventorying method and system for network equipment, and inventorying platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103310290A CN103310290A (en) | 2013-09-18 |
CN103310290B true CN103310290B (en) | 2017-02-08 |
Family
ID=49135477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210065982.3A Expired - Fee Related CN103310290B (en) | 2012-03-13 | 2012-03-13 | Remote inventorying method and system for network equipment, and inventorying platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103310290B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106709644A (en) * | 2016-12-22 | 2017-05-24 | 上汽大众汽车有限公司 | Remote inventory system and method for tool and die fixed assets |
CN107527174A (en) * | 2017-08-15 | 2017-12-29 | 北京悦畅科技有限公司 | A kind of checking method and device of parking lot hardware device |
CN107483653A (en) * | 2017-08-24 | 2017-12-15 | 郑州云海信息技术有限公司 | Method and device for acquiring host information in computer room |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297287A (en) * | 2012-02-28 | 2013-09-11 | 北京百度网讯科技有限公司 | Network device and rack position information detection method and system and checking platform |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1622522A (en) * | 2003-11-28 | 2005-06-01 | 英业达股份有限公司 | Information equipment management method and system |
US7698275B2 (en) * | 2004-05-21 | 2010-04-13 | Computer Associates Think, Inc. | System and method for providing remediation management |
CN101719259A (en) * | 2009-12-08 | 2010-06-02 | 交通银行股份有限公司 | Maintenance management method, device and system for bank network devices |
-
2012
- 2012-03-13 CN CN201210065982.3A patent/CN103310290B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297287A (en) * | 2012-02-28 | 2013-09-11 | 北京百度网讯科技有限公司 | Network device and rack position information detection method and system and checking platform |
Also Published As
Publication number | Publication date |
---|---|
CN103310290A (en) | 2013-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103297287B (en) | Network equipment and rack position information detection method, system and inventory platform | |
CN104376341B (en) | The writing method of sequence number and system of household electrical appliance | |
CN109726763A (en) | A kind of information assets recognition methods, device, equipment and medium | |
CN111192019A (en) | Reimbursement processing method of target bill and related equipment | |
CN108491903A (en) | Service kit for power industry manages system and control method | |
CN104184763A (en) | Feedback information processing method and system and service apparatus | |
CN103310290B (en) | Remote inventorying method and system for network equipment, and inventorying platform | |
US20100125354A1 (en) | Hybrid Part Installation Process Combining Mass Part Installation Techniques With Discrete Part Number Assembly Activities | |
CN111738572A (en) | A terminal life cycle management system | |
CN108920377A (en) | A kind of log playback test method, system, device and readable storage medium storing program for executing | |
CN103312530B (en) | Method and system for correspondingly counting on-line server and rack position, and counting platform | |
CN106452929A (en) | A device detection method, client and system | |
CN118608057A (en) | Intelligent management method, system and electronic equipment for intelligent warehousing | |
CN108343315A (en) | Key management method and terminal device | |
CN109412856B (en) | Network equipment brand non-difference management method and system | |
CN116614471A (en) | Data sharing method, equipment and medium based on identification analysis | |
CN109472507A (en) | A kind of service for infrastructure management method and device | |
CN107578204A (en) | Box for material circulation sorting technique, device and electronic equipment | |
CN115643149A (en) | Equipment management method and system | |
CN114861166A (en) | A pop-up window interception method, device, device and medium | |
CN111861363A (en) | License management system and method | |
CN117422542B (en) | System and method for storing and verifying consumption financial business based on blockchain technology | |
TWI828217B (en) | System and method for scanning identification after mounting to pair circuit board | |
CN117493846A (en) | Target service classification method and device, electronic equipment and storage medium | |
CN110969457A (en) | Mobile application log collection method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170208 |