CN111614482A - Data batch modification method, system and storage medium - Google Patents
Data batch modification method, system and storage medium Download PDFInfo
- Publication number
- CN111614482A CN111614482A CN202010269040.1A CN202010269040A CN111614482A CN 111614482 A CN111614482 A CN 111614482A CN 202010269040 A CN202010269040 A CN 202010269040A CN 111614482 A CN111614482 A CN 111614482A
- Authority
- CN
- China
- Prior art keywords
- data
- modification
- objects
- management server
- network management
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a data batch modification method, a system and a storage medium, wherein the method comprises the following steps: the network management server sends a data packet requesting to set a plurality of objects to the managed equipment; the managed device analyzes the information carried in the data packets of the plurality of objects according to the request to obtain the data items to be modified, and changes all the data items into new values through one-time modification; and the managed equipment feeds back the operation result to the network management server. The invention lists the key value of the modified object in the data array in an SNMP data packet through the network management server, the SNMP data packet also comprises a new data value, the managed device can know all data items needing to be modified through the SNMP data packet, the keys of a plurality of operation objects can be selected on the network management server once, and only the new data value of the data needs to be input once, thereby greatly improving the efficiency of data modification operation.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, a system, and a storage medium for batch modification of data.
Background
SNMP (simple network management protocol) is a communication protocol for a network management server to perform remote management maintenance on a network device, and is used to acquire and configure the operating states and parameters of an operating system, a hardware module and service software in the network device, and the protocol uses OID (Object ID, Object identifier, OID is a string of characters in text form, the form of which is similar to an IP address, and is formed by separating a plurality of numerical values with dot numbers, for example, "1.2.3.4.1" represents the name of the device, "1.2.3.4.2" represents the system time of the device), and defines a key value for the data in array form, and the key is used to locate a certain piece of data in the identification data array.
For example, the system time parameter of the network device is non-array data because the data is only one. The parameters of the network port working rate of the network device are data in an array form, because the device has a plurality of network ports, one network port needs to be identified by one key value, the key can be defined to be equal to 1, 2 and 3. Note, however, that the key values are not regular and continuous, and may only be port 1, port 2, port 3, port 5, and not port 4.
On the basis, the SNMP defines two communication data packets, so as to modify and configure the operation parameters of the managed equipment:
and sending a set-request data packet (request modification data packet) to the managed equipment by the network management server, and requesting to modify a certain data parameter of the managed equipment. The request sets a value specifying OID data, and the specified OID and data values are included in a set-request packet. If the specified OID is the array data, the data packet also needs to carry a key value to indicate which one of the array data the target data is. For example, OID is specified as the parameter of the working rate of the network port in the set-request data packet, the value of the parameter of the working rate is 1000(10/100/1000 represents 10M/100M/1000M working rate respectively), and key is equal to 2; it means that the operation rate of setting portal 2 is 1000M.
And a set-response data packet (response modification data packet) sent by the managed device to the network management server for feeding back the result of the data modification, wherein the modification result comprises the success or failure of the modification. This packet is used to return a set-request packet, a success in the setting, or an error code when the setting fails.
Wherein each set-request data packet can only modify one of the data arrays; and the key of the operation object and the new value of the input data need to be manually selected for each set-request data packet, so that the manual operation is slow, and errors are easy to occur in a large number of repeated similar operations.
When the values of all data items of a data array (data of an array formula) are set, the data values can be set only one by one through set-request data packets; the time required to modify all the data in the array is proportional to the number of entries in the data array. Taking the parameters of the working rates of the network ports of the switch equipment as an example, the network ports of the switch usually have 48 working rate parameters which correspond to 48 network ports, and if the working rates of the 48 network ports are required to be completely modified to 1000M, 48 times of similar operations are required to be executed; each operation involves selecting the portal to be modified and the input data value 1000 represents a 1000M work rate, which takes a total of minutes and is also prone to errors. Because of this, it is inefficient to modify the data of the data array on the network management server.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a data batch modification method, a data batch modification system and a storage medium, and aims to solve the problem of low efficiency in modifying data of a data array on a network management server in the prior art.
In order to achieve the above object, the present invention provides a data batch modification method, which comprises the following steps:
the network management server sends a data packet requesting to set a plurality of objects to the managed equipment;
the managed device analyzes the information carried in the data packets of the plurality of objects according to the request to obtain the data items to be modified, and changes all the data items into new values through one-time modification;
and the managed equipment feeds back the operation result to the network management server.
Optionally, the data batch modification method includes that the request sets a data packet of a plurality of objects to request modification of values of one or more specific objects in a data array of the managed device specified object identifier.
Optionally, the method for modifying data batch includes that the requesting to set information carried in a data packet of a plurality of objects includes: an object identifier, a new value for the modified data, and a key value.
Optionally, in the data batch modification method, the key value is used to locate the operated data entry in the identification data array.
Optionally, in the method for batch modification of data, the data packet requesting to set the plurality of objects is an SNMP data packet.
Optionally, in the data batch modification method, the operation result includes a modification success and a modification failure.
Optionally, the batch data modification method, wherein the modification failure is a value that the modified value is incorrect or cannot be supported.
Optionally, in the data bulk modification method, the managed device includes a switch.
In addition, to achieve the above object, the present invention further provides a data batch modification system, wherein the data batch modification system includes: the network management server and the managed device establish communication connection;
the network management server is used for sending a data packet requesting to set a plurality of objects to the managed equipment;
the managed device is used for analyzing the information carried in the data packets of the plurality of objects according to the request to obtain data items needing to be modified, changing all the data items into new values through one-time modification, and feeding back the operation result to the network management server.
In addition, to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores a batch data modification program, and the batch data modification program implements the steps of the batch data modification method when being executed by a processor.
The invention sends a data packet requesting to set a plurality of objects to the managed equipment through a network management server; the managed device analyzes the information carried in the data packets of the plurality of objects according to the request to obtain the data items to be modified, and changes all the data items into new values through one-time modification; and the managed equipment feeds back the operation result to the network management server. The invention lists the key value of the modified object in the data array in an SNMP data packet through the network management server, the SNMP data packet also comprises a new data value, the managed device can know all data items needing to be modified through the SNMP data packet, the keys of a plurality of operation objects can be selected on the network management server once, and only the new data value of the data needs to be input once, thereby greatly improving the efficiency of data modification operation.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a data bulk modification method of the present invention;
FIG. 2 is a schematic diagram of a preferred embodiment of the batch modification system of data according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, the batch data modification method according to the preferred embodiment of the present invention includes the following steps:
step S10, the network management server sends a packet requesting to set a plurality of objects to the managed device.
Specifically, the data has a plurality of values due to a plurality of specific objects, which is called array data (i.e. array data in the present invention), for example, the system time of the computer is non-array data, and the operating system in which the computer is running definitely has only one, that is, only one system time object; the size of a computer disk is data in an array, a computer has a plurality of disk objects, such as a C disk and a D disk, a key value carried in reading the size data of the computer disk indicates which disk is to be read, an OID corresponding to the size of the disk can only identify data of "size of disk", but cannot identify "size of D disk in the disk", and the OID and the key can point to the object "size of D disk in disk" together.
The network management server is a core component of a computer local area network, a network operating system is operated on the network management server, and the efficiency of the network management server directly influences the efficiency of the whole network. Therefore, a high-end computer or a dedicated server computer is generally used as the network management server. The network management server mainly has the following 4 functions:
(1) the network operating system is operated to control and coordinate the work among the computers in the network, so as to meet the requirements of users to the maximum extent and respond and process.
(2) Shared resources in a storage and management network, such as databases, files, applications, disk space, printers, plotters, and the like.
(3) For the application service of each workstation, a Client/Server (Client/Server) structure is adopted, so that the network Server not only acts as a network Server, but also acts as an application Server.
(4) Monitor and control network activities, actually manage the network, allocate system resources, learn and adjust system operating states, shut down/start up certain resources, and the like.
The invention predefines a set-mult-request packet (packet requesting to set multiple objects) to modify the data array in bulk based on the communication of this packet. And the request sets the data packets of the plurality of objects as SNMP data packets. SNMP is a simple network management protocol, belongs to an application layer protocol in a TCP/IP five-layer protocol, is used for a protocol of network management, is mainly used for the management of network equipment, is popular among various manufacturers due to the simplicity and reliability of the SNMP protocol, and becomes the most extensive network management protocol at present.
Specifically, the request sets a set-mult-request packet (set-mult-request packet) for requesting modification of the value of one or more specific objects in the data array of the managed device-specified object identifier. The information carried in the set-mult-request packet requesting to set a plurality of objects includes: object identifier (OID, ObjectID), new value of the modification data, and key value.
Wherein an Object Identifier (OID) is a globally unique value associated with an object to unambiguously identify the object, ensuring that the object is properly located and managed in the communication information processing; in general, OID is the identity card of the object in network communication.
Wherein the key value is used to locate the data entry that identifies the operation in the data array.
In the invention, the information of the OID and the key value together indicate data to be modified, assuming that a computer supports an SNMP protocol, a network management server needs to carry the OID to indicate that a target is the disk size when the size of a D disk in a computer disk is 100G, and carries the key-D to indicate that an object is the D disk and a new value of 100G (a new value of data needs to be modified).
For example, the meaning of the information defining the key value is:
a, ", indicates all data entries.
B, "key 1-key 2", indicates that the key is all data entries ranging from key1 to key2 (including key equals key1, key equals key 2).
C, "key 1, key 2", indicates that a data entry with a key equal to key1 and a key equal to key2 may be continuously appended in a plurality, each key value being separated by a comma.
D, "key 1-key2, key 3", i.e., the combination of B and C, represents all data entries with keys ranging from key1 to key2 (including key equals key1, key equals key2) and key equals key 3.
Step S20, the managed device analyzes the information carried in the data packet of the plurality of objects according to the request to obtain the data entry to be modified, and changes all the data entries into new values by one-time modification.
Specifically, after receiving the set-mult-request packet requesting to set the plurality of objects, the managed device changes all the operation objects to new values at one time according to the entry objects (i.e., some data entries to be modified) of the operation parsed from the carried key value information, so that the modification speed is fast and more accurate.
Wherein the managed device comprises a switch.
For example, taking an example that the operating rate of 48 network ports of a modification switch (a network device for forwarding an electrical signal, which can provide an exclusive electrical signal path for any two network nodes accessing the switch) device is 1000M, only by using a method of modifying data in a data array in bulk, an operation object is selected as all network ports, a new data value is input as 1000 (only once input is needed), and a SNMP data packet is sent to complete the modification, and the total time taken is no more than 15 seconds.
Step S30, the managed device feeds back the operation result to the network management server.
Specifically, the managed device sets information carried in data packets of a plurality of objects according to the request, and returns an operation result to the network management server after the information is modified. Wherein the operation result comprises a modification success and a modification failure; the modification failure is a value that the modified value is incorrect or cannot be supported.
The key value of a modified object in a data array is listed in an SNMP data packet through a network management server, and the SNMP data packet also comprises a new value of data; the managed device can know all the data items to be modified through the SNMP data packet, can select the keys of a plurality of operation objects at one time on the network management server, and only needs to input the new value of the data once, thereby greatly improving the operation efficiency.
Further, as shown in fig. 2, based on the above batch data modification method, the present invention also provides a batch data modification system, wherein the batch data modification system includes: a network management server 100 and a managed device 200, wherein the network management server 100 and the managed device 200 establish communication connection;
the network management server 100 is configured to send a data packet requesting to set a plurality of objects to the managed apparatus 200; the managed device 200 is configured to analyze information carried in the data packets of the plurality of objects according to the request to obtain data entries to be modified, change all the data entries into new values by one-time modification, and feed back the operation result to the network management server 100.
Wherein the request sets a data packet of a plurality of objects for requesting to modify the value of one or more specific objects in the data array of the managed device specified object identifier.
The information carried in the data packet requesting to set the plurality of objects includes: an object identifier, a new value for the modified data, and a key value. The key value is used to locate the data entry in the array of identifying data that was operated on.
And the request sets the data packets of the plurality of objects as SNMP data packets.
The operation result includes a modification success and a modification failure. The modification failure is a value that the modified value is incorrect or cannot be supported.
The managed device 200 comprises a switch.
The invention also provides a storage medium, wherein the storage medium stores a data batch modification program, and the data batch modification program realizes the steps of the data batch modification method when being executed by a processor.
In summary, the present invention provides a method, a system and a storage medium for batch modification of data, wherein the method includes: the network management server sends a data packet requesting to set a plurality of objects to the managed equipment; the managed device analyzes the information carried in the data packets of the plurality of objects according to the request to obtain the data items to be modified, and changes all the data items into new values through one-time modification; and the managed equipment feeds back the operation result to the network management server. The invention lists the key value of the modified object in the data array in an SNMP data packet through the network management server, the SNMP data packet also comprises a new data value, the managed device can know all data items needing to be modified through the SNMP data packet, the keys of a plurality of operation objects can be selected on the network management server once, and only the new data value of the data needs to be input once, thereby greatly improving the efficiency of data modification operation.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.
Claims (10)
1. A data batch modification method is characterized by comprising the following steps:
the network management server sends a data packet requesting to set a plurality of objects to the managed equipment;
the managed device analyzes the information carried in the data packets of the plurality of objects according to the request to obtain the data items to be modified, and changes all the data items into new values through one-time modification;
and the managed equipment feeds back the operation result to the network management server.
2. The batch data modification method of claim 1, wherein the request sets a data packet of a plurality of objects for requesting modification of the value of one or more specific objects in the data array of the managed device specified object identifier.
3. The batch data modification method of claim 1, wherein the requesting to set the information carried in the data packets of the plurality of objects comprises: an object identifier, a new value for the modified data, and a key value.
4. The batch of data modification method of claim 3, wherein the key value is used to locate the data entry that identifies the operation in the data array.
5. The batch data modification method of claim 1, wherein the request sets the data packets of the plurality of objects to SNMP data packets.
6. The batch data modification method of claim 1, wherein the operation results include modification success and modification failure.
7. The batch data modification method of claim 6, wherein the modification failure is a value whose modified value is incorrect or cannot be supported.
8. The data bulk modification method of claim 1, wherein the managed device comprises a switch.
9. A data bulk modification system, comprising: the network management server and the managed device establish communication connection;
the network management server is used for sending a data packet requesting to set a plurality of objects to the managed equipment;
the managed device is used for analyzing the information carried in the data packets of the plurality of objects according to the request to obtain data items needing to be modified, changing all the data items into new values through one-time modification, and feeding back the operation result to the network management server.
10. A storage medium, characterized in that the storage medium stores a data batch modification program, which when executed by a processor implements the steps of the data batch modification method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010269040.1A CN111614482B (en) | 2020-04-08 | 2020-04-08 | Data batch modification method, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010269040.1A CN111614482B (en) | 2020-04-08 | 2020-04-08 | Data batch modification method, system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111614482A true CN111614482A (en) | 2020-09-01 |
CN111614482B CN111614482B (en) | 2022-11-15 |
Family
ID=72195731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010269040.1A Active CN111614482B (en) | 2020-04-08 | 2020-04-08 | Data batch modification method, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111614482B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060235971A1 (en) * | 2005-04-18 | 2006-10-19 | Mccloghrie Keith | Method and apparatus for simple network management protocol bulk information processing |
CN101729286A (en) * | 2008-10-21 | 2010-06-09 | 大唐移动通信设备有限公司 | Method, device and system for modifying variables in management information base of agent terminal |
CN102843252A (en) * | 2011-06-23 | 2012-12-26 | 中兴通讯股份有限公司 | Method and device for updating network element through network management |
CN106506223A (en) * | 2016-11-25 | 2017-03-15 | 成都广达新网科技股份有限公司 | A kind of method that simulation large number quipments test webmaster upgrade function |
-
2020
- 2020-04-08 CN CN202010269040.1A patent/CN111614482B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060235971A1 (en) * | 2005-04-18 | 2006-10-19 | Mccloghrie Keith | Method and apparatus for simple network management protocol bulk information processing |
CN101729286A (en) * | 2008-10-21 | 2010-06-09 | 大唐移动通信设备有限公司 | Method, device and system for modifying variables in management information base of agent terminal |
CN102843252A (en) * | 2011-06-23 | 2012-12-26 | 中兴通讯股份有限公司 | Method and device for updating network element through network management |
CN106506223A (en) * | 2016-11-25 | 2017-03-15 | 成都广达新网科技股份有限公司 | A kind of method that simulation large number quipments test webmaster upgrade function |
Also Published As
Publication number | Publication date |
---|---|
CN111614482B (en) | 2022-11-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6085237A (en) | User-friendly interface for setting expressions on an SNMP agent | |
US7580936B2 (en) | Extendable discovery of network device information | |
EP1589691B1 (en) | Method, system and apparatus for managing computer identity | |
US20020069274A1 (en) | System and method for configuration, management and monitoring of network resources | |
US20130144996A1 (en) | Interfacing between a command line interface-based application program and a remote network device | |
CA2434239A1 (en) | Method for generating a network management database record | |
US20040028069A1 (en) | Event bus with passive queuing and active routing | |
US20030090716A1 (en) | Management information transmission apparatus, apparatus management apparatus, and apparatus management system | |
CN111585963A (en) | Data acquisition method, system and storage medium | |
KR20040073799A (en) | Method for supporting error cause of SNMP and apparatus thereof | |
CN101582881B (en) | Method and device for controlling access | |
CN111711532B (en) | Unified management method for heterogeneous network equipment | |
CN111614482B (en) | Data batch modification method, system and storage medium | |
CN110377800B (en) | FC chip data sending method and system | |
CN109981725B (en) | Communication method across security domains, server and readable storage medium | |
CN101094099A (en) | Configuration system and method for multiple exchanges | |
CN111600744B (en) | Multi-board control method, system and storage medium based on SNMP | |
CN114489772A (en) | Workflow execution method and device, storage medium and equipment | |
CN104717176A (en) | Access control method, access control system, and server | |
CN106850345B (en) | Method for monitoring and inquiring network user state | |
US20060021000A1 (en) | Automated system management process | |
US8214473B1 (en) | Apparatus, system, and method for communicating with a device within a computer system | |
US20080155047A1 (en) | Method for managing and setting many network devices | |
CN111585788B (en) | Method, system and storage medium for updating operation parameter values of service board card | |
CN101686148B (en) | Method, device and system for marking and identifying blade server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |