CN111342992B - Method and system for processing equipment information change record - Google Patents

Method and system for processing equipment information change record Download PDF

Info

Publication number
CN111342992B
CN111342992B CN202010075047.XA CN202010075047A CN111342992B CN 111342992 B CN111342992 B CN 111342992B CN 202010075047 A CN202010075047 A CN 202010075047A CN 111342992 B CN111342992 B CN 111342992B
Authority
CN
China
Prior art keywords
information
original
address
equipment information
target
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
CN202010075047.XA
Other languages
Chinese (zh)
Other versions
CN111342992A (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.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing 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 Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202010075047.XA priority Critical patent/CN111342992B/en
Publication of CN111342992A publication Critical patent/CN111342992A/en
Application granted granted Critical
Publication of CN111342992B publication Critical patent/CN111342992B/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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method for processing equipment information change records, which comprises the following steps: acquiring original equipment information of at least one equipment in a local area network, and establishing an original equipment information table according to the original equipment information, wherein the original equipment information at least comprises an original IP address; acquiring target equipment information of the at least one equipment in the local area network every preset time interval, and comparing the target equipment information with the original equipment information to obtain a comparison result, wherein the target equipment information at least comprises a target IP address; and acquiring and displaying the newly added and/or changed equipment information in the local area network according to the comparison result. By the embodiment of the invention, the change of the asset equipment can be automatically recorded, and the management efficiency of the asset equipment is improved.

Description

Method and system for processing equipment information change record
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a system for processing equipment information change records, computer equipment and a storage medium.
Background
In an enterprise local area network, more and more devices are connected, and no matter a computer, a printer or other intelligent network devices can realize information interaction and resource sharing through connecting the local area network. These devices are also fixed assets of the enterprise, and how to effectively register and manage these assets is a problem to be faced by each enterprise.
In a common enterprise asset management system, an asset device is usually attached with a corresponding barcode or two-dimensional code, and then after the barcode or the two-dimensional code is scanned, hardware information of the asset device is manually entered into the asset management system. However, when the number of devices accessed in the local area network is large, the hardware information entry method needs to consume a large amount of manpower and material resources. In addition, when the device accessed in the local area network is changed, the asset management system cannot automatically monitor the details of the device change, and the efficiency of manual supervision is low.
Therefore, the invention aims to solve the problem of low asset equipment management efficiency in the prior art.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a system, a computer device, and a computer-readable storage medium for processing a device information change record, which can improve management efficiency of asset devices in a local area network.
The embodiment of the invention solves the technical problems through the following technical scheme:
a processing method for device information change records comprises the following steps:
acquiring original equipment information of at least one equipment in a local area network, and establishing an original equipment information table according to the original equipment information, wherein the original equipment information at least comprises an original IP address;
acquiring target equipment information of the at least one equipment in the local area network every preset time interval, and comparing the target equipment information with the original equipment information to obtain a comparison result, wherein the target equipment information at least comprises a target IP address;
and acquiring and displaying the newly added and/or changed equipment information in the local area network according to the comparison result.
Optionally, each device is preset with a corresponding SNMP agent, and the acquiring original device information or target device information of at least one device in the local area network includes:
establishing communication connection with the SNMP agent according to an SNMP protocol;
sending a data request for acquiring original equipment information or target equipment information to the SNMP agent so that the SNMP agent feeds back the original equipment information or the target equipment information according to the data request, wherein the data request at least comprises a request time and a request terminal IP address;
And acquiring the original equipment information or the target equipment information from the SNMP agent.
Optionally, the comparing the target device information with the original device information includes:
comparing a target IP address in the target equipment information with an original IP address in the original equipment information one by one, and acquiring other original equipment information corresponding to the original IP address from the original equipment information table when the original equipment information has the original IP address which is the same as the target IP address;
comparing the other original equipment information with other target equipment information corresponding to the target IP address, and marking the other target equipment information as changed equipment information when the other original equipment information is different from the other target equipment information;
and establishing an equipment change information table, and acquiring the request time and the request end IP address of the data request of the target equipment information so as to store the request time, the request end IP address and the changed equipment information into the equipment change information table.
Optionally, after comparing the target IP address in the target device information with the original IP address in the original device information one by one, the method further includes:
When the original equipment information does not have the original IP address which is the same as the target IP address, marking the target equipment information as newly added equipment information;
and acquiring the request time and the request end IP address of the data request of the target device information, and storing the request time, the request end IP address and the newly added device information into the device change information table.
Optionally, after the obtaining of the information of the newly added and/or changed device in the local area network according to the comparison result, the method further includes:
and updating the original equipment information table according to the newly added and/or changed equipment information in the local area network.
Optionally, the obtaining and displaying information of newly added and/or changed devices in the local area network according to the comparison result includes:
acquiring equipment change information from the equipment change information table;
and sorting the equipment change information according to the request time, and displaying the sorted equipment change information.
In order to achieve the above object, an embodiment of the present invention further provides a system for processing a device information change record, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring original equipment information of at least one device in a local area network and establishing an original equipment information table according to the original equipment information, and the original equipment information at least comprises an original IP address;
A comparison module, configured to obtain target device information of the at least one device in the local area network every preset time interval, and compare the target device information with the original device information to obtain a comparison result, where the target device information at least includes a target IP address;
and the display module is used for acquiring and displaying the information of the newly added and/or changed equipment in the local area network according to the comparison result.
In order to achieve the above object, an embodiment of the present invention further provides a computer device, where the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method for processing the device information change record as described above when executing the computer program.
In order to achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, where the computer program is executable by at least one processor, so as to cause the at least one processor to execute the steps of the method for processing a device information change record as described above.
According to the processing method, the system, the computer device and the computer readable storage medium for the device information change record, the asset device information in the local area network is automatically acquired through the set time interval and is compared with the original device information, so that the change of the asset device in the local area network is recorded, and the management efficiency of the asset device is improved.
The invention is described in detail below with reference to the drawings and specific examples, but the invention is not limited thereto.
Drawings
FIG. 1 is a diagram of an application environment of a method for processing a device information change record according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for processing a device information change record according to a first embodiment of the present invention;
FIG. 3 is a block diagram of a second embodiment of the present invention;
fig. 4 is a schematic hardware structure diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Technical solutions between various embodiments may be combined with each other, but must be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Example one
Referring to fig. 1, an application environment diagram of a processing method for device information change records according to a first embodiment of the present invention is shown. In fig. 1, multiple devices are in the same lan. After the configuration of the Management station in the local area Network is completed, the Management station is in communication connection with an SNMP (Simple Network Management Protocol) agent through an SNMP Protocol, and data interaction between the SNMP agent and the device is realized through an MIB (Management Information Base). It should be noted that the management station is configured by the staff according to the SNMP protocol.
Referring to fig. 2, a flowchart illustrating a method for processing a device information change record according to a first embodiment of the invention is shown. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. The following description is given by taking a computer device as an execution subject, specifically as follows:
Step S100, original equipment information of at least one equipment in the local area network is obtained, and an original equipment information table is established according to the original equipment information, wherein the original equipment information at least comprises an original IP address.
Specifically, a lan has a plurality of access devices, such as computers, printers, smart tvs, and other smart devices, which are accessed into the lan via a network cable or a wireless network. When the devices are accessed into the local area network, the SNMP module is inserted into the devices, and the SNMP agent is operated, so that the information of the devices can be acquired according to the SNMP protocol. According to the embodiment, the original device information in the local area network can be acquired, so that reference is provided for judging whether the device information is changed.
In connection with fig. 1, the MIB defines an object managed in each device, i.e., device information of each device. When the device information of the device needs to be acquired, the computer device can establish communication connection with the SNMP agent of the device through a management station and send a data request to the SNMP agent of the device. The data request is used for applying for data defined in the MIB from the SNMP agent, and the data request further includes an IP address of the management station, that is, the IP address of the request end, and a time point when the data request is initiated, that is, a request time of the data request. And then, recording the IP address of the request end and the request time into an operation log of a management station, wherein the IP address of the request end is bound with the identity of related personnel, so that related responsible persons who send the data request to acquire asset equipment information can be traced according to the IP address of the request end.
And after the SNMP agent identifies the data request, the related state or state parameter and other data provided by the equipment are converted into a format defined by the MIB and fed back to the management station. In this embodiment, the relevant state or state parameter refers to software and hardware information of the device, including an IP address, an MAC address, a port index number, a port type, a port speed, a physical address, CPU information, memory information, a device name, and an operating system. The MAC address, the port index number, the port type, the port speed, the physical address, the CPU information, the memory information, the device name, and the operating system are collectively referred to as other original device information in this embodiment, and the other original device information corresponds to the IP address. And after the SNMP agent converts the software and hardware information of the equipment into a format defined by the MIB, feeding the converted equipment information in the corresponding format back to the management station, and after receiving the fed back equipment information, establishing an original equipment information table in a preset database by the management station, and storing the equipment information into the original equipment information table to be used as an original record of the asset equipment in the local area network. According to the embodiment, the original equipment information or the target equipment information in the local area network can be acquired according to the SNMP agent.
In an exemplary embodiment, when the device information is stored in the original device information table, the IP address in the device information is also set as the primary key of the original device information table.
Specifically, a database table is composed of rows and columns, each row representing a record, each column representing a field, and the primary key is used to uniquely identify a field of a record. For example, in the original device information table, there are a plurality of fields such as an IP address, a MAC address, and a port index number, where the IP address is unique for each device in a local area network, and therefore, the IP address can be set as a primary key of the original device information table, so as to improve query efficiency of device information. In another exemplary embodiment, the MAC address may also be set as a primary key of the original device information table.
Step S102, obtaining target device information of the at least one device in the local area network every preset time interval, and comparing the target device information with the original device information to obtain a comparison result, wherein the target device information at least comprises a target IP address.
Specifically, a scanning period is set by a timing scheduling task, and the management station is controlled to periodically send a data request to an SNMP agent in the local area network, so that the latest asset device information, that is, the target device information is acquired. In this embodiment, the target device information refers to software and hardware information of a device, which is obtained according to a timing scheduling task, and includes an IP address, an MAC address, a port index number, a port type, a port speed, a physical address, CPU information, memory information, a device name, and an operating system. The MAC address, the port index number, the port type, the port speed, the physical address, the CPU information, the memory information, the device name, and the operating system are collectively referred to as other target device information in this embodiment, and the other target device information corresponds to the IP address. And then, comparing the target equipment information with the original equipment information to judge whether the asset equipment in the local area network changes. The scanning period may be set arbitrarily, for example, the scanning period of the present embodiment is set to 5 minutes. By the embodiment, the target device information is compared with the original device information, and the record of the change of the device information in the local area network can be obtained.
In an exemplary embodiment, when comparing the target device information with the original device information, the target IP address in the target device information is further compared with the original IP address in the original device information one by one, and when an original IP address identical to the target IP address exists in the original device information, other original device information corresponding to the original IP address is acquired from the original device information table. And then comparing the other original equipment information with other target equipment information corresponding to the target IP address, and marking the other target equipment information as changed equipment information when the other original equipment information is different from the other target equipment information. In this embodiment, the changed device information in the local area network may be obtained by comparing the target IP address with the original IP address and comparing the corresponding other target device information with the other original device information.
Illustratively, there are ten fields of one thousand records in the device information table, each record having an original IP address and other original device information, wherein the original IP address is a primary key of the device information table. And the computer equipment compares the target IP address with the original IP address in the main key one by one, and when the original IP address same as the target IP address exists, the computer equipment acquires values of other nine fields corresponding to the original IP address, namely information of other original equipment from the equipment information table, and compares the information of other original equipment with the information of other target equipment. And when one of the nine fields is different, marking the values of the other nine fields in the target device information as changed device information.
In another exemplary embodiment, after the target device information is marked as changed device information, a device change information table is established, and a request end IP address and a request time in an operation log of the management station are acquired, so that the request end IP address, the request time and the changed device information are stored in the device change information table. According to the embodiment, the changed device information is stored in the device change information table, so that the device change records are displayed in a sorted manner according to the request time in the device information.
In another exemplary embodiment, after comparing the target IP address in the target device information with the original IP address in the original device information one by one, when there is no original IP address identical to the target IP address in the original device information, the target device information is marked as new device information. And then, acquiring the request time and the request end IP address of the data request of the target device information, and storing the request time, the request end IP address and the newly added device information into the device change information table. By the embodiment, the information of the newly added equipment in the local area network can be obtained by comparing the target IP address with the original IP address.
In another exemplary embodiment, after the request time, the IP address of the requesting end, and the newly added and/or changed device information are stored in the device change information table, the original device information table is updated according to the newly added and/or changed device information. According to the embodiment, the original device information table is updated according to the new and/or changed device information, and the updated original device information table can be used as a reference for judging whether the device information in the local area network is changed.
Specifically, when the newly added device information exists in the device change information table, the newly added device information is added to the original device information table; and when the changed equipment information exists in the equipment information change table, changing the field value in the original equipment information table according to the changed equipment information.
And step S104, acquiring and displaying the newly added and/or changed equipment information in the local area network according to the comparison result.
Specifically, the device change information is acquired from the device change information table, then the device change information is sorted according to the request time, and the sorted device change information is displayed on a display terminal. According to the embodiment, the device change information is sequenced and displayed according to the request time, so that the user can clearly see the change record of the device information in the local area network.
Illustratively, the original IP address of one device is 192.168.0.1, and the device name corresponding to the device is modified twice, the two modified names are sorted according to the sequence of the request time for modifying the device name, and then the two sorted device names are projected to a display terminal for displaying.
According to the invention, the asset equipment information in the local area network is automatically acquired by setting the time interval and is compared with the original equipment information, so that the change of the asset equipment in the local area network is recorded, and the management efficiency of the asset equipment is improved.
Example two
Referring to fig. 3, a schematic diagram of program modules of a system for processing device information change records according to a second embodiment of the present invention is shown. It is to be understood that the flow charts in the embodiments of the present method are not intended to limit the order in which the steps are performed. In this embodiment, the system 20 for processing device information change records may include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to implement the present invention and implement the method for processing device information change records. The program module referred to in the embodiments of the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable for describing the execution process of the processing system 20 for device information change recording in the storage medium than the program itself. The following description will specifically describe the functions of the program modules of the present embodiment:
An obtaining module 200, configured to obtain original device information of at least one device in a local area network, and establish an original device information table according to the original device information, where the original device information at least includes an original IP address.
Specifically, a lan has a plurality of access devices, such as computers, printers, smart tvs, and other smart devices, which are accessed into the lan via a network cable or a wireless network. When the devices are accessed into the local area Network, the information of the devices can be obtained according to the SNMP by inserting an SNMP (Simple Network management Protocol) module and operating an SNMP agent. According to the embodiment, the original device information in the local area network can be acquired, so that reference is provided for judging whether the device information is changed.
In this embodiment, first, a relevant person configures a Management station for a local area network according to an SNMP protocol, the Management station is in communication connection with an SNMP agent through the SNMP protocol, and data interaction is performed between the SNMP agent and devices through a MIB (Management Information Base), where the MIB defines an object to be managed in each device, that is, device Information of each device. When the device information of the device needs to be acquired, the computer device can establish communication connection with the SNMP agent of the device through a management station and send a data request to the SNMP agent of the device. The data request is used for applying for data defined in the MIB from the SNMP agent, and the data request further includes an IP address of the management station, that is, the IP address of the request end, and a time point when the data request is initiated, that is, a request time of the data request. And then, recording the IP address of the request end and the request time into an operation log of a management station, wherein the IP address of the request end is bound with the identity of related personnel, so that related responsible persons who send the data request to acquire asset equipment information can be traced according to the IP address of the request end.
And after identifying the data request, the SNMP agent converts data such as related states or state parameters provided by the equipment into a format defined by the MIB and feeds the MIB back to the management station. In this embodiment, the relevant state or state parameter refers to software and hardware information of the device, including an IP address, an MAC address, a port index number, a port type, a port speed, a physical address, CPU information, memory information, a device name, and an operating system. The MAC address, the port index number, the port type, the port speed, the physical address, the CPU information, the memory information, the device name, and the operating system are collectively referred to as other original device information in this embodiment, and the other original device information corresponds to the IP address. And after the SNMP agent converts the software and hardware information of the equipment into a format defined by the MIB, feeding the converted equipment information in the corresponding format back to the management station, and after receiving the fed back equipment information, establishing an original equipment information table in a preset database by the management station, and storing the equipment information into the original equipment information table to be used as an original record of the asset equipment in the local area network. According to the embodiment, the original equipment information or the target equipment information in the local area network can be acquired according to the SNMP agent.
In an exemplary embodiment, when the device information is stored in the original device information table, the IP address in the device information is also set as the primary key of the original device information table.
Specifically, a database table is composed of rows and columns, each row representing a record, each column representing a field, and the primary key is used to uniquely identify a field of a record. For example, in the original device information table, there are a plurality of fields such as an IP address, a MAC address, and a port index number, where the IP address is unique for each device in a local area network, and therefore, the IP address can be set as a primary key of the original device information table, so as to improve query efficiency of device information. In another exemplary embodiment, the MAC address may also be set as a primary key of the original device information table.
A comparing module 202, configured to obtain target device information of the at least one device in the local area network every preset time interval, and compare the target device information with the original device information to obtain a comparison result, where the target device information at least includes a target IP address.
Specifically, a scanning period is set by a timing scheduling task, and the management station is controlled to periodically send a data request to an SNMP agent in the local area network, so that the latest asset device information, that is, the target device information is acquired. And then, comparing the target equipment information with the original equipment information to judge whether the asset equipment in the local area network changes. The scanning period may be set arbitrarily, for example, the scanning period of the present embodiment is set to 5 minutes. By the embodiment, the target device information is compared with the original device information, and the record of the change of the device information in the local area network can be obtained.
In an exemplary embodiment, when comparing the target device information with the original device information, the target IP address in the target device information is further compared with the original IP address in the original device information one by one, and when an original IP address identical to the target IP address exists in the original device information, other original device information corresponding to the original IP address is acquired from the original device information table. In this embodiment, the target device information refers to software and hardware information of a device, which is obtained according to a timing scheduling task, and includes an IP address, an MAC address, a port index number, a port type, a port speed, a physical address, CPU information, memory information, a device name, and an operating system. The MAC address, the port index number, the port type, the port speed, the physical address, the CPU information, the memory information, the device name, and the operating system are collectively referred to as other target device information in this embodiment, and the other target device information corresponds to the IP address. Then, comparing the other original device information with other target device information corresponding to the target IP address, and when the other original device information is different from the other target device information, marking the other target device information as changed device information. In this embodiment, the changed device information in the local area network may be obtained by comparing the target IP address with the original IP address and comparing the corresponding other target device information with the other original device information.
Illustratively, there are ten fields of one thousand records in the device information table, each record having an original IP address and other original device information, wherein the original IP address is a primary key of the device information table. And the computer equipment compares the target IP address with the original IP address in the main key one by one, and when the original IP address same as the target IP address exists, the computer equipment acquires values of other nine fields corresponding to the original IP address, namely the information of other original equipment from the equipment information table, and compares the information of other original equipment with the information of other target equipment. And when one of the nine field values is different, marking other nine field values in the target device information as changed device information.
In another exemplary embodiment, after the target device information is marked as changed device information, a device change information table is established, and a request end IP address and a request time in an operation log of the management station are acquired, so that the request end IP address, the request time and the changed device information are stored in the device change information table. According to the embodiment, the changed device information is stored in the device change information table, so that the device change records are displayed in a sorted manner according to the request time in the device information.
In another exemplary embodiment, after comparing the target IP address in the target device information with the original IP address in the original device information one by one, when there is no original IP address identical to the target IP address in the original device information, the target device information is marked as new device information. And then, acquiring the request time and the request end IP address of the data request of the target device information, and storing the request time, the request end IP address and the newly added device information into the device change information table. By the embodiment, the information of the newly added equipment in the local area network can be obtained by comparing the target IP address with the original IP address.
In another exemplary embodiment, after the request time, the IP address of the requesting end, and the newly added and/or changed device information are stored in the device change information table, the original device information table is updated according to the newly added and/or changed device information. According to the embodiment, the original device information table is updated according to the new and/or changed device information, and the updated original device information table can be used as a reference for judging whether the device information in the local area network is changed.
Specifically, when the device change information table contains newly added device information, the newly added device information is added to the original device information table; and when the changed equipment information exists in the equipment information change table, changing the field value in the original equipment information table according to the changed equipment information.
And the display module 204 is configured to obtain and display information of the newly added and/or changed devices in the local area network according to the comparison result.
Specifically, the device change information is acquired from the device change information table, then the device change information is sorted according to the request time, and the sorted device change information is displayed on a display terminal. According to the embodiment, the device change information is sequenced and displayed according to the request time, so that the user can clearly see the change record of the device information in the local area network.
Illustratively, the original IP address of one device is 192.168.0.1, and the device name corresponding to the device is modified twice, the two modified names are sorted according to the sequence of the request time for modifying the device name, and then the two sorted device names are projected to a display terminal for displaying.
The invention obtains the asset equipment information in the local area network through the SNMP protocol, can automatically record the change of the asset equipment, and improves the management efficiency of the asset equipment.
EXAMPLE III
Fig. 4 is a schematic diagram of a hardware architecture of a computer device according to a third embodiment of the present invention. In the present embodiment, the computer device 2 is a device capable of automatically performing numerical calculation and/or information processing in accordance with a preset or stored instruction. The computer device 2 may be a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers), and the like. As shown in fig. 4, the computer device 2 includes, but is not limited to, at least a memory 21, a processor 22, a network interface 23, and a processing system 20 for device information change recording, which are communicatively connected to each other through a system bus. Wherein:
in this embodiment, the memory 21 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 21 may be an internal storage unit of the computer device 2, such as a hard disk or a memory of the computer device 2. In other embodiments, the memory 21 may also be an external storage device of the computer device 2, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like provided on the computer device 2. Of course, the memory 21 may also comprise both internal and external memory units of the computer device 2. In this embodiment, the memory 21 is generally used for storing an operating system installed in the computer device 2 and various types of application software, for example, a program code of the processing system 20 for the device information change log of the second embodiment. Further, the memory 21 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 22 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 22 is typically used to control the overall operation of the computer device 2. In this embodiment, the processor 22 is configured to run the program code stored in the memory 21 or process data, for example, run the processing system 20 for device information change record, so as to implement the method for processing the device information change record according to the first embodiment.
The network interface 23 may comprise a wireless network interface or a wired network interface, and the network interface 23 is generally used for establishing communication connection between the computer device 2 and other electronic apparatuses. For example, the network interface 23 is used to connect the computer device 2 to an external terminal through a network, establish a data transmission channel and a communication connection between the computer device 2 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like.
It is noted that fig. 4 only shows the computer device 2 with components 20-23, but it is to be understood that not all shown components are required to be implemented, and that more or less components may be implemented instead.
In this embodiment, the processing system 20 of the device information change log stored in the memory 21 may be further divided into one or more program modules, and the one or more program modules are stored in the memory 21 and executed by one or more processors (in this embodiment, the processor 22) to complete the present invention.
For example, fig. 3 shows a schematic diagram of program modules of the processing system 20 for device information change records, and in this embodiment, the processing system 20 for device information change records may be divided into an obtaining module 200, a comparing module 202 and a displaying module 204. The program module referred to in the present invention refers to a series of computer program instruction segments capable of performing specific functions, and is more suitable than a program for describing the execution process of the processing system 20 of the device information change record in the computer device 2. The specific functions of the program modules 200 and 204 have been described in detail in the second embodiment, and are not described herein again.
Example four
The present embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer-readable storage medium of this embodiment is used for storing the processing system 20 for device information change record, and when being executed by the processor, the processing system implements the processing method for device information change record of the first embodiment.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A method for processing a device information change record, comprising:
acquiring original equipment information of at least one equipment in a local area network, and establishing an original equipment information table according to the original equipment information, wherein the original equipment information at least comprises an original IP address;
acquiring target equipment information of the at least one equipment in the local area network every preset time interval, and comparing the target equipment information with the original equipment information to obtain a comparison result, wherein the target equipment information at least comprises a target IP address;
acquiring and displaying newly added and/or changed equipment information in the local area network according to the comparison result;
each device is preset with a corresponding SNMP agent, and the acquiring of original device information or target device information of at least one device in the local area network includes:
establishing communication connection with the SNMP agent according to an SNMP protocol;
sending a data request for acquiring original equipment information or target equipment information to the SNMP agent so that the SNMP agent feeds back the original equipment information or the target equipment information according to the data request, wherein the data request at least comprises a request time and a request terminal IP address;
Acquiring the original equipment information or the target equipment information from the SNMP agent;
the comparing the target device information with the original device information includes:
comparing a target IP address in the target equipment information with an original IP address in the original equipment information one by one, and acquiring other original equipment information corresponding to the original IP address from the original equipment information table when the original equipment information has the original IP address which is the same as the target IP address;
comparing the other original equipment information with other target equipment information corresponding to the target IP address, and marking the other target equipment information as changed equipment information when the other original equipment information is different from the other target equipment information;
and establishing an equipment change information table, and acquiring the request time and the request end IP address of the data request of the target equipment information so as to store the request time, the request end IP address and the changed equipment information into the equipment change information table.
2. The method for processing device information change record according to claim 1, wherein after comparing the target IP address in the target device information with the original IP address in the original device information one by one, the method further comprises:
When the original equipment information does not have the original IP address which is the same as the target IP address, marking the target equipment information as newly added equipment information;
and acquiring the request time and the request end IP address of the data request of the target device information, and storing the request time, the request end IP address and the newly added device information into the device change information table.
3. The method for processing the device information change record according to claim 1, wherein after acquiring the new and/or changed device information in the local area network according to the comparison result, the method further comprises:
and updating the original equipment information table according to the newly added and/or changed equipment information in the local area network.
4. The method for processing the device information change record according to claim 3, wherein the acquiring and displaying the new and/or changed device information in the local area network according to the comparison result includes:
acquiring equipment change information from the equipment change information table;
and sorting the equipment change information according to the request time, and displaying the sorted equipment change information.
5. A system for processing device information change records, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring original equipment information of at least one equipment in a local area network and establishing an original equipment information table according to the original equipment information, wherein the original equipment information at least comprises an original IP address;
a comparison module, configured to obtain target device information of the at least one device in the local area network every preset time interval, and compare the target device information with the original device information to obtain a comparison result, where the target device information at least includes a target IP address;
the display module is used for acquiring and displaying the information of the newly added and/or changed equipment in the local area network according to the comparison result;
each device is preset with a corresponding SNMP agent, and the acquiring module is further configured to:
establishing communication connection with the SNMP agent according to an SNMP protocol;
sending a data request for acquiring original equipment information to the SNMP agent so that the SNMP agent feeds back the original equipment information according to the data request, wherein the data request at least comprises a request moment and a request terminal IP address;
Acquiring the original equipment information from the SNMP agent;
the comparison module is further configured to:
comparing a target IP address in the target equipment information with an original IP address in the original equipment information one by one, and acquiring other original equipment information corresponding to the original IP address from the original equipment information table when the original equipment information has the original IP address which is the same as the target IP address;
comparing the other original equipment information with other target equipment information corresponding to the target IP address, and marking the other target equipment information as changed equipment information when the other original equipment information is different from the other target equipment information;
and establishing an equipment change information table, and acquiring the request time and the request end IP address of the data request of the target equipment information so as to store the request time, the request end IP address and the changed equipment information into the equipment change information table.
6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method for processing device information change records according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, in which a computer program is stored, the computer program being executable by at least one processor to cause the at least one processor to perform the steps of the method for processing a device information change record according to any one of claims 1 to 4.
CN202010075047.XA 2020-01-22 2020-01-22 Method and system for processing equipment information change record Active CN111342992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010075047.XA CN111342992B (en) 2020-01-22 2020-01-22 Method and system for processing equipment information change record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010075047.XA CN111342992B (en) 2020-01-22 2020-01-22 Method and system for processing equipment information change record

