CN117194166A - Monitoring method and device for serial port external equipment, electronic equipment and storage medium - Google Patents

Monitoring method and device for serial port external equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN117194166A
CN117194166A CN202311203812.1A CN202311203812A CN117194166A CN 117194166 A CN117194166 A CN 117194166A CN 202311203812 A CN202311203812 A CN 202311203812A CN 117194166 A CN117194166 A CN 117194166A
Authority
CN
China
Prior art keywords
monitoring
monitored
equipment
serial port
instruction
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.)
Pending
Application number
CN202311203812.1A
Other languages
Chinese (zh)
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.)
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software 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 Beijing Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202311203812.1A priority Critical patent/CN117194166A/en
Publication of CN117194166A publication Critical patent/CN117194166A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application provides a monitoring method of serial port external equipment, which comprises the following steps: acquiring each external device connected through a serial port server/serial port bus and configuring a plurality of external devices as devices to be monitored, wherein the devices to be monitored correspond to the identification of the serial port server and/or the identification of the serial port; acquiring monitoring instructions of all equipment to be monitored; monitoring equipment to be monitored based on the monitoring instruction and acquiring monitoring information of each piece of equipment to be monitored; generating early warning information and/or monitoring reports based on the monitoring information; the monitoring instruction comprises a first instruction and/or a second instruction, wherein the first instruction is used for inquiring the state of the equipment to be monitored, and the second instruction is used for conducting fault investigation on the monitoring equipment. The application also discloses a monitoring device of the serial port external equipment, the electronic equipment and a readable storage medium.

Description

Monitoring method and device for serial port external equipment, electronic equipment and storage medium
Technical Field
The present application relates to the field of network device application and monitoring technologies, and in particular, to a method and apparatus for monitoring a serial port external device, an electronic device, and a storage medium.
Background
With the continuous progress of technology, modern network systems are increasingly complex, and various network devices are becoming more popular. Particularly in the field of network security, monitoring of external devices of a serial server becomes an indispensable part of a control system. And the external devices send data to the serial server to realize remote control and monitoring of the control system.
In a complex network environment, real-time recording of serial print information of a large number of devices is a very troublesome problem. Because these devices usually do not have the maintenance personnel to use the terminal tool monitoring device in real time, it is difficult to know the operation state and the abnormal situation of the devices in real time, once a network fault occurs in a certain device, it is usually not enough for the maintenance personnel to use the terminal tool to connect the device to check the serial port, which clearly increases the difficulty and the workload of fault investigation.
Disclosure of Invention
The embodiment of the application aims to provide a monitoring method, a monitoring device, electronic equipment and a storage medium for serial port external equipment, and the monitoring method, the device, the electronic equipment and the storage medium can realize state monitoring and fault detection of the serial port external equipment, greatly reduce the workload of operation and maintenance staff of the external equipment of a serial port server, and further improve the operation and maintenance work efficiency of the external equipment.
According to the monitoring method of the serial port external equipment provided by the first aspect of the application, the method comprises the following steps:
acquiring all external devices connected through a serial port server/serial port bus and configuring a plurality of external devices as devices to be monitored, wherein the devices to be monitored correspond to the identification of the serial port server and/or the identification of the serial port;
acquiring monitoring instructions of the equipment to be monitored;
monitoring the equipment to be monitored based on the monitoring instruction and acquiring monitoring information of each piece of equipment to be monitored, wherein the monitoring information records the running condition of the equipment to be monitored;
generating early warning information and/or a monitoring report based on the monitoring information;
the monitoring instruction comprises a first instruction and/or a second instruction, wherein the first instruction is used for inquiring the state of the equipment to be monitored, and the second instruction is used for conducting fault detection on the equipment to be monitored.
According to one embodiment of the present application, the monitoring the device to be monitored based on the monitoring instruction and obtaining monitoring information of each device to be monitored includes:
and monitoring the equipment to be monitored at preset time intervals based on the monitoring instruction and acquiring monitoring information of each piece of equipment to be monitored.
According to one embodiment of the application, the method further comprises:
monitoring the equipment to be monitored based on the first instruction and acquiring monitoring information of each piece of equipment to be monitored; and
and responding to the monitoring information to indicate that the equipment to be monitored is abnormal, and sending the monitoring information to a receiving end.
According to one embodiment of the present application, after acquiring the monitoring information, the method further includes:
and storing the monitoring information and updating the stored monitoring information based on a preset strategy.
According to one embodiment of the present application, the storing the monitoring information and updating the stored monitoring information based on a predetermined policy includes:
responding to the serial port identification corresponding to the equipment to be monitored in the monitoring information, which is recorded in a storage block, and the storage record of the serial port identification exists after a first preset time point, and storing the monitoring information in an additional mode;
wherein, the additional mode storage means that the monitoring information is continuously written on the basis of the existing storage data of the storage block, and the existing storage data of the storage block is not modified or deleted.
According to one embodiment of the present application, the storing the monitoring information and updating the stored monitoring information based on a predetermined policy further includes:
and distributing a new storage block to store the monitoring information in response to the serial port identification corresponding to the equipment to be monitored in the monitoring information not being recorded in the storage block, or in response to the serial port identification corresponding to the equipment to be monitored being recorded in the storage block but not having the storage record of the serial port identification after a first preset time point.
According to one embodiment of the application, the method further comprises:
performing fault detection on the equipment to be monitored based on the second instruction, wherein the fault detection comprises;
responding to the monitoring information to indicate the abnormality of the equipment to be monitored corresponding to the identification of the serial port server and/or the identification of the serial port, and performing fault detection on the equipment to be monitored based on the second instruction.
According to one embodiment of the present application, further comprising:
the second instruction is generated based on a preset fault checking strategy, and the fault checking strategy at least comprises information supporting the debugging of the equipment to be monitored.
According to the monitoring device of the serial port external equipment provided by the second aspect of the application, the monitoring device comprises:
the monitoring management module is used for acquiring all external devices connected through a serial port server/serial port bus and configuring a plurality of external devices as devices to be monitored, wherein the devices to be monitored correspond to the identification of the serial port server and/or the identification of the serial port;
the monitoring instruction acquisition module acquires monitoring instructions of the equipment to be monitored;
the monitoring data acquisition module is used for monitoring the equipment to be monitored based on the monitoring instruction and acquiring monitoring information of each piece of equipment to be monitored, wherein the monitoring information records the running condition of the equipment to be monitored;
the early warning module generates early warning information and/or a monitoring report based on the monitoring information;
the monitoring instruction comprises a first instruction and/or a second instruction, wherein the first instruction is used for inquiring the state of the equipment to be monitored, and the second instruction is used for conducting fault detection on the equipment to be monitored.
According to the electronic device provided by the third aspect of the present application, the electronic device includes a processor and a memory, the memory stores an executable program, and the memory executes the executable program to perform the method for monitoring the serial port external device according to any one of the above-mentioned aspects.
According to a fourth aspect of the present application, there is provided a storage medium carrying one or more computer programs, which when executed by a processor, implement a method for monitoring a serial port external device according to any one of the above.
The monitoring method of the serial port external equipment can record the system state and serial port monitoring information of all the external equipment on a plurality of serial port servers in real time, and a mode that a terminal tool is used for connecting a plurality of equipment to record serial port information is not needed, so that the workload of workers can be greatly reduced, and the external equipment of the serial port servers is easier to maintain. In addition, the monitoring method of the serial port external equipment can automatically send alarm signals and generate diagnosis reports, can optimize network fault detection means, and further improves the operation and maintenance work efficiency of operation and maintenance personnel on the serial port server external equipment.
Drawings
Fig. 1 is a flowchart of a monitoring method of a serial port external device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a monitoring device of a serial port external device according to an embodiment of the present application.
Reference numerals
1000. A monitoring device; 1001. a monitoring management module; 1002. a monitoring instruction acquisition module; 1003. a monitoring data acquisition module; 1004. an early warning module; 1100. a bus; 1200. a processor; 1300. a memory; 1400. other circuits.
Detailed Description
Various aspects and features of the present application are described herein with reference to the accompanying drawings.
It should be understood that various modifications may be made to the embodiments of the application herein. Therefore, the above description should not be taken as limiting, but merely as exemplification of the embodiments. Other modifications within the scope and spirit of the application will occur to persons of ordinary skill in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with a general description of the application given above, and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the application will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It is also to be understood that, although the application has been described with reference to some specific examples, those skilled in the art can certainly realize many other equivalent forms of the application.
According to one embodiment of the present application, as shown in fig. 1, the method 100 for monitoring a serial port external device includes the following steps.
Step S101, obtaining all external devices connected through a serial port server/serial port bus and configuring a plurality of external devices as devices to be monitored, wherein the devices to be monitored correspond to the identification of the serial port server and/or the identification of the serial port;
step S102, obtaining monitoring instructions of all equipment to be monitored;
step S103, monitoring equipment to be monitored based on the monitoring instruction, acquiring monitoring information of each piece of equipment to be monitored, and recording the running condition of the equipment to be monitored by the monitoring information;
step S104, generating early warning information and/or a monitoring report based on the monitoring information;
the monitoring instruction comprises a first instruction and/or a second instruction, wherein the first instruction is used for inquiring the state of equipment to be monitored, and the second instruction is used for conducting fault investigation on the equipment to be monitored.
The monitoring method of the serial port external equipment can record the system state and serial port monitoring information of all the external equipment on a plurality of serial port servers in real time, and a mode that a terminal tool is used for connecting a plurality of equipment to record serial port information is not needed, so that the workload of workers can be greatly reduced, and the external equipment of the serial port servers is easier to maintain. In addition, the monitoring equipment automatically sends an alarm signal and automatically generates a diagnosis report, so that a network fault detection means can be optimized, and the working efficiency of operation and maintenance personnel on operation and maintenance of equipment connected with the serial server is further improved.
The following describes each step of the monitoring method 100 for a serial port external device in the embodiment of the present application in detail.
In step S101, each external device connected through the serial server/serial bus is obtained and a plurality of external devices are configured as devices to be monitored, where the devices to be monitored correspond to the identifier of the serial server and/or the identifier of the serial port.
For example, at least one of an external server or a serial bus may be connected to each external server or serial bus. In order to obtain each external device connected with the serial server/serial bus, all serial servers needing to be monitored can be connected by using a protocol library such as ssh and telnet of python language, so as to obtain the external device connected with the serial server. Because serial port identifiers of the serial port server and/or serial port identifiers of the serial port bus are in one-to-one correspondence with the external devices, the corresponding external devices can be identified together through the serial port server identifiers and the serial port identifiers. And determining one or more external devices connected with the serial port server as devices to be monitored, wherein the corresponding external devices are determined together through serial port identifiers of the serial port server and/or serial port identifiers of a serial port bus.
In step S102, a monitoring instruction of each device to be monitored is acquired. The monitoring instruction comprises a first instruction and/or a second instruction, wherein the first instruction is used for inquiring the state of the equipment to be monitored, and the second instruction is used for conducting fault investigation on the equipment to be monitored.
The device to be monitored may be a firewall, which is a common security device for protecting a network from unauthorized access and attack, and when the firewall fails, it may cause a user to break down the network, which requires serial port real-time monitoring and troubleshooting of the firewall. The monitoring instruction of the firewall may include a first instruction and a second instruction, where the first instruction is used to query an operation state of the firewall device, and the second instruction is used to perform fault detection when the firewall device fails. Specifically, the first instruction may include, for example, a firewall running state print instruction, a firewall system information acquisition instruction, and the second instruction may include, for example, a firewall failure troubleshooting instruction.
In an embodiment of the present application, the step S103 monitors the devices to be monitored based on the monitoring instruction and obtains the monitoring information of each device to be monitored, and may further include S1031: and periodically monitoring the equipment to be monitored at preset time intervals based on the monitoring instruction and acquiring monitoring information of each equipment to be monitored. Illustratively, the instruction execution time or period of the first instruction or the second instruction is configured, such as the execution period being every 10 minutes, or the first instruction or the second instruction being executed at 4 points per day.
Taking a firewall as an example, when the firewall of the external device is used as the device to be monitored, the execution period of the firewall system information acquisition command can be set, and when the time interval for acquiring the system information of the firewall is set to be 2S or 5S, the system information of the firewall is acquired every 2S or 5S. The firewall system information may include a CPU usage rate, a memory usage rate, a disk usage rate, a flow rate, etc. of the firewall system, and when the instruction for acquiring the firewall system information is executed, the CPU usage rate, the memory usage rate, the disk usage rate, the flow rate of the firewall system are acquired every 2S or 5S. When the execution period of the firewall running state printing instruction is set to 1S, the firewall running state is printed at 1S intervals.
In one embodiment of the present application, after the monitoring information is obtained in step S103, the method may further include step S105: and storing the monitoring information and updating the stored monitoring information based on a preset strategy.
In one embodiment of the present application, storing the monitoring information and updating the stored monitoring information based on a predetermined policy includes step S1051: and responding to the storage record of the serial port identifier which is recorded in the storage block and exists after the first preset time point and corresponds to the equipment to be monitored in the monitoring information, and storing the monitoring information in an additional mode. The first preset time point may be set according to actual conditions, for example, the first preset time point may be set as a zero point of each day. The additional mode of the application stores the monitoring information, namely, based on the existing storage data of the original storage block, the monitoring information is continuously written in the storage block, and the existing storage data of the storage block is not modified or deleted.
In one embodiment of the present application, the monitoring information is stored and the stored monitoring information is updated based on a predetermined policy, and further includes step S1052: and distributing a new storage block to store the monitoring information in response to the serial port identification corresponding to the equipment to be monitored in the monitoring information not being recorded in the storage block, or in response to the serial port identification corresponding to the equipment to be monitored being recorded in the storage block but no storage record of the serial port identification exists after a first preset time point. The first preset time point may be set according to actual conditions, for example, the first preset time point may be set as a zero point of each day.
In one embodiment of the present application, the monitoring information is stored and the stored monitoring information is updated based on a predetermined policy, further comprising step S1053: detecting the update state and the storage amount of the storage block, and initializing the storage block according to the update state and the storage amount. For example, the update status of each storage block is periodically detected every day, if the storage block has not been updated for more than one month, it is indicated that the external device corresponding to the serial port identifier associated with the storage block does not generate data for a long time, and at this time, the storage block may be initialized for use in redistribution. Meanwhile, the current data storage amount of each storage block may also be detected, if the storage amount exceeds a certain threshold value, the storage block is initialized, and the threshold value may be set to 300M, for example, when the size of each storage block is periodically detected every day, it is found that a certain storage block is greater than 300M, and the initialization is performed on the storage block.
In one embodiment of the present application, the monitoring information is stored and the stored monitoring information is updated based on a predetermined policy, further comprising step S1054: the stored monitoring information in the storage block is archived. The monitoring information in the memory block may be stored by periodic archiving, for example, the data in the memory block may be sent to a server or to an operation and maintenance person mailbox address at a fixed time of day, such as 8 points.
According to the monitoring method for the external equipment of the serial port, after the monitoring information is obtained, the monitoring information can be stored and the stored monitoring information can be updated based on the preset strategy, on one hand, whether the equipment to be monitored is stored in the storage block after the preset time is judged through the serial port identification, the running state of the equipment to be monitored corresponding to the serial port identification can be recorded and stored in a time-sharing mode, and on the other hand, the running state of the equipment to be monitored corresponding to the serial port identification after different preset times can be stored in different storage blocks. The monitoring method of the serial port external equipment is beneficial to inquiring or managing the running state of the serial port external equipment according to two dimensions of time and the physical storage block, improves the running and maintenance efficiency of the serial port server external equipment, and simultaneously effectively solves the problem of updating aging data generated in the monitoring of the serial port server external equipment.
In one embodiment of the present application, the monitoring method of the serial port external device further includes step S106: monitoring equipment to be monitored based on the first instruction and acquiring monitoring information of each piece of equipment to be monitored; and responding to the monitoring information to indicate that the equipment to be monitored is abnormal, and sending the monitoring information to the receiving end.
Because the monitoring information records the running state of the equipment to be monitored, when the running state is abnormal, an early warning or monitoring report can be generated based on the monitoring information, and the monitoring information is more intuitively convenient for operation and maintenance personnel to check. Taking the firewall as the equipment to be monitored as an example, when the monitoring information indicates that the CPU or the memory of the firewall system runs at full load, early warning information can be generated and sent to the communication receiving end of the operation and maintenance personnel.
Optionally, in an embodiment of the present application, a contact manner of a maintainer, such as mailbox information, may be configured, where the mailbox is used to receive monitoring information generated by the device to be monitored by the monitoring instruction. When the method needs to be described, the contact mode of the maintainer is not limited to the mailbox, and the contact mode of the maintainer can be configured and supported by the method and the device, and can also be other communication modes such as short messages, messages of instant messaging software and the like. The mail configuration mode can also be realized through a mail library such as smtplib, MIMEMultipart, MIMEImage, MIMEText, header of python language.
In one embodiment of the application, under the normal operation condition of the firewall, a monitoring report can be generated based on the firewall monitoring information, wherein the monitoring report records the operation condition of the firewall system in a preset monitoring time range.
Optionally, after step S104, the method further includes: when an abnormality occurs to a certain external device as the device to be monitored, the external device automatically sends an alarm signal. For example, automated mail feedback for monitoring information and fault reporting may be implemented using a mail library such as smtplib, MIMEMultipart, MIMEImage, MIMEText, header in the python language. The application can configure the information of mail receivers (namely operation staff and mailbox addresses thereof, mobile phone numbers or other communication modes), so that serial port printing information (namely external equipment operation state information corresponding to a certain serial port of a serial port server) before, during and after faults and system information of equipment to be monitored are sent to the maintenance staff through communication modes such as mails.
In one implementation of the present application, the monitoring method of the serial port external device further includes step S107: performing fault detection on equipment to be monitored based on the second instruction, wherein the fault detection comprises; and responding to the monitoring information to indicate the abnormality of the equipment to be monitored corresponding to the identification of the serial port server and/or the identification of the serial port, and performing fault detection on the equipment to be monitored based on the second instruction. When the firewall device is a serial port external device and the device is a device to be monitored, the state of the firewall device is obtained through the first instruction, whether the firewall operates normally can be judged based on the obtained state information of the firewall device, and if the firewall operates abnormally, fault detection can be performed on the firewall device through the second instruction.
In one embodiment of the present application, the monitoring method of the serial port external device further includes step S108: the second instruction is generated based on a preset fault detection strategy, and the fault detection strategy at least comprises information supporting debugging of equipment to be monitored. Illustratively, continuing to take the firewall as an example, a second instruction may be generated based on a preset troubleshooting policy to troubleshoot the firewall. The preset fault detection policy may be preconfigured, and the configuration at least supports debugging information of the firewall, where the debugging information may debug the firewall to remove the fault when the firewall fails. In addition, the preset troubleshooting strategy can also support the acquisition and recording of the predefined setting part system information, the timing execution command issuing and the return value, and can be customized and modified according to the actual situation.
According to the monitoring method for the serial port external equipment, on one hand, early warning information and/or monitoring reports are generated based on the monitoring information and sent to operation and maintenance personnel, on the other hand, fault investigation can be carried out on the equipment to be monitored based on the second instructions.
According to the monitoring device for the serial port external equipment provided by one embodiment of the application, as shown in fig. 2, the monitoring device 1000 comprises a monitoring management module 1001, a monitoring instruction acquisition module 1002, a monitoring data acquisition module 1003 and an early warning module 1004. The monitoring management module 1001 is configured to acquire each external device connected through the serial server/serial bus and configure a plurality of external devices as devices to be monitored, the devices to be monitored correspond to the identifier of the serial server and/or the identifier of the serial port, the monitoring instruction acquisition module 1002 is configured to generate a monitoring instruction based on each device to be monitored, the monitoring instruction acquisition module 1002 is configured to monitor the devices to be monitored based on the monitoring instruction and acquire monitoring information of each device to be monitored, and the early warning module 1004 is configured to generate early warning information and/or a monitoring report based on the monitoring information. The monitoring instruction comprises a first instruction and/or a second instruction, wherein the first instruction is used for inquiring the state of equipment to be monitored, and the second instruction is used for conducting fault investigation on the equipment to be monitored.
The monitoring device 1000 of the serial port external device provided by the application can be deployed on any electronic device connected with a serial port server, and the electronic device can be a PC, a notebook computer or a server.
It should be noted that, in the monitoring apparatus 1000 for serial port external equipment provided by the present application, implementation details of each module correspond to each step of the monitoring method 100 for serial port external equipment provided by the present application, and will not be described herein in detail.
According to a third aspect of the present application there is provided an electronic device comprising a processor and a memory, the memory having stored therein an executable program, the memory executing the executable program to perform the method of any one of the above.
A storage medium according to a fourth aspect of the present application is provided, wherein the storage medium carries one or more computer programs which when executed by a processor implement any of the methods described above.
FIG. 2 illustrates an example diagram of a monitoring device for a serial port external device employing a hardware implementation of a processing system. The monitoring device of the serial port external device may include corresponding modules for executing each or several steps in the above flowchart. Thus, each step or several steps in the flowcharts described above may be performed by respective modules, and the apparatus may include one or more of these modules. A module may be one or more hardware modules specifically configured to perform the respective steps, or be implemented by a processor configured to perform the respective steps, or be stored within a computer-readable medium for implementation by a processor, or be implemented by some combination.
The hardware architecture may be implemented using a bus architecture. The bus architecture may include any number of interconnecting buses and bridges depending on the specific application of the hardware and the overall design constraints. Bus 1100 connects together various circuits including one or more processors 1200, memory 1300, and/or hardware modules. Bus 1100 may also connect various other circuits 1400, such as peripherals, voltage regulators, power management circuits, external antennas, and the like.
Bus 1100 may be an industry standard architecture (ISA, industry Standard Architecture) bus, a peripheral component interconnect (PCI, peripheral Component) bus, or an extended industry standard architecture (EISA, extended Industry Standard Component) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one connection line is shown in the figure, but not only one bus or one type of bus.
The processor 1200 may be a general purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL) or any combination thereof. The general purpose processor may be a microprocessor or any conventional processor or the like.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application. The processor performs the various methods and processes described above. For example, method embodiments of the present application may be implemented as a software program tangibly embodied on a machine-readable medium, such as a memory. In some embodiments, part or all of the software program may be loaded and/or installed via memory and/or a communication interface. One or more of the steps of the methods described above may be performed when a software program is loaded into memory and executed by a processor. Alternatively, in other embodiments, the processor may be configured to perform one of the methods described above in any other suitable manner (e.g., by means of firmware).
Logic and/or steps represented in the flowcharts or otherwise described herein may be embodied in any readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
For the purposes of this description, a "readable storage medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM). In addition, the readable storage medium may even be paper or other suitable medium on which the program can be printed, as the program can be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted, or otherwise processed in a suitable manner if necessary, and then stored in a memory.
It should be understood that portions of the present application may be implemented in hardware, software, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or part of the steps implementing the method of the above embodiment may be implemented by a program to instruct related hardware, and the program may be stored in a readable storage medium, where the program when executed includes one or a combination of the steps of the method embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated into one processing module, each unit may exist alone physically, or two or more units may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product. The storage medium may be a read-only memory, a magnetic disk or optical disk, etc.
In the description of the present specification, reference to the terms "one embodiment/mode," "some embodiments/modes," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment/mode or example is included in at least one embodiment/mode or example of the present application. In this specification, the schematic representations of the above terms are not necessarily the same embodiments/modes or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments/modes or examples. Furthermore, the various embodiments/implementations or examples described in this specification and the features of the various embodiments/implementations or examples may be combined and combined by persons skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
It will be appreciated by persons skilled in the art that the above embodiments are provided for clarity of illustration only and are not intended to limit the scope of the application. Other variations or modifications will be apparent to persons skilled in the art from the foregoing disclosure, and such variations or modifications are intended to be within the scope of the present application.

Claims (10)

1. The monitoring method of the serial port external equipment is characterized by comprising the following steps of:
acquiring all external devices connected through a serial port server/serial port bus and configuring a plurality of external devices as devices to be monitored, wherein the devices to be monitored correspond to the identification of the serial port server and/or the identification of the serial port;
acquiring monitoring instructions of the equipment to be monitored;
monitoring the equipment to be monitored based on the monitoring instruction and acquiring monitoring information of each piece of equipment to be monitored, wherein the monitoring information records the running condition of the equipment to be monitored; and
generating early warning information and/or a monitoring report based on the monitoring information;
the monitoring instruction comprises a first instruction and/or a second instruction, wherein the first instruction is used for inquiring the state of the equipment to be monitored, and the second instruction is used for conducting fault detection on the equipment to be monitored.
2. The method for monitoring a serial port external device according to claim 1, further comprising:
monitoring the equipment to be monitored based on the first instruction and acquiring monitoring information of each piece of equipment to be monitored; and
and responding to the monitoring information to indicate that the equipment to be monitored is abnormal, and sending the monitoring information to a receiving end.
3. The method for monitoring the serial port external device according to claim 1, further comprising, after obtaining the monitoring information:
and storing the monitoring information and updating the stored monitoring information based on a preset strategy.
4. The method for monitoring the serial port external device according to claim 3, wherein the storing the monitoring information and updating the stored monitoring information based on a predetermined policy includes:
responding to the serial port identification corresponding to the equipment to be monitored in the monitoring information, which is recorded in a storage block, and the storage record of the serial port identification exists after a first preset time point, and storing the monitoring information in an additional mode;
wherein, the additional mode storage means that the monitoring information is continuously written on the basis of the existing storage data of the storage block, and the existing storage data of the storage block is not modified or deleted.
5. The method for monitoring the serial port external device according to claim 3, wherein the storing the monitoring information and updating the stored monitoring information based on a predetermined policy further comprises:
and distributing a new storage block to store the monitoring information in response to the serial port identification corresponding to the equipment to be monitored in the monitoring information not being recorded in the storage block, or in response to the serial port identification corresponding to the equipment to be monitored being recorded in the storage block but not having the storage record of the serial port identification after a first preset time point.
6. The method for monitoring a serial port external device according to claim 1, further comprising:
performing fault detection on the equipment to be monitored based on the second instruction, wherein the fault detection comprises;
responding to the monitoring information to indicate the abnormality of the equipment to be monitored corresponding to the identification of the serial port server and/or the identification of the serial port, and performing fault detection on the equipment to be monitored based on the second instruction.
7. The method for monitoring the serial port external device according to claim 1, further comprising:
the second instruction is generated based on a preset fault checking strategy, and the fault checking strategy at least comprises information supporting the debugging of the equipment to be monitored.
8. A monitoring device of serial port external equipment is characterized by comprising:
the monitoring management module is used for acquiring all external devices connected through a serial port server/serial port bus and configuring a plurality of external devices as devices to be monitored, wherein the devices to be monitored correspond to the identification of the serial port server and/or the identification of the serial port;
the monitoring instruction acquisition module acquires monitoring instructions of the equipment to be monitored;
the monitoring data acquisition module is used for monitoring the equipment to be monitored based on the monitoring instruction and acquiring monitoring information of each piece of equipment to be monitored, wherein the monitoring information records the running condition of the equipment to be monitored; and
the early warning module generates early warning information and/or a monitoring report based on the monitoring information;
the monitoring instruction comprises a first instruction and/or a second instruction, wherein the first instruction is used for inquiring the state of the equipment to be monitored, and the second instruction is used for conducting fault detection on the equipment to be monitored.
9. An electronic device comprising a processor and a memory, the memory having stored therein an executable program that is executed by the memory to perform the method of any of claims 1-7.
10. A storage medium carrying one or more computer programs which when executed by a processor implement the method of any one of claims 1 to 7.
CN202311203812.1A 2023-09-18 2023-09-18 Monitoring method and device for serial port external equipment, electronic equipment and storage medium Pending CN117194166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311203812.1A CN117194166A (en) 2023-09-18 2023-09-18 Monitoring method and device for serial port external equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311203812.1A CN117194166A (en) 2023-09-18 2023-09-18 Monitoring method and device for serial port external equipment, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117194166A true CN117194166A (en) 2023-12-08

Family

ID=88993934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311203812.1A Pending CN117194166A (en) 2023-09-18 2023-09-18 Monitoring method and device for serial port external equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117194166A (en)

Similar Documents

Publication Publication Date Title
US7281040B1 (en) Diagnostic/remote monitoring by email
CN109143954B (en) System and method for realizing controller reset
CN110954849B (en) Abnormity detection system and method for electrical equipment and monitoring terminal
CN114124655B (en) Network monitoring method, system, device, computer equipment and storage medium
CN108282355B (en) Equipment inspection device in cloud desktop system
CN111176939B (en) Multi-node server management system and method based on CPLD
CN112799909A (en) Automatic management system and method for server
US20090259890A1 (en) Method & apparatus for hardware fault management
CN113765687B (en) Fault alarm method, device and equipment of server and storage medium
EP1622310B1 (en) Administration method and system for network management systems
CN113518020A (en) Method, device and equipment for detecting disconnection return and readable storage medium
CN110873613A (en) Method and device for processing machine room abnormity based on temperature monitoring
CN113176982A (en) Device and method for realizing VPX architecture-based chassis management system
CN108064054B (en) FTP file transmission monitoring method and system in LTE system
CN117194166A (en) Monitoring method and device for serial port external equipment, electronic equipment and storage medium
CN114374627A (en) Method, device and system for restarting baseboard management controller and server
CN114338350A (en) Alarm method, alarm device, electronic equipment and computer storage medium
CN115934453A (en) Troubleshooting method, troubleshooting device and storage medium
CN112181780A (en) Detection and alarm method, device and equipment for containerized platform core component
CN113381884A (en) Full link monitoring method and device for monitoring alarm system
CN113419927B (en) Method, system, equipment and medium for monitoring and managing control server
CN104658053A (en) Automatic inspection auxiliary system for running state of dispatching control system
CN109284218A (en) A kind of method and device thereof of detection service device operation troubles
CN113127296B (en) Method for detecting abnormity of OPEN19 server and OPEN19 server
CN115118575B (en) Monitoring method, monitoring device, electronic 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