CN111200522A - Port detection method, device, equipment and storage medium - Google Patents

Port detection method, device, equipment and storage medium Download PDF

Info

Publication number
CN111200522A
CN111200522A CN201911383546.9A CN201911383546A CN111200522A CN 111200522 A CN111200522 A CN 111200522A CN 201911383546 A CN201911383546 A CN 201911383546A CN 111200522 A CN111200522 A CN 111200522A
Authority
CN
China
Prior art keywords
server
port
detected
identifier
abnormal
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
CN201911383546.9A
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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information Technology 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201911383546.9A priority Critical patent/CN111200522A/en
Publication of CN111200522A publication Critical patent/CN111200522A/en
Pending legal-status Critical Current

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/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8352Generation of protective data, e.g. certificates involving content or source identification data, e.g. Unique Material Identifier [UMID]

Abstract

The embodiment of the application relates to the technical field of port detection, in particular to a port detection method, a port detection device, port detection equipment and a storage medium. The port detection method is applied to an operation and maintenance management server, and comprises the following steps: acquiring an identifier of the server to be detected and an identifier of a port which is used on the server to be detected, wherein the identifier is sent by the server to be detected; matching the identifier of the port being used on the server to be detected with the identifier of a pre-configured normal port; and determining the ports which are not matched with the normal ports in the ports used on the server to be detected as abnormal ports. The port detection method is applied to a server to be detected, and comprises the following steps: collecting the identification of a port which is used locally; and sending the identifier of the port which is used on the server to be detected to an operation and maintenance management server. The method saves manpower and a large amount of time cost, and greatly improves operation and maintenance efficiency.

Description

Port detection method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of port detection, in particular to a port detection method, a port detection device, port detection equipment and a storage medium.
Background
The video networking is an important milestone for network development, is a higher-level form of the Internet, is a real-time network, can realize the real-time transmission of full-network high-definition videos which cannot be realized by the Internet, and pushes a plurality of Internet applications to high-definition video, and high definition faces each other. Finally, world no-distance is realized, and the distance between people in the world is only the distance of one screen.
With the increasing number of application servers in the video network, each server needs to know the service condition of the port, the previous application servers do not have corresponding functions, and if operation and maintenance personnel want to know whether each server has abnormal port information, the operation and maintenance personnel need to check the abnormal port information one by one, which is very inconvenient, wastes a large amount of manpower and time cost, and has low efficiency.
Disclosure of Invention
In order to solve the above problems, the present application provides a port detection method, device, apparatus, and storage medium.
A first aspect of the embodiments of the present application provides a port detection method, which is applied to an operation and maintenance management server, and the method includes:
acquiring an identifier of the server to be detected and an identifier of a port which is used on the server to be detected, wherein the identifier is sent by the server to be detected;
matching the identifier of the port being used on the server to be detected with the identifier of a pre-configured normal port;
and determining the ports which are not matched with the normal ports in the ports used on the server to be detected as abnormal ports.
Optionally, before matching the identifier of the port being used on the server to be detected with the identifier of the pre-configured normal port, the method further includes:
and the operation and maintenance management server reads the identifier of the normal port which is configured in advance through the web terminal from the database and stores the identifier to the local.
Optionally, the operation and maintenance management server is connected with the server to be detected through a video network; receiving an identifier of a port being used on a server to be detected, which is sent by the server to be detected, the method includes:
receiving a video networking message sent by the server to be detected through a video networking protocol, wherein the video networking message is formed by assembling the identifier of the port which is used on the server to be detected in a JSON string format;
and analyzing the video networking message to obtain the identifier of the port which is used on the server to be detected.
Optionally, after determining, as an abnormal port, a port that is not matched to a normal port among the ports in use on the server to be detected, the method further includes:
and sending the identifier of the abnormal port to an alarm center so that the alarm center displays the identifier of the abnormal port.
Optionally, the servers to be detected at least comprise a first server to be detected and a second server to be detected; the method further comprises the following steps:
respectively receiving the identification of the first server to be detected and the identification of the second server to be detected;
sending the identifier of the abnormal port to an alarm center, wherein the sending comprises the following steps:
sending the identifier of the first server to be detected and the identifier of the abnormal port of the first server to be detected to the alarm center;
and sending the identifier of the second server to be detected and the identifier of the abnormal port of the second server to be detected to the alarm center.
Optionally, the operation and maintenance management server is connected with the alarm center through the internet; sending the identifier of the abnormal port to an alarm center, wherein the sending comprises the following steps:
assembling the identification of the abnormal port into an internet message in a JSON string format;
and sending the internet message to the alarm center by a TCP protocol.
A second aspect of the embodiments of the present application provides a port detection method, which is applied to a server to be detected, and the method includes:
collecting the identification of a port which is used locally;
and sending the identifier of the port being used on the server to be detected to an operation and maintenance management server so as to detect whether an abnormal port exists in the port being used on the server to be detected through the operation and maintenance management server.
Optionally, a probe program is installed on the server to be detected;
and operating the probe program, and acquiring the identification of the port which is used locally through the probe program.
Optionally, the operation and maintenance management server is connected with the server to be detected through a video network; sending the identifier of the port being used on the server to be detected to an operation and maintenance management server, including:
assembling the identifiers of the ports used on the server to be detected into a video networking message in a JSON string format;
and sending the video networking message to the operation and maintenance management server through a video networking protocol.
A third aspect of the embodiments of the present application provides a port detection system, where the system includes:
an operation and maintenance management server, configured to execute the port detection method according to the first aspect;
at least one server to be detected, each server to be detected being configured to perform the port detection method according to the second aspect;
the alarm center is used for receiving and displaying the identification of the server with the abnormal port and the identifications of all the abnormal ports on the server;
the database is used for storing the pre-configured identification of the normal port;
and the Web end is used for configuring the identification of the normal port by a user and importing the identification of the normal port into the database.
A fourth aspect of the embodiments of the present application provides a port detection apparatus, which is applied to an operation and maintenance management server, and the apparatus includes:
the acquisition module is configured to acquire the identifier of the server to be detected and the identifier of the port which is used on the server to be detected, wherein the identifier is sent by the server to be detected;
the checking module is configured to match the identifier of the port which is used on the server to be detected with the identifier of a pre-configured normal port;
the detection module is configured to determine that a port which is not matched with a normal port in the ports in use on the server to be detected is an abnormal port.
A fifth aspect of the embodiments of the present application provides a port detection apparatus, which is applied to a server to be detected, where the apparatus includes:
an acquisition module configured to acquire an identification of a port being used locally;
the sending module is configured to send the identifier of the port being used on the server to be detected to an operation and maintenance management server, so as to detect whether an abnormal port exists in the port being used on the server to be detected through the operation and maintenance management server.
A sixth aspect of embodiments of the present application provides a readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps in the method according to the first or second aspect of the present application.
A seventh aspect of embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method according to the first aspect or the second aspect of the present application.
The port detection method provided by the embodiment of the application has the following beneficial effects:
the method comprises the steps that each server to be detected collects information of all ports in use and reports the information to an operation and maintenance management server, then the operation and maintenance management server performs matching verification on the received port information and pre-configured normal port information, whether the port to be detected is an abnormal port or not is judged, the port information which cannot be matched with the pre-configured normal port information is determined to be the abnormal port and is displayed for an alarm center, information is collected through the server to be detected and is sent to the operation and maintenance server for matching verification, compared with the traditional method that operation and maintenance personnel check the servers one by one, manpower and a large amount of time cost are saved, and operation and maintenance efficiency is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a port detection system according to an embodiment of the present application;
fig. 2 is a flowchart of a port detection method according to an embodiment of the present application;
fig. 3 is a flowchart of a port detection method according to another embodiment of the present application;
FIG. 4 is a schematic diagram of a JSON string format used in an embodiment of the present application;
FIG. 5 is a flowchart of a port detection method according to another embodiment of the present application
Fig. 6 is a schematic diagram of a port detection apparatus according to an embodiment of the present application;
fig. 7 is a schematic diagram of a port detection apparatus according to another embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating a port detection system according to an exemplary embodiment. The system comprises: the operation and maintenance management system comprises an operation and maintenance management server 100, a server to be detected 200, a database 300, a web terminal 400 and an alarm center 500. The server to be detected 200 includes a server to be detected 1 and a server to be detected 2 … …. The operation and maintenance management server 100 is connected with all the servers 200 to be detected, the operation and maintenance management server 100 is further connected with the database 300 and the alarm center 500, and the database 300 is connected with the web end 400.
The operation and maintenance management server 100 is in communication connection with the server 200 to be detected, wherein the connection mode can be internet connection or video internet connection, and video internet connection is adopted in the application; the operation and maintenance management server 100 and the database 300, the database 300 and the web 400, and the operation and maintenance management server 100 and the alarm center 500 are all connected through communication, and the connection mode is internet connection.
The operation and maintenance management server 100 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center;
the server 200 to be detected can be an application server in the video network; the database 300 is used for storing information of pre-configured normal ports; the web server 400 is a terminal for configuring the information of the normal port into the database 300, and may be a computer, a mobile phone, a tablet, or other devices with a data import module; the alarm center 500 is a device having an early warning or alarm function, such as a display, a sound, or a combination of a display and a sound.
Fig. 2 is a flowchart illustrating a port detection method according to an exemplary embodiment, which is applied to an operation and maintenance management server, for example: the operation and maintenance management server 100 shown in fig. 1. Referring to fig. 2, the method includes the steps of:
in step S11, the identifier of the server to be detected 200 and the identifier of the port being used on the server to be detected 200, which are sent by the server to be detected 200, are obtained.
In this embodiment, the identifier of the server 200 to be detected and the identifier of the port being used on the server 200 to be detected are collected by the server 200 to be detected and sent to the operation and maintenance management server 100, a probe is disposed on the server 200 to be detected, a detection port function on the probe collects the identifier of the server 200 to be detected and the identifier of the port being used on the server 200 to be detected, and then the collected information is sent to the operation and maintenance management server 100 through a reporting interface function on the probe, where the identifier of the server 200 to be detected is used to refer to the information of the server 200 to be detected, such as the number, the type, the version number, the manufacturer information, and the like of the server 200 to be detected, and the identifier of the port is mainly used to refer to the number of the. Typically, one identifier corresponds to a unique piece of information.
In step S12, the identifier of the port being used on the server 200 to be detected is matched with the identifier of the pre-configured normal port.
In this embodiment, the pre-configured identifiers of the normal ports refer to identifiers of ports commonly used on the server 200 to be detected and identifiers of ports added by the operation and maintenance personnel according to actual needs, and the identifiers of the ports are stored in the operation and maintenance management server 100 or in the database 300 that the operation and maintenance management server 100 can call at any time, so that the operation and maintenance management server 100 matches the obtained identifiers of the ports with the preset identifiers of the normal ports.
In step S13, a port that does not match a normal port among the ports in use on the server 200 to be detected is determined as an abnormal port.
In this embodiment, mainly for finding out an abnormal port, the method for finding out an abnormal port is to match an identifier of a port being used on the server 200 to be detected with a preset identifier of a port, where the preset port represents a verified or approved port, that is, a port that can be normally used, and if the identifier of the port being used on the server 200 to be detected and the preset identifier of the port can be matched, it represents that the port being used is a normal port, and if the identifier of the port being used on the server 200 to be detected and the preset identifier of the port cannot be matched, it represents that the port being used is not in the preset port list and is an abnormal port. The matching means: comparing the identifier of the port in use with the identifier of the preset port, and if the identifiers of the port in use and the preset port are consistent, indicating that the matching is successful; if the two identifications are not consistent, the matching is failed. The comparison operation may be implemented by a comparison function, and the identifier may be a port label or other information that can uniquely identify the port.
The following describes the above steps in detail by taking an example in which the operation and maintenance management server 100 is a background management server of a certain company, the server 200 to be detected is each of the associated application servers of the company, and the identifier of the normal port is configured in the operation and maintenance management server 100 in advance to detect the port on the associated application server.
The background management server is provided with programs for receiving the identification of the associated application server and the identification of the port being used on the associated application server, the associated application server has A, B, C … … N stations, the background management server is pre-configured with the identifications of the ports on the associated application server, such as A1, A2, A3, B1, B2, C1, C2 … … N1, N2 and N3, the background management server matches the received port identifications with the pre-configured port identifications in turn, for example, the background management server obtains that the ports being used on the associated application server A are A1 and A3, matches the ports A1 and A3 being used on the associated application server A with the pre-configured identifications of normal ports A1, A2, A3, B1, B2, C1, C2 … … N1, N2 and N3, and matches the ports with the pre-configured identifications of normal ports A1 and 3, both a1 and A3 are normal ports; for another example, the background management server obtains that the ports in use on the visual connection application server B are B2 and B3, matches the ports B2 and B3 in use on the visual connection application server B with the pre-configured identifiers a1, a2, A3, B1, B2, C1, C2 … … N1, N2, and N3 of the normal ports, matches B2 in the pre-configured identifiers of the normal ports, and does not match B3 in the pre-configured identifiers of the normal ports, then B2 is the normal port, and B3 is the abnormal port. According to the method, the identifiers of the ports in use on all the servers 200 to be detected are matched with the identifiers of the pre-configured normal ports, and if the identifiers are not matched, the ports are abnormal ports.
Fig. 3 is a flow chart illustrating a port detection method according to another exemplary embodiment, referring to fig. 3, the method including the steps of:
in step S21, the identifier of the server to be detected 200 and the identifier of the port being used on the server to be detected 200, which are sent by the server to be detected 200, are obtained.
In step S22, the operation and maintenance management server 100 reads the identifier of the normal port pre-configured by the web server 400 from the database 300 and stores the identifier locally.
The pre-configured identifiers of the normal ports are used as reference data for comparing with the identifiers of the ports obtained by the operation and maintenance management server 100, and these reference data need to ensure that the operation and maintenance management server 100 can read at any time, and the identifier data of the normal ports may be directly stored in the operation and maintenance management server 100, or may be stored in a database 300 connected to the operation and maintenance management server 100, in this embodiment, the identifier data of the normal ports is stored in the database 300 connected to the operation and maintenance management server 100, and the corresponding identifiers of the normal ports may be imported into the database 300 by using the web server 400.
In step S23, the identifier of the port being used on the server 200 to be detected is matched with the identifier of the pre-configured normal port.
In step S24, a port that does not match a normal port among the ports in use on the server 200 to be detected is determined as an abnormal port.
In step S25, the identifier of the server 200 to be detected with the abnormal port and the identifier of the abnormal port on the server are sent to the alarm center 500;
when the operation and maintenance management server 100 determines that a certain port in use is an abnormal port, the information of the port needs to be displayed, and the operation and maintenance personnel is prompted to perform corresponding processing on the abnormal port in time, so that the operation and maintenance management server 100 is connected with an alarm center 500 for displaying the information of the abnormal port and prompting the operation and maintenance personnel, and the operation and maintenance management server 100 is connected with the alarm center 500 through the internet, so that the information is conveniently transmitted. The abnormal port is located on the corresponding detected server, and the operation and maintenance personnel can conveniently and quickly process the corresponding abnormal port only by knowing the identifier of the server where the abnormal port is located, so that the identifier of the server 200 to be detected with the abnormal port and the identifier of the abnormal port on the server are sent to the alarm center 500. That is, when an abnormal port is detected, the server identifier where the abnormal port is located and the identifier of the abnormal port are sent to the alarm center 500; if two or more abnormal ports exist on one detected server, the identifier of the server and the identifiers of all the abnormal ports on the server are sent to the alarm center 500, that is, the operation and maintenance management server 100 reports the identifiers of the abnormal ports by taking the server as a unit, so that all the abnormal ports can be conveniently and quickly processed; when the operation and maintenance management server 100 sends the identifier of the detected server and the identifiers of all the abnormal ports on the server to the alarm center 500, the identifiers are assembled into an internet message in a JSON string format, and then the internet message is sent to the alarm center 500 in a TCP protocol, where the JSON string format is shown in fig. 4.
The following also describes the above steps in detail by taking the operation and maintenance management server 100 as a background management server of a certain company, the server 200 to be detected as each of the linkman application servers of the company, and the identifiers of the normal ports are pre-configured in the database 300 connected to the background management server to detect the ports on the linkman application server.
The background management server is provided with programs for receiving the identifier of the visual connection application server and the identifier of the port which is being used on the visual connection application server, the visual connection application server has A, B, C … … N stations, the identifiers of the various ports on the visual connection application server, such as A1, A2, A3, B1, B2, C1, C2 … … N1, N2 and N3, are pre-configured in the database 300 through the web terminal 400, and the web terminal 400 is connected with the database 300 and can be connected in an Internet manner; the background management server is connected with the database 300 in an internet connection mode, so that the background management server can read data in the database 300 conveniently; the operation and maintenance management server 100 reads the preconfigured port identification data from the database 300, and then matches the received port identification with the preconfigured port identification in sequence.
For example, the background management server obtains that the ports in use on the visual connection application server a are a1 and A3, matches the ports a1 and A3 in use on the visual connection application server a with the identifiers a1, a2, A3, B1, B2, C1, C2 … … N1, N2, and N3 of the preconfigured normal ports read from the database 300, respectively, matches a1 and A3 in the identifiers of the preconfigured normal ports, where a1 and A3 are both normal ports, and because there is no abnormal port, the ports are not reported to the alarm center 500, and matches the next obtained port information.
For another example, the background management server obtains that the ports in use on the visual connection application server B are B2 and B3, matches the ports B2 and B3 in use on the visual connection application server B with the pre-configured identifiers a1, a2, A3, B1, B2, C1, C2 … … N1, N2, and N3 of the normal ports read from the database 300, matches B2 in the pre-configured identifiers of the normal ports, and does not match B3 in the pre-configured identifiers of the normal ports, determines that B2 is the normal port, determines that B3 is the abnormal port, and then determines the server where the B3 port is located: the identifier of the visual connection application server B and the identifier of the abnormal port B3 are assembled into an internet message in a JSON string format, then the internet message is sent to the alarm center 500 by a TCP protocol, and the alarm center 500 displays the identifier of the visual connection application server B and the identifier of the abnormal port B3.
For another example, the background management server obtains that the ports currently used on the visual connection application server C are C2, C3, and C4, matches the ports C2, C3, and C4 currently used on the visual connection application server C with the identifiers a1, a2, A3, B1, B2, C1, C2 … … N1, N2, and N3 of the pre-configured normal ports read from the database 300, matches C2 in the identifiers of the pre-configured normal ports, and does not match C3 and C4 in the identifiers of the pre-configured normal ports, determines that C2 is a normal port, determines that C3 and C4 are abnormal ports, and then determines the servers where the ports C3 and C4 are located: the identifier of the visual connection application server C and the identifiers of the abnormal ports C3 and C4 are assembled into an internet message in a JSON string format, and then the internet message is sent to the alarm center 500 by a TCP protocol, and the information displayed by the alarm center 500 is: looking at the identity of the application server C and the identity of the exception ports C3 and C4.
In another embodiment of the present application, on the basis of the previous embodiment, the operation and maintenance management server 100 receives, through a video networking protocol, a video networking message sent by the server 200 to be detected, where the video networking message is assembled by assembling, in a JSON string format, an identifier of a port being used on the server 200 to be detected; the operation and maintenance management server 100 analyzes the video network message to obtain the identifier of the port being used on the server 200 to be detected.
The video network is a higher-level form of the internet and is a real-time network, which can realize real-time transmission of full-network high-definition videos which cannot be realized by the internet, the operation and maintenance management server 100 is connected with the server 200 to be detected through the video network, so that higher-definition content transmission can be realized, the video network messages are assembled in a JSON string format and transmitted in a V2V video network 8F95 protocol, the format is shown in figure 4, the identifier of the port and the identifier data of the server to be detected are stored in the 18 th to 529 th fields of the JSON string, namely, the data are stored in the data field part in figure 4, the operation and maintenance management server 100 receives the message in the JSON string format and then analyzes the message, so as to obtain the identifier of the port which is being used on the.
Referring to fig. 5, the method shown in fig. 5 is applied to the server 200 to be detected, and includes the following steps:
in step S31, an identification of a port being used locally is collected;
in step S32, the identifier of the port being used on the server 200 to be detected is sent to the operation and maintenance management server 100.
The server 200 to be detected acquires the identifier of the port being used locally through a probe program, the probe program includes a detection port function and a reporting port function, the detection port function is used for acquiring the identifier of the port being used locally, the reporting port function is used for sending the acquired function of the port to the operation and maintenance management server 100, and specifically, the probe program assembles the identifier of the port being used on the server 200 to be detected into a video networking message in a JSON string format; then, the reporting port function in the probe program sends the video networking message to the operation and maintenance management server 100 through a video networking protocol.
Based on the same inventive concept, an embodiment of the present application provides a port detection apparatus, which is applied to the operation and maintenance management server 100. Referring to fig. 6, fig. 6 is a schematic diagram of a port detection apparatus according to an embodiment of the present application. As shown in fig. 6, the apparatus includes:
an obtaining module 61 configured to obtain an identifier of the server to be detected 200 sent by the server to be detected 200 and an identifier of a port being used on the server to be detected 200;
a checking module 64 configured to match an identifier of a port being used on the server 200 to be detected with an identifier of a pre-configured normal port;
a detection module 65 configured to determine, as an abnormal port, a port that is not matched to a normal port among the ports in use on the server 200 to be detected.
Optionally, the apparatus further comprises:
the reading module 63 is configured to, before matching the identifier of the port being used on the server 200 to be detected with the identifier of the pre-configured normal port, the operation and maintenance management server 100 reads the identifier of the normal port pre-configured through the web server 400 from the database 300 and stores the identifier of the normal port in the local.
Optionally, the operation and maintenance management server 100 is connected to the server to be detected 200 through a video network; the obtaining module 61 receives, through a video networking protocol, a video networking message sent by the server 200 to be detected, where the video networking message is formed by assembling, in a JSON string format, an identifier of a port being used on the server 200 to be detected; the device further comprises:
the parsing module 62 is configured to parse the video network packet to obtain an identifier of a port being used on the server 200 to be detected.
Optionally, the apparatus further comprises:
and the alarm module 66 is configured to, after determining that a port that is not matched with a normal port among the ports in use on the server 200 to be detected is an abnormal port, send an identifier of the abnormal port to the alarm center 500, so that the alarm center 500 displays the identifier of the abnormal port.
Optionally, the servers to be detected 200 at least include a first server to be detected 200 and a second server to be detected 200;
the obtaining module 61 receives the identifier of the first server to be detected 200 and the identifier of the second server to be detected 200 respectively;
the alarm module 66 sends the identifier of the abnormal port to the alarm center 500, which includes:
the alarm module 66 sends the identifier of the first server to be detected 200 and the identifier of the abnormal port of the first server to be detected 200 to the alarm center 500;
the alarm module 66 sends the identifier of the second server to be detected 200 and the identifier of the abnormal port of the second server to be detected 200 to the alarm center 500.
Optionally, the operation and maintenance management server 100 is connected to the alarm center 500 through the internet; the alarm module 66 sends the identifier of the abnormal port to the alarm center 500, which includes:
assembling the identification of the abnormal port into an internet message in a JSON string format;
and sending the internet message to the alarm center 500 by using a TCP protocol.
Based on the same inventive concept, an embodiment of the present application provides another port detection apparatus, which is applied to the server 200 to be detected. Referring to fig. 7, fig. 7 is a schematic view of a port detection apparatus according to another embodiment of the present application. As shown in fig. 7, the apparatus includes:
an acquisition module 71 configured to acquire an identification of a port being used locally;
a sending module 72 configured to send the identifier of the port being used on the server to be detected 200 to the operation and maintenance management server 100, so as to detect whether an abnormal port exists in the ports being used on the server to be detected 200 through the operation and maintenance management server 100;
optionally, a probe program is installed on the server 200 to be detected;
the acquisition module 71 runs the probe program and acquires the identifier of the port which is being used locally through the probe program;
optionally, the operation and maintenance management server 100 is connected to the server to be detected 200 through a video network; the sending module 72 sends the identifier of the port being used on the server 200 to be detected to the operation and maintenance management server 100, including:
assembling the identifier of the port being used on the server 200 to be detected into a video networking message in a JSON string format;
and sending the video networking message to the operation and maintenance management server 100 through a video networking protocol.
Based on the same inventive concept, another embodiment of the present application provides a readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the steps in the port detection method according to any of the above embodiments of the present application.
Based on the same inventive concept, another embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the electronic device implements the steps in the port detection method according to any of the above embodiments of the present application.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The port detection method, device, system, device and storage medium provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (14)

1. A port detection method is applied to an operation and maintenance management server, and comprises the following steps:
acquiring an identifier of the server to be detected and an identifier of a port which is used on the server to be detected, wherein the identifier is sent by the server to be detected;
matching the identifier of the port being used on the server to be detected with the identifier of a pre-configured normal port; and determining the ports which are not matched with the normal ports in the ports used on the server to be detected as abnormal ports.
2. The method according to claim 1, wherein before matching the identifier of the port being used on the server to be detected with the identifier of the pre-configured normal port, the method further comprises: and the operation and maintenance management server reads the identifier of the normal port which is configured in advance through the web terminal from the database and stores the identifier to the local.
3. The method according to claim 1, wherein the operation and maintenance management server is connected with the server to be detected through a video network; receiving an identifier of a port being used on a server to be detected, which is sent by the server to be detected, the method includes:
receiving a video networking message sent by the server to be detected through a video networking protocol, wherein the video networking message is formed by assembling the identifier of the port which is used on the server to be detected in a JSON string format;
and analyzing the video networking message to obtain the identifier of the port which is used on the server to be detected.
4. The method according to any one of claims 1 to 3, wherein after determining, as an abnormal port, a port that does not match a normal port among the ports in use on the server to be detected, the method further comprises:
and sending the identifier of the abnormal port to an alarm center so that the alarm center displays the identifier of the abnormal port.
5. The method of claim 4, wherein: the servers to be detected at least comprise a first server to be detected and a second server to be detected;
the method further comprises the following steps:
respectively receiving the identification of the first server to be detected and the identification of the second server to be detected;
sending the identifier of the abnormal port to an alarm center, wherein the sending comprises the following steps:
sending the identifier of the first server to be detected and the identifier of the abnormal port of the first server to be detected to the alarm center;
and sending the identifier of the second server to be detected and the identifier of the abnormal port of the second server to be detected to the alarm center.
6. The method of claim 4, wherein the operation and maintenance management server is connected with the alarm center through the internet; sending the identifier of the abnormal port to an alarm center, wherein the sending comprises the following steps:
assembling the identification of the abnormal port into an internet message in a JSON string format;
and sending the internet message to the alarm center by a TCP protocol.
7. A port detection method is applied to a server to be detected, and the method comprises the following steps:
collecting the identification of a port which is used locally;
and sending the identifier of the port being used on the server to be detected to an operation and maintenance management server so as to detect whether an abnormal port exists in the port being used on the server to be detected through the operation and maintenance management server.
8. The method according to claim 7, characterized in that the server to be detected is provided with a probe program;
and operating the probe program, and acquiring the identification of the port which is used locally through the probe program.
9. The method according to claim 7, wherein the operation and maintenance management server is connected with the server to be detected through a video network; sending the identifier of the port being used on the server to be detected to an operation and maintenance management server, including:
assembling the identifiers of the ports used on the server to be detected into a video networking message in a JSON string format;
and sending the video networking message to the operation and maintenance management server through a video networking protocol.
10. A port detection system, the system comprising:
an operation and maintenance management server, configured to execute the port detection method according to any one of claims 1 to 6;
at least one server to be tested, each server to be tested being configured to perform the port testing method according to any one of claims 7 to 9;
the alarm center is used for receiving and displaying the identification of the server with the abnormal port and the identifications of all the abnormal ports on the server;
the database is used for storing the pre-configured identification of the normal port;
and the Web end is used for configuring the identification of the normal port by a user and importing the identification of the normal port into the database.
11. A port detection device applied to an operation and maintenance management server, the device comprising:
the acquisition module is configured to acquire the identifier of the server to be detected and the identifier of the port which is used on the server to be detected, wherein the identifier is sent by the server to be detected;
the checking module is configured to match the identifier of the port which is used on the server to be detected with the identifier of a pre-configured normal port;
the detection module is configured to determine that a port which is not matched with a normal port in the ports in use on the server to be detected is an abnormal port.
12. A port detection device is applied to a server to be detected, and comprises:
an acquisition module configured to acquire an identification of a port being used locally;
the sending module is configured to send the identifier of the port being used on the server to be detected to an operation and maintenance management server, so as to detect whether an abnormal port exists in the port being used on the server to be detected through the operation and maintenance management server.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 9.
14. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1 to 9 are implemented when the computer program is executed by the processor.
CN201911383546.9A 2019-12-27 2019-12-27 Port detection method, device, equipment and storage medium Pending CN111200522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911383546.9A CN111200522A (en) 2019-12-27 2019-12-27 Port detection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911383546.9A CN111200522A (en) 2019-12-27 2019-12-27 Port detection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111200522A true CN111200522A (en) 2020-05-26

Family

ID=70746424

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911383546.9A Pending CN111200522A (en) 2019-12-27 2019-12-27 Port detection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111200522A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114510A (en) * 2021-04-22 2021-07-13 中国科学技术大学 Network fault information synchronization method and device
CN113377627A (en) * 2021-06-10 2021-09-10 广州朗国电子科技有限公司 Method, system, equipment and storage medium for detecting abnormity of service server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105024989A (en) * 2014-11-26 2015-11-04 哈尔滨安天科技股份有限公司 Malicious URL heuristic detection method and system based on abnormal port
CN109495521A (en) * 2019-01-18 2019-03-19 新华三信息安全技术有限公司 A kind of anomalous traffic detection method and device
CN109714230A (en) * 2018-12-29 2019-05-03 北京世纪互联宽带数据中心有限公司 A kind of flux monitoring method, device and calculate equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105024989A (en) * 2014-11-26 2015-11-04 哈尔滨安天科技股份有限公司 Malicious URL heuristic detection method and system based on abnormal port
CN109714230A (en) * 2018-12-29 2019-05-03 北京世纪互联宽带数据中心有限公司 A kind of flux monitoring method, device and calculate equipment
CN109495521A (en) * 2019-01-18 2019-03-19 新华三信息安全技术有限公司 A kind of anomalous traffic detection method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭亦鹏: "高校教学管理信息化建设", pages: 136 - 138 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114510A (en) * 2021-04-22 2021-07-13 中国科学技术大学 Network fault information synchronization method and device
CN113377627A (en) * 2021-06-10 2021-09-10 广州朗国电子科技有限公司 Method, system, equipment and storage medium for detecting abnormity of service server

Similar Documents

Publication Publication Date Title
CN110046073B (en) Log collection method and device, equipment and storage medium
CN108173813B (en) Vulnerability detection method and device
CN106874135B (en) Method, device and equipment for detecting machine room fault
CN112231271A (en) Data migration integrity verification method, device and equipment and computer readable medium
CN106330483B (en) Information acquisition method, client device and server device
CN111130938B (en) Index acquisition method and device, electronic equipment and computer readable storage medium
CN112087462A (en) Vulnerability detection method and device of industrial control system
CN111200522A (en) Port detection method, device, equipment and storage medium
US20170280410A1 (en) Method, device and system for implementing information self-registration, and computer storage medium
CN108306787B (en) Application monitoring method and related equipment
CN111130944A (en) System monitoring method and system
CN106294345A (en) The treating method and apparatus of the log content of application program
CN107241347B (en) Advertisement traffic quality analysis method and device
CN108307414B (en) Wi-Fi connection abnormity processing method and device of application program, terminal and storage medium
CN115705190A (en) Method and device for determining dependence degree
CN110896569B (en) Bullet screen automatic reconnection method, storage medium, electronic equipment and system
CN114666390B (en) Page monitoring method and device of application program, electronic equipment and storage medium
CN107800560B (en) Network detection method and device, and network detection query method and device
CN113672460B (en) Service monitoring method and device
CN112312376B (en) Method and system for remotely and interactively managing multifunctional electric meter
CN113014587B (en) API detection method and device, electronic equipment and storage medium
CN111010690B (en) Internet of things MME network element signaling tracking method and device
CN111176948A (en) Method and system for monitoring personalized service index
CN111970681B (en) Equipment identification method and device
CN106547679B (en) Script management method and script management platform

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