Publications (2)

Publication Number Publication Date
CN111342992A CN111342992A (en) 2020-06-26
CN111342992B true CN111342992B (en) 2022-07-29

Family

ID=71187037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010075047.XA Active CN111342992B (en) 2020-01-22 2020-01-22 Method and system for processing equipment information change record

Country Status (1)

Country Link
CN (1) CN111342992B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111953528B (en) * 2020-07-28 2023-09-15 深圳供电局有限公司 Distributed network asset mapping method and device, computer equipment and storage medium
CN111988442A (en) * 2020-08-10 2020-11-24 江苏锐创软件技术有限公司 IP resource management method, device, equipment and storage medium
CN112039725B (en) * 2020-08-20 2021-12-07 江苏锐创软件技术有限公司 IT physical asset monitoring method, device, platform and readable storage medium
CN114124899A (en) * 2021-10-28 2022-03-01 北京三快在线科技有限公司 Bill printing equipment management method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272275A (en) * 2008-05-07 2008-09-24 华为技术有限公司 Network management equipment, method and system for acquiring network appliance configuration information
CN103905265A (en) * 2012-12-27 2014-07-02 中国移动通信集团公司 Method and apparatus for detecting new device in network
CN107809433A (en) * 2017-11-06 2018-03-16 中国联合网络通信集团有限公司 Assets management method and device
CN110691001A (en) * 2019-10-25 2020-01-14 杭州迪普科技股份有限公司 Equipment unified management method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10341841B2 (en) * 2017-10-02 2019-07-02 Servicenow, Inc. Operation of device and application discovery for a managed network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272275A (en) * 2008-05-07 2008-09-24 华为技术有限公司 Network management equipment, method and system for acquiring network appliance configuration information
CN103905265A (en) * 2012-12-27 2014-07-02 中国移动通信集团公司 Method and apparatus for detecting new device in network
CN107809433A (en) * 2017-11-06 2018-03-16 中国联合网络通信集团有限公司 Assets management method and device
CN110691001A (en) * 2019-10-25 2020-01-14 杭州迪普科技股份有限公司 Equipment unified management method and device

Also Published As

Publication number Publication date
CN111342992A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN111342992B (en) Method and system for processing equipment information change record
CN109408746B (en) Image information query method, image information query device, computer equipment and storage medium
CN110704521A (en) Interface data access method and system
CN110932918B (en) Log data acquisition method and device and storage medium
CN112039900B (en) Network security risk detection method, system, computer device and storage medium
CN112217656A (en) Method and device for synchronizing configuration information of network equipment in SD-WAN (secure digital-to-Wide area network) system
CN111199028A (en) Resource information access method and device, computer equipment and storage medium
WO2019095667A1 (en) Database data collection method, application server, and computer readable storage medium
CN106202848A (en) The acquisition methods of medical image file, user terminal and master server
CN113946837A (en) Data access and data access authority configuration method, device and storage medium
CN111352851A (en) Program testing method and device, computer equipment and storage medium
CN111737227A (en) Data modification method and system
CN112422450B (en) Computer equipment, and flow control method and device for service request
CN113449339A (en) Log collection method, system, computer device and computer readable storage medium
CN109286527B (en) Method for associating switch logic and physical graph ports and network management system
CN110851334A (en) Flow statistical method, electronic device, system and medium
CN111552712A (en) Report data extraction method and device and computer equipment
CN111400289A (en) Intelligent user classification method, server and storage medium
CN110968592A (en) Metadata acquisition method and device, computer equipment and computer-readable storage medium
CN110119337B (en) Data analysis method and device and server
CN114328181A (en) Test case generation and execution method, device and storage medium
CN114466387A (en) Method and device for updating configuration file of base station, storage medium and electronic device
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN113242254A (en) Communication message processing method, device, terminal equipment and storage medium
CN113204427A (en) Resource management method, resource management device, computer equipment and storage medium

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
CB02 Change of applicant information

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: Qianxin Technology Group Co.,Ltd.

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Address before: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant before: Qianxin Technology Group Co.,Ltd.

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant