[go: up one dir, main page]

CN102185703B - A kind of network equipment management method and main equipment based on SNMP protocol - Google Patents

A kind of network equipment management method and main equipment based on SNMP protocol Download PDF

Info

Publication number
CN102185703B
CN102185703B CN 201010240206 CN201010240206A CN102185703B CN 102185703 B CN102185703 B CN 102185703B CN 201010240206 CN201010240206 CN 201010240206 CN 201010240206 A CN201010240206 A CN 201010240206A CN 102185703 B CN102185703 B CN 102185703B
Authority
CN
China
Prior art keywords
file
mib
template
subset
information
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.)
Active
Application number
CN 201010240206
Other languages
Chinese (zh)
Other versions
CN102185703A (en
Inventor
包培友
段吉泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vertiv Tech Co Ltd
Original Assignee
Emerson Network Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Emerson Network Power Co Ltd filed Critical Emerson Network Power Co Ltd
Priority to CN 201010240206 priority Critical patent/CN102185703B/en
Publication of CN102185703A publication Critical patent/CN102185703A/en
Application granted granted Critical
Publication of CN102185703B publication Critical patent/CN102185703B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to a network device management method based on an SNMP protocol and a primary device. The method is characterized in that the primary device reads and analyzes a device template file and a device instance file, integrates the information, such as a device name, a device ID, a template ID, a signal ID and a control ID, in the two files according to the template ID and then saves in an integrated information array, generates an MIB file and a mapping relational file according to the data in the information array and uploads the generated MIB file to a network management center; and during the management operation, the primary device receives an SNMP protocol message sent by the network management center, extracts an OID and an operational order in the message, seeks a corresponding sub-device through the mapping relational file and performing the corresponding operational order for completing the management operation. The primary device in the invention is the primary device for implementing the above-mentioned method. The method and device in the invention realize dynamic update of the MIB file in the network device management, improve management efficiency and have evident advantages.

Description

一种基于SNMP协议的网络设备管理方法及主设备A kind of network equipment management method and main equipment based on SNMP protocol

技术领域 technical field

本发明涉及SNMP网络管理领域,特别是涉及一种基于SNMP协议的网络设备管理方法及其主设备。The invention relates to the field of SNMP network management, in particular to a method for managing network equipment based on the SNMP protocol and its main equipment.

背景技术 Background technique

随着网络化的发展,越来越多的设备和解决方案需提供SNMP协议支持以接入到网络中,以便中心可以通过统一的SNMP协议进行管理。在SNMP网络管理系统中,被管理设备的被管理数据变量都被抽象为对象,被管理对象的集合被组织为管理信息库(MIB)并存于主设备(AGENT)中,每一个被管理对象在MIB中被赋予一个对象标识符(OID),网络管理系统(NMS)通过OID来定位被管理对象,并通过对MIB中对象取值的读取和修改实现对子设备的管理。其中主设备也利用TRAP消息报告向NMS报告重要事件。With the development of networking, more and more devices and solutions need to provide SNMP protocol support to access the network, so that the center can be managed through a unified SNMP protocol. In the SNMP network management system, the managed data variables of the managed devices are abstracted into objects, and the collection of managed objects is organized as a management information base (MIB) and stored in the main device (AGENT). An object identifier (OID) is given in the MIB, and the network management system (NMS) locates the managed object through the OID, and realizes the management of the sub-device by reading and modifying the value of the object in the MIB. Among them, the master device also uses the TRAP message report to report important events to the NMS.

由于在SNMP网络管理中,所有被管理资源均需抽象后记录在MIB中,随着技术的发展,SNMP网络管理中设备增多,设备的添加、更换也愈发频繁,而每一次设备添加、更换都需要对MIB文件进行更新,并对设备进行安装调试。现有技术中,主设备中的MIB文件一般无法进行动态的更新,而需要进行复杂的编写、调试等等,管理效率低。In SNMP network management, all managed resources need to be abstracted and recorded in MIB. With the development of technology, the number of devices in SNMP network management increases, and the addition and replacement of devices become more frequent. It is necessary to update the MIB file and install and debug the device. In the prior art, the MIB file in the main device generally cannot be dynamically updated, but requires complex writing, debugging, etc., and the management efficiency is low.

发明内容 Contents of the invention

本发明所要解决的技术问题是,提供一种基于SNMP协议的网络设备管理方法,该方法可以实现MIB文件的动态更新。The technical problem to be solved by the present invention is to provide a network device management method based on the SNMP protocol, which can realize dynamic updating of MIB files.

本发明所要解决的另一个技术问题是,提供一种基于SNMP协议的网络设备管理系统的主设备,该主设备在接入新的被管理子设备时或接收到指令时,能够通过设备中的数据文件及时生成或更新MIB文件,进而实现对设备的兼容、管理。Another technical problem to be solved by the present invention is to provide a master device of a network device management system based on the SNMP protocol. When the master device accesses a new managed sub-device or receives an instruction, it can Data files generate or update MIB files in time to realize compatibility and management of devices.

为解决上述第一个技术问题,本发明提供一种基于SNMP协议的网络设备管理方法,主设备通过SNMP协议与网络管理中心进行通信并执行网络管理中心对子设备的操作指令,包括以下步骤:In order to solve the above-mentioned first technical problem, the present invention provides a network device management method based on the SNMP protocol, the master device communicates with the network management center through the SNMP protocol and executes the operation instructions of the network management center to the sub-equipment, including the following steps:

A、主设备读取并解析主设备存储器中的设备模板和设备实例文件,并将所述设备模板和所述设备实例文件中的子设备信息进行匹配、整合后存入整合信息数组中;A. The master device reads and parses the device template and the device instance file in the memory of the master device, and matches and integrates the device template and the sub-device information in the device instance file into the integrated information array;

B、主设备根据所述整合信息数组中的数据生成或更新主设备中的MIB文件和映射关系文件,所述映射文件用于记录所述MIB文件中叶节点的OID与设备ID及信号ID、控制ID的映射关系;B. The master device generates or updates the MIB file and the mapping relationship file in the master device according to the data in the integrated information array, and the mapping file is used to record the OID, device ID and signal ID of the leaf node in the MIB file, and control ID mapping relationship;

C、主设备将所述MIB文件上传给网络管理中心并接收网络管理中心发送的SNMP协议报文,提取报文中的OID及操作指令,并根据提取获得的OID和所述映射关系文件查找对应的子设备,对子设备执行相应的操作指令。C. The main device uploads the MIB file to the network management center and receives the SNMP protocol message sent by the network management center, extracts the OID and operation instructions in the message, and searches for the corresponding MIB file according to the extracted OID and the mapping relationship file. The sub-device of the sub-device executes the corresponding operation instruction on the sub-device.

由于采用了上述各步骤,在新的子设备接入管理系统中或收到管理员指令时,该方法能够通过主设备中的设备模板和实例信息文件中的数据,对MIB文件进行实时动态更新或生成新的MIB文件,从而快速的实现对子设备的管理,简化了设备调试过程,提高了网络管理效率,特别是在远程管理中,该方法能够迅速实现新设备的接入。Due to the adoption of the above steps, when a new sub-device is connected to the management system or receives an administrator instruction, the method can dynamically update the MIB file in real time through the device template in the main device and the data in the instance information file Or generate a new MIB file, so as to quickly realize the management of the sub-device, simplify the device debugging process, and improve the efficiency of network management. Especially in remote management, this method can quickly realize the access of new devices.

作为本发明方法的一种实施形式,步骤A中,所述设备模板中的子设备信息包括:模板ID及对应子设备的信号ID、控制ID;所述设备实例文件中的子设备信息包括:模板ID和设备ID;主设备通过模板ID将所述设备模板和所述设备实例文件中的子设备信息进行匹配、整合。As an implementation form of the method of the present invention, in step A, the sub-device information in the device template includes: the template ID and the signal ID and control ID of the corresponding sub-device; the sub-device information in the device instance file includes: Template ID and device ID; the main device matches and integrates the device template and the sub-device information in the device instance file through the template ID.

优选地,所述整合信息数组中还包括以下信息:子设备名称、信号个数、控制个数,所述信号个数、控制个数分别表示对于子设备所包含的信号个数、控制个数。作为进一步的优选方案,还包括信号名称和控制名称信息。Preferably, the integrated information array also includes the following information: sub-device name, number of signals, number of controls, the number of signals and number of controls respectively represent the number of signals and the number of controls contained in the sub-device . As a further preferred solution, signal name and control name information are also included.

优选地,所述映射关系文件中还包括管理类型信息,所述管理类型信息用于判断与之对应的OID叶节点是对应子设备里的信号或控制,该优选方案可以优化映射关系文件的表结构,是映射关系文件结构更加简单。Preferably, the mapping relationship file also includes management type information, and the management type information is used to determine whether the corresponding OID leaf node is a signal or control in the corresponding sub-device. This preferred solution can optimize the table of the mapping relationship file structure, which makes the mapping relationship file structure simpler.

与现有SNMP网络管理一样,本发明的主设备也向网络管理中心告知子设备的异常事件,该异常事件通过固定格式的消息报告传送给网络管理中心。Like the existing SNMP network management, the master device of the present invention also informs the network management center of the abnormal event of the sub-device, and the abnormal event is transmitted to the network management center through a message report in a fixed format.

为解决前述第二个技术问题,本发明提供一种基于SNMP协议的网络设备管理系统的主设备,包括管理程序模块、MIB模块,所述MIB模块中包含MIB文件,其特征在于:还包括数据文件模块、MIB生成模块,所述数据文件模块包括设备模板和设备实例文件,所述设备模板中记录有对应子设备的所有信号ID和控制ID的信息;所述设备实例文件用于记录与主设备实际连接的子设备信息;In order to solve the foregoing second technical problem, the present invention provides a main device of a network device management system based on the SNMP protocol, including a management program module and a MIB module, wherein the MIB module contains MIB files, and is characterized in that: it also includes data File module, MIB generation module, described data file module comprises equipment template and equipment instance file, is recorded in the information of all signal IDs and control ID of corresponding sub-equipment in the described equipment template; Described equipment instance file is used for recording and master The sub-device information actually connected to the device;

所述MIB生成模块用于读取所述设备模板和设备实例文件的信息,匹配、整合后存入整合信息数组中,并根据所述整合信息数组生成MIB文件并传送至所述MIB模块或者更新所述MIB模块中已有的MIB文件。The MIB generation module is used to read the information of the device template and the device instance file, match and integrate it and store it in the integrated information array, and generate a MIB file according to the integrated information array and send it to the MIB module or update An existing MIB file in the MIB module.

优选地,所述设备模板分配有模板ID,所述子设备信息包括该子设备适用的设备模板的模板ID;所述MIB生成模块通过模板ID对所述设备模板和设备实例文件的信息进行匹配。Preferably, the device template is assigned a template ID, and the sub-device information includes the template ID of the device template applicable to the sub-device; the MIB generation module matches the information of the device template and the device instance file through the template ID .

优选地,所述MIB模块还包括映射关系文件,所述映射关系文件用于记录所述MIB文件中叶节点的OID与设备ID及信号ID、控制ID的映射关系;所述MIB生成模块根据所述整合信息数组生成所述映射关系文件或对所述映射关系文件进行更新。Preferably, the MIB module also includes a mapping relationship file, and the mapping relationship file is used to record the mapping relationship between the OID of the leaf node in the MIB file and the device ID, signal ID, and control ID; the MIB generation module according to the The integrated information array generates the mapping relationship file or updates the mapping relationship file.

优选地,所述映射关系文件中包括管理类型信息,所述管理类型信息用于表示与之对应的OID叶节点是对应子设备里的信号或控制。Preferably, the mapping relationship file includes management type information, and the management type information is used to indicate that the corresponding OID leaf node is a signal or control in the corresponding sub-device.

本发明的基于SNMP协议的网络设备管理设备的有益效果在于,当收到管理员指令或设备检测到有新的子设备接入时,主设备能够及时的对MIB和映射关系文件进行动态更新,提高了网络管理效率。The beneficial effect of the network device management device based on the SNMP protocol of the present invention is that when an administrator instruction is received or the device detects that a new sub-device is connected, the master device can dynamically update the MIB and the mapping relationship file in time, Improve network management efficiency.

附图说明 Description of drawings

图1是本发明具体实施方式的设备连接关系示意图;Fig. 1 is a schematic diagram of the device connection relationship of a specific embodiment of the present invention;

图2是本发明具体实施方式的网络管理流程框图;Fig. 2 is a flow diagram of network management in a specific embodiment of the present invention;

图3是本发明具体实施方式的映射关系文件raw.cfg表的数据结构示意图。Fig. 3 is a schematic diagram of the data structure of the mapping relationship file raw.cfg table according to the specific embodiment of the present invention.

具体实施方式 Detailed ways

为更加详细的阐述本发明,下面结合具体实施方式对本发明进行描述。In order to illustrate the present invention in more detail, the present invention will be described below in conjunction with specific embodiments.

如附图1所示,为本具体实施方式的设备连接关系示意图。As shown in FIG. 1 , it is a schematic diagram of the device connection relationship in this specific embodiment.

本具体实施方式的基于SNMP协议的网络设备管理系统包括网络管理中心(NMS)、一个主设备、一个温度传感器、一台UPS(在实践应用中可以包括更多的子设备);所述NMS与所述主设备相连接,所述温度传感器、UPS分别通过232接口、RS485接口与所述主设备相连接,所述NMS与所述主设备间通过SNMP协议进行通信。其中,每个子设备(如温度传感器等)都设计有各自基于XML格式的设备模板,模板包含信号、控制和事件等元素,每个模板都有一个模板ID号,信号、控制也都有自己的ID号。The network device management system based on the SNMP protocol of this specific embodiment includes a network management center (NMS), a master device, a temperature sensor, a UPS (in practical applications, more sub-equipment can be included); the NMS and The main equipment is connected, the temperature sensor and the UPS are respectively connected to the main equipment through the 232 interface and the RS485 interface, and the NMS communicates with the main equipment through the SNMP protocol. Among them, each sub-device (such as temperature sensor, etc.) is designed with its own device template based on XML format. The template contains elements such as signal, control and event. Each template has a template ID number, and the signal and control also have their own ID number.

主设备中还包括一个MIB生成模块和一个数据文件模块,所述数据文件模块中包括设备模板类型文件和一个设备实例文件,设备模板类型文件中包含主设备所支持的所有子设备的设备模板(文件名的起头为EquipmentTemplate,文件为XML格式),设备模板中的信息包括:模板ID及对应子设备的信号个数、信号ID及信号名称;控制个数、控制ID及控制名称。所述设备实例文件也为XML格式的文件(文件名的起头为MonitorUnits,以下简称MU文件),MU文件用于记录实际运行环境中与主设备连接的子设备的设备ID、设备名称和用于指定该子设备适用哪个设备模板的模板ID。The master device also includes a MIB generating module and a data file module, wherein the data file module includes a device template type file and a device instance file, and the device template type file includes the device templates of all sub-devices supported by the master device ( The beginning of the file name is EquipmentTemplate, and the file is in XML format), and the information in the equipment template includes: template ID and the number of signals of corresponding sub-equipment, signal ID and signal name; control number, control ID and control name. Described device instance file is also the file of XML form (the beginning of file name is MonitorUnits, hereinafter referred to as MU file), and MU file is used for recording the device ID of the sub-device that is connected with master device in the actual operation environment, device name and used for Specifies the template ID of which device template applies to this sub-device.

所述MIB生成模块中包括一个MIB生成应用程序,当收到管理员的运行指令或检测到有新的子设备接入主设备时,MIB生成模块运行该MIB生成应用程序,该MIB生成应用程序的运行过程如图2所示,下文以温度传感器和UPS电源为例进行具体描述:Include a MIB generation application program in the described MIB generation module, when receiving the administrator's operation instruction or detecting that new sub-equipment is connected to the master device, the MIB generation module runs the MIB generation application program, and the MIB generation application program The operation process of the system is shown in Figure 2, and the temperature sensor and UPS power supply are used as examples for a specific description below:

程序运行,第一步:首先读取数据文件模块的存储目录及欲生成MIB文件和映射关系文件(文件名为raw.cfg)的输出目录;Program operation, the first step: first read the storage directory of the data file module and the output directory to generate MIB files and mapping relationship files (file name is raw.cfg);

第二步:根据文件名读取数据文件模块中所有设备模板和MU文件(即当文件名起头为EquipmentTemplate,文件格式为XML格式则认为是设备模板,文件起头为MonitorUnits,文件格式为XML格式则认为是MU文件),其中温度传感器和UPS电源的设备模板的文件名分别为EquipmentTemplateIDU_S.xml和EquipmentTemplate力博特安圣三进单出UPS(UH31).xml;MU文件的文件名为MonitorUnitsIDU_S2.xml。Step 2: Read all the equipment templates and MU files in the data file module according to the file name (that is, when the file name starts with EquipmentTemplate and the file format is in XML format, it is regarded as an equipment template, the file starts with MonitorUnits, and the file format is in XML format, then considered as MU files), where the file names of the temperature sensor and UPS power supply templates are EquipmentTemplateIDU_S.xml and EquipmentTemplate Libert Anson Three-Input Single-Output UPS(UH31).xml respectively; the file name of the MU file is MonitorUnitsIDU_S2.xml .

第三步:解析MonitorUnitsIDU_S2.xml文件,获取文件中存储的设备ID、设备名称和设备模板ID数据,并将此数据存入模板信息数组中。Step 3: Parse the MonitorUnitsIDU_S2.xml file, obtain the device ID, device name and device template ID data stored in the file, and store this data in the template information array.

第四步:解析EquipmentTemplateIDU_S.xml和EquipmentTemplate力博特安圣三进单出UPS(UH31).xml文件,提取上述两个文件中的设备模板ID,信号、控制或事件的ID,并存入设备信息数组中。Step 4: Analyze the EquipmentTemplateIDU_S.xml and EquipmentTemplate Libert Anson Three-Input Single-Output UPS(UH31).xml files, extract the equipment template ID, signal, control or event ID in the above two files, and store them in the equipment information array.

第五步:根据模板信息数组和设备信息数组中的共同数据模板ID,对两个数组中的数据进行一一匹配,并整合两个数组中的数据存入整合信息数组中,从而该数组中的信息包括:设备ID、设备名称、设备模板ID、信号ID和信号个数、控制ID和控制个数、控制名称、信号名称。Step 5: According to the common data template ID in the template information array and the device information array, match the data in the two arrays one by one, and integrate the data in the two arrays into the integrated information array, so that the data in the array The information includes: device ID, device name, device template ID, signal ID and signal number, control ID and control number, control name, and signal name.

第六步:根据所述整合信息数组,生成标准的MIB文件及映射关系文件raw.cfg。Step 6: Generate a standard MIB file and a mapping relationship file raw.cfg according to the integrated information array.

下面以子设备温度传感器及UPS电源为例对上述过程进行详细的说明:(下文为执行命令的输出举例,其中括号中的内容为添加的文字说明)The following is a detailed description of the above process by taking the temperature sensor of the sub-device and the UPS power supply as examples: (The following is an example of the output of the execution command, and the content in brackets is the text description added)

(步骤:得到MU文件名和设备模板文件名)(Step: get MU file name and device template file name)

MU file             MonitorUnitsIDU_S2.xml  (这是MU文件名)MU file MonitorUnitsIDU_S2.xml (this is the MU file name)

EquipFile[0]        EquipmentTemplateIDU_S.xml  (温度传感器的设备模板文件名)EquipFile[0] EquipmentTemplateIDU_S.xml (the device template file name of the temperature sensor)

    EquipFile[1]    EquipmentTemplate力博特安圣三进单出UPS(UH31).xmlEquipFile[1] EquipmentTemplate Libert Anson three-in and one-out UPS(UH31).xml

(UPS电源的设备模板文件名)(Device template file name for UPS power supply)

    (步骤:获取MU文件中的设备实例信息)(Step: Obtain the device instance information in the MU file)

pStruEquipInfo[0]:(温度传感器的设备实例信息)pStruEquipInfo[0]: (equipment instance information of temperature sensor)

    EquipId             1000  (温度传感器的设备ID)EquipId 1000 (equipment ID of temperature sensor)

    EquipTemplateId     755000021  (设备ID对应的设备模板ID)EquipTemplateId 755000021 (equipment template ID corresponding to the equipment ID)

    EquipName           SerialTH0  (设备名称)EquipName SerialTH0 (equipment name)

pStruEquipInfo[1]:(UPS电源的设备实例信息)pStruEquipInfo[1]: (equipment instance information of UPS power supply)

    EquipId             1001EquipId 1001

    EquipTemplateId     755000022EquipTemplateId 755000022

    EquipName           UPS(UH31)EquipName UPS(UH31)

(步骤:得到设备模板中的设备信息)(Step: Obtain the device information in the device template)

[0]EquipmentTemplateIDU_S.xml  (温度传感器的设备模板对应的设备模板文件名,下面的信息从这个文件中获取)[0]EquipmentTemplateIDU_S.xml (the equipment template file name corresponding to the equipment template of the temperature sensor, the following information is obtained from this file)

iEquipTempId            755000021    (温度传感器的设备模板ID值)iEquipTempId 755000021 (equipment template ID value of temperature sensor)

iSigNum       9                      (该设备模板包含的信号个数)iSigNum 9       (the number of signals contained in the device template)

    iSigId 51160000    szSigName     Temperaturel  (信号的信号ID以及信号名称)iSigId 51160000 szSigName Temperaturel (signal ID and signal name)

    iSigId 51160001    szSigName     Temperature2iSigId 51160001 szSigName Temperature2

    iSigId 51160002    szSigName     Temperature3iSigId 51160002 szSigName Temperature3

    iSigId 51160003    szSigName     Temperature4iSigId 51160003 szSigName Temperature4

    iSigId 51160004    szSigName     Temperature5iSigId 51160004 szSigName Temperature5

        iSigId 51160005     szSigName     Temperature6iSigId 51160005 szSigName Temperature6

        iSigId 51160006     szSigName     Temperature7iSigId 51160006 szSigName Temperature7

        iSigId 51160007     szSigName     Temperature8iSigId 51160007 szSigName Temperature8

        iSigId 51160008     szSigName     TemperatureiSigId 51160008 szSigName Temperature

        iSigId 51160009     szSigName     HumidityiSigId 51160009 szSigName Humidity

iCtrlNum              2                   (该设备模板包含的控制个数)iCtrlNum 2 2 (the number of controls contained in the device template)

        iCtrlId 51360000    szCtrlName    Relay1(控制ID值以及控制名称)iCtrlId 51360000 szCtrlName Relay1 (control ID value and control name)

        iCtrlId 51360001    szCtrlName    Relay2iCtrlId 51360001 szCtrlName Relay2

[1]EquipmentTemplate力博特安圣三进单出UPS(UH31).xml(第二个设备模板对应的设备模板文件名,下面的信息从这个文件中获取)[1]EquipmentTemplate Libert Anson Three-Input Single-Output UPS(UH31).xml (the file name of the equipment template corresponding to the second equipment template, the following information is obtained from this file)

iEquipTempId             755000022iEquipTempId 755000022

iSigNum         13iSigNum 13

        iSigId 3110001 szSigName    交流输入A相电压iSigId 3110001 szSigName AC input phase A voltage

        iSigId 3110002 szSigName    交流输入B相电压iSigId 3110002 szSigName AC input phase B voltage

        iSigId 3110003 szSigName    交流输入C相电压iSigId 3110003 szSigName AC input phase C voltage

        iSigId 3110004 szSigName    交流输出A相电压iSigId 3110004 szSigName AC output phase A voltage

        iSigId 3110005 szSigName    交流输出B相电压iSigId 3110005 szSigName AC output B-phase voltage

        iSigId 3110006 szSigName    交流输出C相电压iSigId 3110006 szSigName AC output phase C voltage

        iSigId 3110007 szSigName    交流输出A相电流iSigId 3110007 szSigName AC output phase A current

        iSigId 3110008 szSigName    交流输出B相电流iSigId 3110008 szSigName AC output B-phase current

        iSigId 3110009 szSigName    交流输出C相电流iSigId 3110009 szSigName AC output phase C current

        iSigId 3110010 szSigName    直流输入电压(正组)iSigId 3110010 szSigName DC input voltage (positive group)

        iSigId 3110011 szSigName      输出频率iSigId 3110011 szSigName output frequency

        iSigId 3110012 szSigName      标示电池数量iSigId 3110012 szSigName Indicates the number of batteries

        iSigId 3110013 szSigName      标示温度数量iSigId 3110013 szSigName Indicates the number of temperatures

iCtrlNum                3iCtrlNum 3

        iCtrlId 3130001 szCtrlName    蓄电池总电压上限iCtrlId 3130001 szCtrlName Battery total voltage upper limit

        iCtrlId 3130002 szCtrlName    蓄电池总电压下限iCtrlId 3130002 szCtrlName battery total voltage lower limit

        iCtrlId 3136000 szCtrlName    新增控制3136000iCtrlId 3136000 szCtrlName New control 3136000

(步骤:匹配、整合得到整合信息数组)(Steps: match and integrate to obtain an array of integrated information)

[0]SerialTH0        (第一个子设备对应的信息,这行是设备名称)[0]SerialTH0 (information corresponding to the first sub-device, this line is the device name)

    iEquipId      1000    (设备ID)iEquipId 1000 (equipment ID)

    iEquipTempId  755000021    (设备模板ID,根据这个值可以知道他对应的设备模板是EquipmentTemplateIDU_S.xml)iEquipTempId 755000021 (Equipment template ID, according to this value, you can know that its corresponding equipment template is EquipmentTemplateIDU_S.xml)

    iSigNum    9    (根据该子设备对应的设备模板就知道该子设备所拥有的信号和控制信息,跟EquipmentTemplateIDU_S.xml里面的一样)iSigNum 9 (according to the equipment template corresponding to the sub-device, the signal and control information owned by the sub-device can be known, which is the same as that in EquipmentTemplateIDU_S.xml)

        iSigId 51160000    szSigName     temperature1iSigId 51160000 szSigName temperature1

        iSigId 51160001    szSigName     temperature2iSigId 51160001 szSigName temperature2

        iSigId 51160002    szSigName     temperature3iSigId 51160002 szSigName temperature3

        iSigId 51160003    szSigName     temperature4iSigId 51160003 szSigName temperature4

        iSigId 51160004    szSigName     temperature5iSigId 51160004 szSigName temperature5

        iSigId 51160005    szSigName     temperature6iSigId 51160005 szSigName temperature6

        iSigId 51160006    szSigName     temperature7iSigId 51160006 szSigName temperature7

        iSigId 51160007    szSigName     temperature8iSigId 51160007 szSigName temperature8

        iSigId 51160008    szSigName     temperatureiSigId 51160008 szSigName temperature

        iSigId 51160009    szSigName     humidityiSigId 51160009 szSigName humidity

    iCtrlNum      2iCtrlNum 2

        iCtrlId 51360000    szCtrlName    relay1iCtrlId 51360000 szCtrlName relay1

        iCtrlId 51360001    szCtrlName    relay2iCtrlId 51360001 szCtrlName relay2

[1]UPS(UH31)    (第二个子设备对应的信息,这行是子设备名称)[1]UPS(UH31) (information corresponding to the second sub-device, this line is the name of the sub-device)

    iEquipId        1001(设备ID)iEquipId 1001 (equipment ID)

    iEquipTempId    755000022(设备模板ID,根据这个值可以知道他对应的设备模板是EquipmentTemplate力博特安圣三进单出UPS(UH31).xml)iEquipTempId 755000022 (equipment template ID, according to this value, it can be known that its corresponding equipment template is EquipmentTemplate Liberte Ansheng three-in single-out UPS(UH31).xml)

iSigNum    13    (根据该设备实例对应的设备模板就知道该设备实例所拥有的信号和控制信息,跟EquipmentTemplate力博特安圣三进单出UPS(UH31).xml文件中的一样)iSigNum 13 (according to the equipment template corresponding to the equipment instance, the signal and control information owned by the equipment instance is known, which is the same as that in the EquipmentTemplate Libert Anson Three-Input Single-Output UPS(UH31).xml file)

        iSigId 3110001szSigName    交流输入A相电压iSigId 3110001szSigName AC input phase A voltage

        iSigId 3110002szSigName    交流输入B相电压iSigId 3110002szSigName AC input phase B voltage

        iSigId 3110003szSigName    交流输入C相电压iSigId 3110003szSigName AC input phase C voltage

        iSigId 3110004szSigName    交流输出A相电压iSigId 3110004szSigName AC output phase A voltage

        iSigId 3110005szSigName    交流输出B相电压iSigId 3110005szSigName AC output B-phase voltage

        iSigId 3110006szSigName    交流输出C相电压iSigId 3110006szSigName AC output phase C voltage

        iSigId 3110007szSigName    交流输出A相电流iSigId 3110007szSigName AC output phase A current

        iSigId 3110008szSigName    交流输出B相电流iSigId 3110008szSigName AC output B-phase current

        iSigId 3110009szSigName    交流输出C相电流iSigId 3110009szSigName AC output phase C current

        iSigId 3110010szSigName    直流输入电压(正组)iSigId 3110010szSigName DC input voltage (positive group)

        iSigId 3110011szSigName    输出频率iSigId 3110011szSigName output frequency

        iSigId 3110012szSigName    标示电池数量iSigId 3110012szSigName indicates the battery quantity

        iSigId 3110013szSigName    标示温度数量iSigId 3110013szSigName Indicates the number of temperatures

    iCtrlNum           3iCtrlNum 3

        iCtrlId 3130001szCtrlName    蓄电池总电压上限iCtrlId 3130001szCtrlName Battery total voltage upper limit

        iCtrlId 3130002szCtrlName    蓄电池总电压下限iCtrlId 3130002szCtrlName battery total voltage lower limit

        iCtrlId 3136000szCtrlName    新增控制3136000  iCtrlId 3136000 szCtrlName Added control 3136000

根据目标MIB文件的特点,只有叶节点和第二节点是变化的,而这些节点的信息均包含在上述整合信息数组中,所述MIB生成模块根据上述整合信息数组中的数据及目标MIB文件的格式特点,为每一个信息或控制(即MIB的叶节点)分配OID号,生成标准的MIB文件或更新已有的MIB文件;同时生成一个映射关系文件raw.cfg或更新已有的映射关系文件,所述映射关系表文件为cfg格式的表格,该文件中记录了:MIB文件中叶节点的OID与管理类型信息(ID_TYPE)、设备ID及信号ID或控制ID的映射关系,所述ID_TYPE用于区别表示与之对应的OID叶节点是对应子设备的信号还是控制,映射关系表的数据结构示意图如图3所示。According to the characteristics of the target MIB file, only the leaf nodes and the second node are changed, and the information of these nodes is included in the above-mentioned integrated information array, and the MIB generating module is based on the data in the above-mentioned integrated information array and the Format features, assign OID number for each information or control (that is, leaf node of MIB), generate standard MIB file or update existing MIB file; at the same time generate a mapping relationship file raw.cfg or update existing mapping relationship file , the mapping relationship table file is a table in cfg format, which records: the mapping relationship between the OID of the leaf node in the MIB file and the management type information (ID_TYPE), equipment ID and signal ID or control ID, and the ID_TYPE is used for The difference indicates whether the corresponding OID leaf node corresponds to the signal or control of the sub-equipment. The data structure diagram of the mapping relationship table is shown in FIG. 3 .

MIB文件及映射关系文件生成或更新后,主设备将更新后的MIB文件传送给网络管理中心,网络管理中心解析该更新后的MIB文件并通过SNMP协议报文将要实施管理的对象的OID及操作指令发送给主设备,主设备接收到该SNMP协议报文后,提取其报文中的OID及操作指令,通过所述映射关系文件查找其对应的子设备,并执行相应的操作指令。After the MIB file and the mapping relationship file are generated or updated, the master device transmits the updated MIB file to the network management center, and the network management center analyzes the updated MIB file and uses the SNMP protocol message to implement the OID and operation of the object to be managed The instruction is sent to the main device, and after receiving the SNMP protocol message, the main device extracts the OID and the operation instruction in the message, searches for its corresponding sub-device through the mapping relationship file, and executes the corresponding operation instruction.

本实施方式的主设备也能够主动向网络管理中心发送子设备的异常事件消息(TRAP消息),该消息的产生、接收等过程与现有技术相同。The master device in this embodiment can also actively send the abnormal event message (TRAP message) of the sub-device to the network management center, and the process of generating and receiving the message is the same as that of the prior art.

以上内容是结合具体的优选实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the technical field of the present invention, without departing from the concept of the present invention, some simple deduction or replacement can be made, which should be regarded as belonging to the protection scope of the present invention.

Claims (10)

1. network device management method based on snmp protocol, main equipment communicates and carries out network management center to the operational order of subset by snmp protocol and network management center; When the operating instruction of receiving the keeper or when detecting new subset access main equipment, carry out following steps:
A, main equipment read and resolve equipment template and the device instance file in the main equipment memory, and deposit in the integrate information array after the subset information in described equipment template and the described device instance file mated, integrates;
B, main equipment are according to mib file and mapping relations file in the generation of the data in the described integrate information array or the renewal main equipment, and described mapping relations file is used for recording OID and the device id of subset and the mapping relations of signal ID, control ID of described mib file leaf node;
C, main equipment are uploaded to described mib file the snmp protocol message of network management center and the transmission of receiving network managing center, extract OID and operational order in the message, and according to extracting OID and subset corresponding to described mapping relations ff that obtains, subset is carried out corresponding operational order.
2. the network device management method based on snmp protocol according to claim 1, it is characterized in that: in the described steps A, the subset information in the described equipment template comprises: the signal ID of template ID and corresponding subset, control ID; Subset information in the described device instance file comprises: template ID and device id; Main equipment mates the subset information in described equipment template and the described device instance file, integrate by template ID.
3. the network device management method based on snmp protocol according to claim 1 is characterized in that: also comprise step D: when subset had anomalous event to occur, described main equipment initiatively sent the report of subset unexpected message to network management center.
4. the network device management method based on snmp protocol according to claim 2, it is characterized in that: also comprise following information in the described integrate information array: subset title, signal number, control number, described signal number, control number represent respectively signal number, the control number that corresponding subset comprises.
5. it is characterized in that: also comprise following information in the described integrate information array according to claim 2 or 4 described network device management methods based on snmp protocol: signal name, control title.
6. the network device management method based on snmp protocol according to claim 1, it is characterized in that: also comprise management type information in the described mapping relations file, described management type information is used for representing that corresponding with it OID leaf node is signal or the control that corresponds in the subset.
7. main equipment based on the network apparatus management system of snmp protocol, comprise management program module, MIB module, comprise mib file in the described MIB module, it is characterized in that: also comprise data file module, MIB generation module, described data file module comprises equipment template and device instance file, records the information of all signal ID and the control ID of corresponding subset in the described equipment template; Described device instance file is used for record and the actual subset information that is connected of main equipment;
Described MIB generation module is used for when the operating instruction of receiving the keeper or when detecting new subset and accessing main equipment, read the information of described equipment template and device instance file, coupling, deposit in the integrate information array after integrating, and generate mib file and be sent to described MIB module or upgrade existing mib file in the described MIB module according to described integrate information array;
Also comprise the mapping relations file in the described MIB module, described mapping relations file is used for recording OID and the device id of subset and the mapping relations of signal ID, control ID of described mib file leaf node; Described MIB generation module is also for generating described mapping relations file according to described integrate information array or described mapping relations file being upgraded.
8. main equipment according to claim 7, it is characterized in that: described equipment template is assigned template ID, and described subset information comprises the template ID of the equipment template that this subset is applicable; Described MIB generation module mates the information of described equipment template and device instance file by template ID.
9. main equipment according to claim 7, it is characterized in that: described MIB module also comprises the mapping relations file, and described mapping relations file is for the mapping relations of the OID that records described mib file leaf node and subset device id and signal ID, control ID; Described MIB generation module generates described mapping relations file according to described integrate information array or described mapping relations file is upgraded.
10. main equipment according to claim 9 is characterized in that: comprise management type information in the described mapping relations file, described management type information be used for expression with it corresponding OID leaf node be signal or the control that corresponds in the subset.
CN 201010240206 2010-07-29 2010-07-29 A kind of network equipment management method and main equipment based on SNMP protocol Active CN102185703B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010240206 CN102185703B (en) 2010-07-29 2010-07-29 A kind of network equipment management method and main equipment based on SNMP protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010240206 CN102185703B (en) 2010-07-29 2010-07-29 A kind of network equipment management method and main equipment based on SNMP protocol

Publications (2)

Publication Number Publication Date
CN102185703A CN102185703A (en) 2011-09-14
CN102185703B true CN102185703B (en) 2013-10-23

Family

ID=44571776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010240206 Active CN102185703B (en) 2010-07-29 2010-07-29 A kind of network equipment management method and main equipment based on SNMP protocol

Country Status (1)

Country Link
CN (1) CN102185703B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102520941B (en) * 2011-12-01 2014-12-10 大唐移动通信设备有限公司 Method and device for generating executable documents
CN102571420B (en) * 2011-12-20 2014-12-31 深圳市同洲电子股份有限公司 Method and system for network element data management
CN102624552A (en) * 2012-03-02 2012-08-01 瑞斯康达科技发展股份有限公司 Configuration management method and configuration management device of network equipment
CN103997412B (en) * 2013-02-18 2018-01-02 中兴通讯股份有限公司 Management information base file generation method and device, data handling system
CN103297439B (en) * 2013-06-24 2016-09-28 福建星网锐捷网络有限公司 The control method of AC group facility based on SNMP, Apparatus and system
CN106685675A (en) * 2015-11-05 2017-05-17 中兴通讯股份有限公司 Network management method, device, network equipment and data synchronization system
CN107453949A (en) * 2017-07-31 2017-12-08 郑州云海信息技术有限公司 A kind of method and device of monitoring management
CN108509187B (en) * 2018-03-29 2021-05-18 烽火通信科技股份有限公司 Method and system for automatically generating MIB function code of software platform
CN110620674B (en) * 2018-06-20 2022-05-31 中兴通讯股份有限公司 Configuration method of monitoring system and computer equipment
CN109787820A (en) * 2019-01-02 2019-05-21 郑州云海信息技术有限公司 A kind of snmp protocol detection method, device, terminal and storage medium
CN113052442A (en) * 2021-03-09 2021-06-29 合安科技技术有限公司 Equipment information management method, equipment information acquisition method, related terminal and system
CN114244677B (en) * 2021-11-29 2023-08-04 广东九博科技股份有限公司 SNMP message analysis method, readable storage medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326280A (en) * 2000-05-25 2001-12-12 美国阿尔卡塔尔资源有限合伙公司 Network node control system and method by extendable representative use
KR20020078758A (en) * 2001-04-10 2002-10-19 현대네트웍스 주식회사 Network management device and method using mib name server
CN1819532A (en) * 2006-03-15 2006-08-16 杭州华为三康技术有限公司 Management information base processing method
CN1983962A (en) * 2006-06-08 2007-06-20 华为技术有限公司 Extended network managing system and method
CN101729286A (en) * 2008-10-21 2010-06-09 大唐移动通信设备有限公司 Method, device and system for modifying variables in management information base of agent terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1326280A (en) * 2000-05-25 2001-12-12 美国阿尔卡塔尔资源有限合伙公司 Network node control system and method by extendable representative use
KR20020078758A (en) * 2001-04-10 2002-10-19 현대네트웍스 주식회사 Network management device and method using mib name server
CN1819532A (en) * 2006-03-15 2006-08-16 杭州华为三康技术有限公司 Management information base processing method
CN1983962A (en) * 2006-06-08 2007-06-20 华为技术有限公司 Extended network managing system and method
CN101729286A (en) * 2008-10-21 2010-06-09 大唐移动通信设备有限公司 Method, device and system for modifying variables in management information base of agent terminal

Also Published As

Publication number Publication date
CN102185703A (en) 2011-09-14

Similar Documents

Publication Publication Date Title
CN102185703B (en) A kind of network equipment management method and main equipment based on SNMP protocol
US20210405629A1 (en) System and method for interoperable communication of an automation system component with multiple information sources
CN104394008B (en) A kind of method and its system of unified configuration different type interchanger
CN101317381B (en) Method, system and terminal for capacity management object maintenance and capacity management
CN102298365B (en) Method for automatically identifying and managing spaceflight measurement and control earth station device change
CN103516555A (en) Network device monitoring method and system
CN102013998B (en) A management method for home network based on tr-069 protocol
CN104219327A (en) Distributed cache system
CN102638378B (en) A mass storage system monitoring method integrating heterogeneous storage devices
CN101282333A (en) Method for message exchange between distributed multi-protocol agent and central system
CN101369933A (en) Automatic test method and system
CN110134447A (en) The system and method for BMC immediate updating hard disk information based on operating system
CN103425497A (en) Network engineering script across-manufacturer conversion method and device
CN101309178A (en) Parsing method and apparatus for automatic exchanging optical network systematic log information
CN104468172A (en) Acquisition adapter management method and system
CN104378233A (en) Equipment unified management method, incorporation method and corresponding devices
CN104660447B (en) A kind of management method of SNMP nodal informations and management system
CN103399244B (en) A kind of substation field test intelligently parsing data method
CN103139806B (en) Method and base station of the webmaster with base station configuration data decoupling
CN112866049B (en) Method and system for collecting index of server host
CN102752138A (en) Asynchronous configuration management method and network device
CN103152380B (en) Distributed type simulation communication framework and communication effectiveness calculating method
WO2011131078A1 (en) Data management method and system for field bus instrument management system
CN114040149B (en) A device monitoring method for business digital intelligent evolution
CN115878702A (en) A method, device and equipment for realizing operation and maintenance data collection

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
CP01 Change in the name or title of a patent holder

Address after: 518057 Nanshan District science and Technology Industrial Park, Guangdong, Shenzhen Branch Road, No.

Patentee after: Vitamin Technology Co., Ltd.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong, Shenzhen Branch Road, No.

Patentee before: Aimosheng Network Energy Source Co., Ltd.

CP01 Change in the name or title of a patent holder