CN111614482B - Data batch modification method, system and storage medium - Google Patents

Data batch modification method, system and storage medium Download PDF

Info

Publication number
CN111614482B
CN111614482B CN202010269040.1A CN202010269040A CN111614482B CN 111614482 B CN111614482 B CN 111614482B CN 202010269040 A CN202010269040 A CN 202010269040A CN 111614482 B CN111614482 B CN 111614482B
Authority
CN
China
Prior art keywords
data
modification
management server
network management
value
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
CN202010269040.1A
Other languages
Chinese (zh)
Other versions
CN111614482A (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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202010269040.1A priority Critical patent/CN111614482B/en
Publication of CN111614482A publication Critical patent/CN111614482A/en
Application granted granted Critical
Publication of CN111614482B publication Critical patent/CN111614482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network 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 needing 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

Data batch modification method, system and storage medium
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 text-form character strings, the form of which is similar to an IP address, and is composed of a plurality of values separated by 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 type, because the device has a plurality of network ports, one key value is needed to identify one network port, the key value can be defined to be equal to 1,2,3. Note, however, that the key values are not regular and continuous, and perhaps only port 1, port 2, port 3, port 5, and no 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 respond to the set-request packet, returning a success in the setting, or returning 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 complete 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. As such, 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 includes that the modification failure is a value that is incorrect or cannot be supported by the modified value.
Optionally, in the data bulk modification method, the managed device includes a switch.
In addition, in order 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 needing 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 batch 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 do not 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 data 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 form, 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 needs to be read, an OID corresponding to the size of the disk can only identify data of 'the size of the disk', but cannot identify 'the size of the D disk in the disk', and the OID and the key = D can be pointed to the object 'the size of the D disk in the 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 make response and processing.
(2) Shared resources in a storage and management network, such as databases, files, applications, disk space, printers, plotters, and the like.
(3) The application Server for each workstation is served, for example, by a Client/Server (Client/Server) architecture, so that the web Server not only acts as a web 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 modified 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; generally, OID is the identity card of the object in network communication.
Wherein the key value is used to locate the operated data entry in the identified data array.
In the invention, the information of the OID and the key value together indicate data to be modified, and if a computer supports an SNMP protocol, a network management server needs to carry the OID to indicate that a target is the size of a disk when the size of the D disk in the disk of the computer is to be modified to be 100G, carries the key = D to indicate that an object is the D disk, and carries a new value of 100G (the new value of the data needs to be modified).
For example, the meaning of the information defining the key value is:
a, ", indicates all data entries.
B, "key1-key2", indicates that the key is all data entries in the range of key1 to key2 (including key equal to key1 and key equal to key 2).
C, "key1, key2", indicates that a data entry having a key equal to key1 and a key equal to key2 may be added in plurality, and each key value is separated by a comma.
D, "key1-key2, key3", i.e., the combination of B and C, indicates that the key is all data entries ranging from key1 to key2 (including key equal to key1 and key equal to key 2) and that the key is equal to key 3.
And step S20, 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 needing to be modified, and changes all the data items into new values through one-time modification.
Specifically, after receiving the set-mult-request packet requesting to set a plurality of objects, the managed device analyzes the operated item objects (i.e., some specified data items to be modified) according to the carried key value information, changes all the operation objects into new values at one time, and is fast and more accurate in modification.
Wherein the managed device comprises a switch.
For example, taking the working 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 as 1000M as an example, only by using a method of modifying data in a data array in batch, selecting operation objects as all network ports, inputting a new data value as 1000 (inputting only once), and sending an SNMP data packet can be modified, and the total time taken is not more than 15 seconds.
And 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 multiple 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 device 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 specific 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 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 managed device 200 comprises a switch.
The present invention further provides a storage medium, wherein the storage medium stores a batch data modification program, and when the batch data modification program is executed by a processor, the batch data modification program implements the steps of the batch data modification method described above.
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 can be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) by a computer program, and the program can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It will be understood that the invention is not limited to the examples described above, but that modifications and variations will occur to those skilled in the art in light of the above teachings, and that all such modifications and variations are considered to be within the scope of the invention as defined by the appended claims.

Claims (6)

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 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 for positioning and identifying operated data items in the data array;
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, so that the modification speed is high and the modification is more accurate;
the managed device feeds back the operation result to the network management server;
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 support;
enumerating the key value of the modified object in the data array in an SNMP data packet through a network management server, wherein the SNMP data packet contains a new numerical value of the data; the managed device knows all the data items needing to be modified through the SNMP data packet, selects keys of a plurality of operation objects on the network management server once, and only needs to input a new value of the data once, so that the operation efficiency is improved.
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 according to claim 1, wherein the request sets the data packet of the plurality of objects to an SNMP data packet.
4. The data bulk modification method of claim 1, wherein the managed device comprises a switch.
5. A bulk data 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 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 for positioning and identifying the operated data entry in the data array;
the managed device is used for analyzing information carried in data packets of a 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 an operation result to the network management server, wherein the modification speed is high and the modification is more accurate;
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 support;
enumerating the key value of the modified object in the data array in an SNMP data packet through a network management server, wherein the SNMP data packet contains a new numerical value of the data; the managed device knows all the data items needing to be modified through the SNMP data packet, selects keys of a plurality of operation objects on the network management server once, and only needs to input a new value of the data once, so that the operation efficiency is improved.
6. 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 4.
CN202010269040.1A 2020-04-08 2020-04-08 Data batch modification method, system and storage medium Active CN111614482B (en)

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 CN111614482A (en) 2020-09-01
CN111614482B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716355B2 (en) * 2005-04-18 2010-05-11 Cisco Technology, Inc. Method and apparatus for processing simple network management protocol (SNMP) requests for bulk information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN111614482A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
US8826032B1 (en) Systems and methods for network change discovery and host name resolution in storage network environments
US7249170B2 (en) System and method for configuration, management and monitoring of network resources
EP1589691B1 (en) Method, system and apparatus for managing computer identity
US8161140B2 (en) Interfacing between a command line interface-based application program and a remote network device
US20020069367A1 (en) Network operating system data directory
US7580936B2 (en) Extendable discovery of network device information
US20020069271A1 (en) Event manager for network operating system
US20040028069A1 (en) Event bus with passive queuing and active routing
US20030090716A1 (en) Management information transmission apparatus, apparatus management apparatus, and apparatus management system
KR100489689B1 (en) Method for supporting error cause of SNMP and apparatus thereof
CN111585963A (en) Data acquisition method, system and storage medium
CN101582881B (en) Method and device for controlling access
US20100293262A1 (en) Automated system management process
CN111614482B (en) Data batch modification method, system and storage medium
CN111711532B (en) Unified management method for heterogeneous network equipment
EP1479192B1 (en) Method and apparatus for managing configuration of a network
CN114489772A (en) Workflow execution method and device, storage medium and equipment
CN111600744B (en) Multi-board control method, system and storage medium based on SNMP
CN106850345B (en) Method for monitoring and inquiring network user state
CN111585788B (en) Method, system and storage medium for updating operation parameter values of service board card
EP4152723A1 (en) System and method for monitoring status of network components in a network configuration
US8531953B2 (en) System and method for network traffic splitting
CN101686148A (en) Method, device and system for marking and identifying blade server
JP2002135250A (en) Network-managing equipment, network-managing system, network-managing method, and recording medium with program for managing network recorded thereon
JPH09224023A (en) Network resource managing system

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