CN-121981662-A - Equipment checking method and device, storage medium and computer equipment
Abstract
The invention discloses a device checking method, a device, a storage medium and computer equipment, relating to the technical field of information, comprising the steps of responding to a checking signal of target equipment and determining the category of the target equipment; the method comprises the steps of generating an inventory calibration file corresponding to main class 1 equipment by an RPA robot in real time if the equipment class is the main class 1 equipment, storing inventory reference information of the main class 1 equipment and corresponding slave equipment in the inventory calibration file, acquiring inventory information of the main class 1 equipment and corresponding slave equipment, starting an inventory process in the RPA robot to match the inventory information with the inventory calibration file, determining an inventory result of the main class 1 equipment and corresponding slave equipment based on a matching result, starting the inventory process in the RPA robot to acquire login information of the main class 2 equipment if the equipment class is the main class 2 equipment, remotely logging the main class 2 equipment based on the login information, and determining the inventory result corresponding to the main class 2 equipment based on the login result.
Inventors
- DONG BO
- QIAN FENG
- CHEN YALEI
- MIAO QI
Assignees
- 中信银行股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251128
Claims (10)
- 1. A method of device inventory comprising: responding to an inventory signal of target equipment, and determining the equipment category of the target equipment; If the equipment type is the main 1-type equipment, controlling an RPA robot in real time to generate an inventory calibration file corresponding to the main 1-type equipment, wherein the inventory reference information of the main 1-type equipment and the corresponding slave equipment is stored in the inventory calibration file; Acquiring to-be-checked information of the master type 1 equipment and the corresponding slave equipment, starting a checking flow in the RPA robot to match the to-be-checked information with the checking calibration file, and determining the checking result of the master type 1 equipment and the corresponding slave equipment based on a matching result; If the equipment type is the main type 2 equipment, starting an inventory process in the RPA robot to acquire login information of the main type 2 equipment, remotely logging in the main type 2 equipment based on the login information, and determining an inventory result corresponding to the main type 2 equipment based on a login result.
- 2. The method of claim 1, wherein the generating, by the real-time control RPA robot, an inventory calibration file corresponding to the primary class 1 device comprises: Controlling the RPA robot to acquire main 1 type equipment information of the main 1 type equipment, slave equipment information of slave equipment connected with the main 1 type equipment and switch equipment information of a switch based on a preset command, wherein the main 1 type equipment information comprises an MAC address, an IP address and a serial number S/N of the main 1 type equipment, the slave equipment information comprises the serial number S/N of the slave equipment information, and the switch equipment information comprises the MAC address and the IP address of the switch; Processing information of the master type 1 equipment information, the slave equipment information and the switch equipment information, and storing the processed information into a data file of a preset catalog corresponding to the RPA robot to obtain an initial inventory calibration file; And carrying out information interaction on the initial inventory calibration file and a preset equipment information table, and taking the initial inventory calibration file after the information interaction as the inventory calibration file, wherein the preset equipment information table stores equipment information of various equipment in introduction, the equipment information comprises equipment asset codes and equipment basic attribute information, and the equipment information of the various equipment in introduction is classified and stored by taking a connected switch as a reference.
- 3. The method according to claim 2, wherein the information interaction between the initial inventory calibration file and a preset device information table is performed, and the initial inventory calibration file after the information interaction is used as the inventory calibration file, including: Determining a target storage category to which the device information of the main class 1 device belongs when being introduced in the preset device information table based on the switch MAC of the switch to which the main class 1 device is connected; based on the serial number S/N of the master type 1 device and the serial number S/N of the slave device connected with the master type 1 device, correspondingly matching the equipment asset code of the master type 1 device and the equipment asset code of the slave device in the target storage category of the preset equipment information table; and filling the equipment asset codes of the master type 1 equipment and the equipment asset codes of the slave equipment into the initial inventory calibration file to obtain the inventory calibration file.
- 4. The method of claim 2, wherein prior to information interacting the initial inventory calibration file with a pre-set device information table, the method further comprises: Acquiring basic equipment attribute information of each equipment in response to equipment arrival signals of different equipment, and acquiring environmental parameters of each equipment in real time, wherein the basic equipment attribute information comprises equipment name, equipment type, equipment model number, serial number S/N, MAC address, depreciation date, original value, user, use mechanism, network protocol, port, user name and corresponding password of each equipment, and the environmental parameters comprise arrival time stamp, geographic position coordinate, temperature and humidity data and transport carrier identification of each equipment; And respectively generating equipment asset codes of each equipment based on the static identification data and the environment parameters by taking the MAC address, the serial number S/N and the equipment model of each equipment as static identification data, and forming the preset equipment information table by the equipment asset codes of each equipment and the equipment basic attribute information, wherein the user names and the corresponding passwords in the preset equipment information table are stored in an encrypted mode.
- 5. The method of claim 4, wherein the generating device asset codes for each device based on the static identification data and the environmental parameters, respectively, comprises: Performing time sequence coding on the environment information to obtain environment information coding, generating a first hash value of the static identification data by using a first preset algorithm, and generating a second hash value of the environment information coding by using a second preset algorithm; Dynamically mixing the first hash value and the second hash value through a chaotic mapping function to generate an initial coding seed; and acquiring a supplier code and a production batch number of each device, splicing the supplier code and the production batch number to obtain a spliced character string, performing hash operation on the spliced character string to obtain a complementary coding seed, and performing hash operation on the initial coding seed and the complementary coding seed to obtain the device asset code.
- 6. The method of claim 1, wherein the to-be-checked information is a current MAC address, a current IP address of the master class 1 device, and a current serial number S/N of a slave device corresponding to the master class 1 device; the step of starting the inventory process in the RPA robot to match the information to be checked with the inventory calibration file, and determining the inventory result of the master class 1 device and the corresponding slave device based on the matching result, including: Matching the current MAC address, the current IP address and the current serial number S/N with the MAC address, the IP address and the serial number S/N of the main class 1 device recorded in the inventory calibration file, if the matching is passed, determining that the main class 1 device and the corresponding slave device pass the inventory, and recording the inventory passing result of the main class 1 device in a preset device information table; If the matching is failed, searching the main type 1 equipment in at least one of an online equipment list table, a preset equipment information table and a scrapped equipment list table corresponding to the current network based on the current MAC address and the current IP address, if the searching is successful, determining that the main type 1 equipment and the corresponding slave equipment of the main type 1 equipment pass the checking, recording the checking passing result of the main type 1 equipment in the preset equipment information table, and if the main type 1 equipment is not searched in the online equipment list table, the preset equipment information table and the scrapped equipment list table, determining that the main type 1 equipment and the corresponding slave equipment of the main type 1 equipment fail the checking, and recording the checking failing result of the main type 1 equipment in the preset equipment information table.
- 7. The method of claim 1, wherein determining the inventory result corresponding to the primary class 2 device based on the login result comprises: And if the main class 2 device is successfully logged in through the login information, judging that the checking of the main class 2 device passes, otherwise, judging that the checking of the main class 2 device fails.
- 8. An apparatus for checking a device, comprising: a determining unit, configured to determine, in response to an inventory signal of a target device, a device class to which the target device belongs; The generating unit is used for controlling the RPA robot to generate an inventory calibration file corresponding to the main type 1 equipment in real time if the equipment type is the main type 1 equipment, wherein the inventory reference information of the main type 1 equipment and the corresponding slave equipment is stored in the inventory calibration file; The matching unit is used for acquiring the information to be checked of the master type 1 equipment and the corresponding slave equipment, starting the checking flow in the RPA robot to match the information to be checked with the checking calibration file, and determining the checking result of the master type 1 equipment and the corresponding slave equipment based on the matching result; And the login unit is used for starting an inventory process in the RPA robot to acquire login information of the main type 2 equipment if the equipment type is the main type 2 equipment, remotely logging in the main type 2 equipment based on the login information, and determining an inventory result corresponding to the main type 2 equipment based on a login result.
- 9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
- 10. 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 computer program when executed by the processor implements the steps of the method according to any one of claims 1 to 7.
Description
Equipment checking method and device, storage medium and computer equipment Technical Field The present invention relates to the field of information technologies, and in particular, to a device checking method, a device, a storage medium, and a computer device. Background With the continuous development of enterprises, office equipment (such as computers, routers, switches, network printers, and external devices connected to the computers through USB, serial ports, parallel ports, etc.) is increasing, and in order to prevent the equipment from being privately used, lost or stolen, etc., the equipment needs to be checked regularly. Currently, the device is typically checked manually. However, the manual checking mode requires that the staff arrive at the position of the equipment one by one, which is time-consuming and labor-consuming, and meanwhile, due to negligence of the staff, the equipment checking error condition exists. Disclosure of Invention The invention provides a device checking method, a device, a storage medium and computer equipment, which mainly aim to improve the checking efficiency and the checking accuracy of the device. According to a first aspect of the present invention, there is provided an apparatus checking method, comprising: responding to an inventory signal of target equipment, and determining the equipment category of the target equipment; If the equipment type is the main 1-type equipment, controlling an RPA robot in real time to generate an inventory calibration file corresponding to the main 1-type equipment, wherein the inventory reference information of the main 1-type equipment and the corresponding slave equipment is stored in the inventory calibration file; Acquiring to-be-checked information of the master type 1 equipment and the corresponding slave equipment, starting a checking flow in the RPA robot to match the to-be-checked information with the checking calibration file, and determining the checking result of the master type 1 equipment and the corresponding slave equipment based on a matching result; If the equipment type is the main type 2 equipment, starting an inventory process in the RPA robot to acquire login information of the main type 2 equipment, remotely logging in the main type 2 equipment based on the login information, and determining an inventory result corresponding to the main type 2 equipment based on a login result. Optionally, the generating, by the real-time control RPA robot, an inventory calibration file corresponding to the main class 1 device includes: Controlling the RPA robot to acquire main 1 type equipment information of the main 1 type equipment, slave equipment information of slave equipment connected with the main 1 type equipment and switch equipment information of a switch based on a preset command, wherein the main 1 type equipment information comprises an MAC address, an IP address and a serial number S/N of the main 1 type equipment, the slave equipment information comprises the serial number S/N of the slave equipment information, and the switch equipment information comprises the MAC address and the IP address of the switch; Processing information of the master type 1 equipment information, the slave equipment information and the switch equipment information, and storing the processed information into a data file of a preset catalog corresponding to the RPA robot to obtain an initial inventory calibration file; And carrying out information interaction on the initial inventory calibration file and a preset equipment information table, and taking the initial inventory calibration file after the information interaction as the inventory calibration file, wherein the preset equipment information table stores equipment information of various equipment in introduction, the equipment information comprises equipment asset codes and equipment basic attribute information, and the equipment information of the various equipment in introduction is classified and stored by taking a connected switch as a reference. Optionally, performing information interaction between the initial checking calibration file and a preset device information table, and using the initial checking calibration file after information interaction as the checking calibration file, where the method includes: Determining a target storage category to which the device information of the main class 1 device belongs when being introduced in the preset device information table based on the switch MAC of the switch to which the main class 1 device is connected; based on the serial number S/N of the master type 1 device and the serial number S/N of the slave device connected with the master type 1 device, correspondingly matching the equipment asset code of the master type 1 device and the equipment asset code of the slave device in the target storage category of the preset equipment information table; and filling the equipment asset codes of the master type 1 equipment and the