CN111479138B - Server detection method and device - Google Patents

Server detection method and device Download PDF

Info

Publication number
CN111479138B
CN111479138B CN202010148953.8A CN202010148953A CN111479138B CN 111479138 B CN111479138 B CN 111479138B CN 202010148953 A CN202010148953 A CN 202010148953A CN 111479138 B CN111479138 B CN 111479138B
Authority
CN
China
Prior art keywords
target
target application
identification information
service server
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010148953.8A
Other languages
Chinese (zh)
Other versions
CN111479138A (en
Inventor
郭跃东
陈鑫
亓娜
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN202010148953.8A priority Critical patent/CN111479138B/en
Publication of CN111479138A publication Critical patent/CN111479138A/en
Application granted granted Critical
Publication of CN111479138B publication Critical patent/CN111479138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04N21/2405Monitoring of the internal components or processes of the server, e.g. server load
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • 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/232Content retrieval operation locally within server, e.g. reading video streams from disk arrays

Abstract

The embodiment of the invention provides a method and a device for detecting a server, which are applied to a service server, wherein the method comprises the following steps: acquiring a target process identifier corresponding to a process running in a service server, judging whether the target process identifier is found in a preset process configuration list or not, wherein the process configuration list comprises the corresponding relation between one or more process identifiers and application identifier information, if the target process identifier is found in the process configuration list, acquiring target application identifier information corresponding to the target process identifier, and storing the target application identifier information in a preset database aiming at the service server. By the embodiment of the invention, the detection of the application program of the service server is realized, the process information of the application platform deployed on the server can be automatically displayed in real time, errors caused by manual memory or manual recording and the like are avoided, and the convenience degree of operation and maintenance personnel is improved.

Description

Server detection method and device
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a method and an apparatus for detecting a server.
Background
The video networking is an important milestone of 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 existing Internet, and pushes a plurality of Internet applications to high-definition video and high-definition face-to-face.
In the prior art, a video network includes a plurality of service servers, and after a user installs a target application in a service server, the user usually does not record the installed target application, and the user cannot remember which application platform is on which server and whether the deployed server of the application platform is changed.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method and apparatus for server detection that overcomes or at least partially solves the above problems, comprising:
a method for detecting a server is applied to a business server and comprises the following steps:
acquiring a target process identification corresponding to a process running in the service server;
judging whether the target process identification is found in a preset process configuration list or not; the process configuration list comprises one or more corresponding relations between process identifications and application identification information;
if the target process identification is found in the process configuration list, acquiring target application identification information corresponding to the target process identification;
and aiming at the service server, storing the target application identification information in a preset database.
Optionally, the method further comprises:
determining target application state information corresponding to the target application identification information;
and aiming at the service server, storing the target application state information in the preset database.
Optionally, the step of determining the target application state information corresponding to the target application identification information includes:
receiving a target control instruction;
judging whether the target control instruction is found in the process configuration list or not; the process configuration list comprises the corresponding relation between one or more pieces of application identification information and a control instruction;
if the target control instruction is found in the process configuration list, acquiring target application identification information corresponding to the target control instruction;
and determining target application state information corresponding to the target application identification information according to the target control instruction.
Optionally, the step of determining, according to the target control instruction, target application state information corresponding to the target application identification information includes:
when the target control instruction is a stop instruction, determining that the target application state information corresponding to the target application identification information is a stop state;
when the target control instruction is a starting instruction, determining that the target application state information corresponding to the target application identification information is a starting state
Optionally, the service server is a server located in a video network.
A method for detecting a server, which is applied to a Web server, comprises the following steps:
receiving an application query request aiming at a service server;
acquiring target application identification information corresponding to the service server from a preset database; the target application identification information is a target process identification corresponding to a process which is acquired by the service server and runs in the service server, whether the target process identification is found in a preset process configuration list is judged, if the target process identification is found in the process configuration list, target application identification information corresponding to the target process identification is obtained, and the target application identification information is sent to a preset database, wherein the process configuration list comprises one or more corresponding relations between the process identification and the application identification information;
and returning the target application identification information aiming at the application query request.
Optionally, the method further comprises:
acquiring target application state information corresponding to the service server from a preset database; the target application state information determines target application state information corresponding to the target application identification information for the service server, and stores the target application state information in the preset database aiming at the service server;
and returning the target application state information aiming at the application query request.
Optionally, the service server is a server located in a video network.
An apparatus for server detection, including a traffic server, the apparatus comprising:
the acquisition module is used for acquiring a target process identifier corresponding to a process running in the service server;
the judging module is used for judging whether the target process identification is found in a preset process configuration list or not; the process configuration list comprises one or more corresponding relations between process identifications and application identification information;
an obtaining module, configured to obtain target application identification information corresponding to the target process identifier if the target process identifier is found in the process configuration list;
and the storage module is used for storing the target application identification information in a preset database aiming at the service server.
An apparatus for server detection, including a Web server, the apparatus comprising:
the query request receiving module is used for receiving an application query request aiming at the service server;
the application identification information acquisition module is used for acquiring target application identification information corresponding to the service server from a preset database; the target application identification information is a target process identification corresponding to a process which is acquired by the service server and runs in the service server, whether the target process identification is found in a preset process configuration list is judged, if the target process identification is found in the process configuration list, target application identification information corresponding to the target process identification is obtained, and the target application identification information is sent to a preset database, wherein the process configuration list comprises one or more corresponding relations between the process identification and the application identification information;
and the application identification information returning module is used for returning the target application identification information aiming at the application query request.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the target process identification corresponding to the process running in the service server is collected, whether the target process identification is found in the preset process configuration list is judged, if the target process identification is found in the process configuration list, the target application identification information corresponding to the target process identification is obtained, and the target application identification information is stored in the preset database aiming at the service server, so that the detection of the application program in the service server is realized, errors caused by manual memory or manual recording and the like are avoided, and the convenience degree of operation and maintenance personnel is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a networking of a video network according to an embodiment of the present invention;
fig. 2 is a schematic hardware structure diagram of a node server according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of an access switch according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure diagram of an ethernet protocol conversion gateway according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating steps of a method for server detection according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a server detection process according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating an example of application detection according to an embodiment of the present invention;
FIG. 8 is a flow chart illustrating steps in an alternative method for server detection provided by an embodiment of the present invention;
FIG. 9 is a flow chart illustrating steps in an alternative method for server detection provided by an embodiment of the present invention;
fig. 10 is a block diagram illustrating an apparatus for server detection according to an embodiment of the present invention;
fig. 11 is a block diagram illustrating another apparatus for server detection according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, the present invention is described in detail with reference to the accompanying drawings and the detailed description thereof. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The video networking is an important milestone of network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of Internet applications to high-definition video, and high definition is face-to-face.
The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like on a system platform on a network platform, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, VOD on demand, television mail, personal Video Recorder (PVR), intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, and realizes high-definition quality video broadcast through a television or a computer.
To better understand the embodiments of the present invention, the following description refers to the internet of view:
some of the techniques applied by the video network are as follows:
network Technology (Network Technology)
Network technology innovation in video networking has improved over traditional Ethernet (Ethernet) to face the potentially enormous video traffic on the network. Unlike pure network Packet Switching (Packet Switching) or network Circuit Switching (Circuit Switching), the Packet Switching is adopted by the technology of the video networking to meet the Streaming requirement. The video networking technology has the advantages of flexibility, simplicity and low price of packet switching, and simultaneously has the quality and safety guarantee of circuit switching, thereby realizing the seamless connection of the whole network switching type virtual circuit and the data format.
Switching Technology (Switching Technology)
The video network adopts two advantages of asynchronism and packet exchange of the Ethernet, eliminates the Ethernet defect on the premise of full compatibility, and has end-to-end seamless connection of the whole network, direct connection with a user terminal and direct bearing of an IP data packet. The user data does not require any format conversion across the entire network. The video network is a higher-level form of the Ethernet, is a real-time exchange platform, can realize the large-scale high-definition video real-time transmission of the whole network which can not be realized by the current Internet, and pushes a plurality of network video applications to high-definition and unification.
Server Technology (Server Technology)
The server technology on the video networking and unified video platform is different from the traditional server, the streaming media transmission of the video networking and unified video platform is established on the basis of connection orientation, the data processing capacity of the video networking and unified video platform is independent of flow and communication time, and a single network layer can contain signaling and data transmission. For voice and video services, the complexity of video networking and unified video platform streaming media processing is much simpler than that of data processing, and the efficiency is greatly improved by over one hundred times compared with that of the traditional server.
Storage Technology (Storage Technology)
The super-high speed storage technology of the unified video platform adopts the most advanced real-time operating system in order to adapt to the media content with super-large capacity and super-large flow, the program information in the server instruction is mapped to the specific hard disk space, the media content is not passed through the server any more, and is directly sent to the user terminal instantly, and the general waiting time of the user is less than 0.2 second. The optimized sector distribution greatly reduces the mechanical motion of the magnetic head track seeking of the hard disk, the resource consumption only accounts for 20% of that of the IP internet of the same grade, but concurrent flow which is 3 times larger than that of the traditional hard disk array is generated, and the comprehensive efficiency is improved by more than 10 times.
Network Security Technology (Network Security Technology)
The structural design of the video network completely eliminates the network security problem troubling the internet structurally by the modes of independent service permission control each time, complete isolation of equipment and user data and the like, generally does not need antivirus programs and firewalls, avoids the attack of hackers and viruses, and provides a structural carefree security network for users.
Service Innovation Technology (Service Innovation Technology)
The unified video platform integrates services and transmission, and is not only automatically connected once whether a single user, a private network user or a network aggregate. The user terminal, the set-top box or the PC are directly connected to the unified video platform to obtain various multimedia video services in various forms. The unified video platform adopts a menu type configuration table mode to replace the traditional complex application programming, can realize complex application by using very few codes, and realizes infinite new service innovation.
Networking of the video network is as follows:
an internet of view is a centrally controlled network structure, which may be of the tree, star, ring, etc. type, but on this basis a centralized control node is required in the network to control the entire network.
As shown in fig. 1, the video network is divided into an access network and a metropolitan network.
The devices of the access network part can be mainly classified into 3 types: node server, access switch, terminal (including various set-top boxes, coding boards, memories, etc.). The node server is connected to an access switch, which may be connected to a plurality of terminals and may be connected to an ethernet network.
The node server is a node which plays a centralized control function in the access network and can control the access switch and the terminal. The node server can be directly connected with the access switch or directly connected with the terminal.
Similarly, devices of the metropolitan network portion may also be classified into 3 types: a metropolitan area server, a node switch and a node server. The metro server is connected to a node switch, which may be connected to a plurality of node servers.
The node server is a node server of the access network part, namely the node server belongs to both the access network part and the metropolitan area network part.
The metropolitan area server is a node which plays a centralized control function in the metropolitan area network and can control a node switch and a node server. The metropolitan area server can be directly connected with the node switch or directly connected with the node server.
Therefore, the whole video network is a network structure controlled by a hierarchical centralized way, and the network controlled by the node server and the metropolitan area server can be in various structures such as a tree, a star, a ring and the like.
The access network part can form a unified video platform (the part in a dotted circle), and a plurality of unified video platforms can form a video network; each unified video platform may be interconnected via metropolitan area and wide area video networking.
1. Visio networking device classification
1.1 devices in the video network of the embodiment of the present invention can be mainly classified into 3 types: server, exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, code board, memory, etc.). The video network as a whole can be divided into a metropolitan area network (or national network, global network, etc.) and an access network.
1.2 wherein the devices of the access network part can be mainly classified into 3 types: node server, access exchanger (including Ethernet protocol conversion gateway), terminal (including various set-top boxes, coding board, memory, etc.).
The specific hardware structure of each access network device is as follows:
a node server:
as shown in fig. 2, the system mainly includes a network interface module 201, a switching engine module 202, a CPU module 203, and a disk array module 204;
the packets coming from the network interface module 201, the cpu module 203 and the disk array module 204 all enter the switching engine module 202; the switching engine module 202 performs an operation of looking up the address table 205 on the incoming packet, thereby obtaining the direction information of the packet; and stores the packet in a queue of the corresponding packet buffer 206 according to the packet's steering information; if the queue of the packet buffer 206 is nearly full, it is discarded; the switching engine module 202 polls all packet buffer queues and forwards if the following conditions are met: 1) The port send buffer is not full; 2) The queued packet counter is greater than zero. The disk array module 204 mainly implements control over the hard disk, including initialization, read-write, and other operations on the hard disk; the CPU module 203 is mainly responsible for protocol processing with an access switch and a terminal (not shown in the figure), configuring an address table 205 (including a downlink protocol packet address table, an uplink protocol packet address table, and a data packet address table), and configuring the disk array module 204.
The access switch:
as shown in fig. 3, the network interface module mainly includes a network interface module (a downlink network interface module 301 and an uplink network interface module 302), a switching engine module 303 and a CPU module 304;
wherein, the packet (uplink data) coming from the downlink network interface module 301 enters the packet detection module 305; the packet detection module 305 detects whether the Destination Address (DA), the Source Address (SA), the packet type, and the packet length of the packet meet the requirements, if so, allocates a corresponding stream identifier (stream-id) and enters the switch engine module 303, otherwise, discards the stream identifier; the packet (downstream data) coming from the upstream network interface module 302 enters the switching engine module 303; the incoming data packet of the CPU module 304 enters the switching engine module 303; the switching engine module 303 performs an operation of looking up the address table 306 on the incoming packet, thereby obtaining the direction information of the packet; if the packet entering the switching engine module 303 is from the downstream network interface to the upstream network interface, the packet is stored in the queue of the corresponding packet buffer 307 in association with the stream-id; if the queue of the packet buffer 307 is nearly full, it is discarded; if the packet entering the switching engine module 303 is not from the downlink network interface to the uplink network interface, the data packet is stored in the queue of the corresponding packet buffer 307 according to the guiding information of the packet; if the queue of the packet buffer 307 is nearly full, it is discarded.
The switching engine module 303 polls all packet buffer queues, which in this embodiment of the present invention is divided into two cases:
if the queue is from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queued packet counter is greater than zero; 3) Obtaining a token generated by a code rate control module;
if the queue is not from the downlink network interface to the uplink network interface, the following conditions are met for forwarding: 1) The port send buffer is not full; 2) The queue packet counter is greater than zero.
The rate control module 308 is configured by the CPU module 304, and generates tokens for packet buffer queues from all downstream network interfaces to upstream network interfaces at programmable intervals to control the rate of upstream forwarding.
The CPU module 304 is mainly responsible for protocol processing with the node server, configuration of the address table 306, and configuration of the code rate control module 308.
Ethernet protocol gateway:
as shown in fig. 4, the apparatus mainly includes a network interface module (a downlink network interface module 401 and an uplink network interface module 402), a switching engine module 403, a CPU module 404, a packet detection module 405, a rate control module 408, an address table 406, a packet buffer 407, a MAC adding module 409, and a MAC deleting module 410.
Wherein, the data packet coming from the downlink network interface module 401 enters the packet detection module 405; the packet detection module 405 detects whether the ethernet MAC DA, the ethernet MAC SA, the ethernet length or frame type, the video network destination address DA, the video network source address SA, the video network packet type, and the packet length of the packet meet the requirements, and if so, allocates a corresponding stream identifier (stream-id); then, the MAC DA, MAC SA, length or frame type (2 byte) is subtracted by the MAC deletion module 410 and enters the corresponding receiving buffer, otherwise it is discarded;
the downlink network interface module 401 detects the sending buffer of the port, if there is a packet, the ethernet MAC DA of the corresponding terminal is known according to the destination address DA of the packet in the video network, the ethernet MAC DA of the terminal, the MAC SA of the ethernet protocol gateway, and the ethernet length or frame type are added, and the packet is sent.
The other modules in the ethernet protocol gateway function similarly to the access switch.
A terminal:
the system mainly comprises a network interface module, a service processing module and a CPU module; for example, the set-top box mainly comprises a network interface module, a video and audio coding and decoding engine module and a CPU module; the coding board mainly comprises a network interface module, a video and audio coding engine module and a CPU module; the memory mainly comprises a network interface module, a CPU module and a disk array module.
1.3 devices of the metropolitan area network part can be mainly classified into 2 types: node server, node exchanger, metropolitan area server. The node switch mainly comprises a network interface module, a switching engine module and a CPU module; the metropolitan area server mainly comprises a network interface module, a switching engine module and a CPU module.
2. Vission networking data packet definition
2.1 Access network packet definition
The data packet of the access network mainly comprises the following parts: destination Address (DA), source Address (SA), reserved bytes, payload (PDU), CRC.
As shown in the following table, the data packet of the access network mainly includes the following parts:
DA SA Reserved Payload CRC
wherein:
the Destination Address (DA) is composed of 8 bytes (byte), the first byte represents the type of the data packet (such as various protocol packets, multicast data packets, unicast data packets, etc.), there are 256 possibilities at most, the second byte to the sixth byte are metropolitan area network addresses, and the seventh byte and the eighth byte are access network addresses;
the Source Address (SA) is also composed of 8 bytes (byte), defined as the same as the Destination Address (DA);
reserved bytes consist of 2 bytes;
the payload part has different lengths according to the types of different datagrams, 64 bytes if various protocol packets, 32+1024=1056 bytes if single-multicast data packets, and certainly not limited to the above 2 types;
the CRC consists of 4 bytes and is calculated in accordance with the standard ethernet CRC algorithm.
2.2 metropolitan area network packet definition
The topology of a metropolitan area network is a graph and there may be 2, or even more than 2, connections between two devices, i.e., there may be more than 2 connections between a node switch and a node server, a node switch and a node switch, and a node switch and a node server. However, the metro network address of the metro network device is unique, and in order to accurately describe the connection relationship between the metro network devices, parameters are introduced in the embodiment of the present invention: a label to uniquely describe a metropolitan area network device.
In this specification, the definition of the Label is similar to that of the Label of MPLS (Multi-Protocol Label Switch), and assuming that there are two connections between the device a and the device B, there are 2 labels for the packet from the device a to the device B, and 2 labels for the packet from the device B to the device a. The label is classified into an incoming label and an outgoing label, and assuming that the label (incoming label) of the packet entering the device a is 0x0000, the label (outgoing label) of the packet leaving the device a may become 0x0001. The network access process of the metro network is a network access process under centralized control, that is, address allocation and label allocation of the metro network are both dominated by the metro server, and the node switch and the node server are all passively executed, which is different from label allocation of MPLS, which is a result of mutual negotiation between the switch and the server.
As shown in the following table, the data packet of the metro network mainly includes the following parts:
DA SA Reserved label (R) Payload CRC
Namely Destination Address (DA), source Address (SA), reserved byte (Reserved), tag, payload (PDU), CRC. The format of the tag may be defined by reference to the following: the tag is 32 bits with the upper 16 bits reserved and only the lower 16 bits used, which is located between the reserved bytes and the payload of the packet.
Referring to fig. 5, a flowchart illustrating steps of a method for server detection according to an embodiment of the present invention is shown, where the method may be applied to a service server, where the service server may be a server in a video network, such as a metropolitan area server or a node server.
Specifically, the method can comprise the following steps:
step 501, collecting a target process identifier corresponding to a process running in the service server;
the process may be a running activity of an application program in the service server, and is a basic unit for resource allocation and scheduling of the service server.
The target process identification may be identification information referring to a process, for example: v2vnmsserver, dataTransferUnit and DataTransferUnit.
When the service server is detected, the service server may acquire local process information corresponding to a local process through the command information, and then extract a corresponding target process identifier from the local process information, for example, in a Linux system, a ps command may be used, and Windows calls the system api, so that the local process information that the service server is running may be acquired.
In the embodiment of the invention, the application program deployed in the service server in the video network can be acquired in real time by collecting the service server in the video network, so that the convenience of operation and maintenance of the service server in the video network is improved.
Step 502, judging whether the target process identifier is found in a preset process configuration list; the process configuration list comprises one or more corresponding relations between process identifications and application identification information;
for example, the process configuration list may be as shown in the following table:
application identification information Process identification
OMC network management platform v2vnmsserver
OMC network management platform DataAcquisitionUnit
OMC network management platform DataTransferUnit
OMC network management platform DataQueryUnit
Storage gateway platform FileServer
Storage gateway platform StorageGateway
Storage gateway platform VodServer
The application identification information may be information corresponding to an application program, and the application program may be various service applications deployed in a video networking environment, for example, a video networking OMC network management application, a video networking storage gateway application, a video networking monitoring networking management scheduling application, a video networking conference management application, a video networking GIS sky-eye scheduling application, and a video networking monitoring access service application.
After extracting the corresponding target process identifier, the target process identifier may be sequentially searched according to the storage sequence of the process identifiers in the process configuration list, and after the search is finished, it is determined whether the target process identifier is searched in the preset process configuration list.
In an embodiment of the present invention, the process configuration list may be entered and updated to the service server through a network or a local loading manner.
In the embodiment of the invention, the updating process configuration list is input to the service server in a network or local loading mode, so that the corresponding relation between the effective acquisition process identifier and the application identifier information can be acquired in real time, the effectiveness of acquiring the target application identifier information is enhanced, and the user experience is enhanced.
Step 503, if the target process identifier is found in the process configuration list, acquiring target application identifier information corresponding to the target process identifier;
after judging whether the target process identifier is found, if the target process identifier is found in the process configuration list, the target application identifier information corresponding to the target process identifier can be obtained according to the corresponding relationship between the process identifier and the application identifier information.
For example, the process configuration list may be stored in an STL map container to form a mapping map from the process to the application platform, and after finding the target process identifier as the key, the application identifier information as the value may be quickly found.
Step 504, storing the target application identification information in a preset database for the service server.
After the identification information of the corresponding target application is obtained, the identification information corresponding to the service server can be added to the identification information of the target application, and then the identification information of the target application after the identification information is added can be stored in a preset database aiming at the service server.
In order to enable those skilled in the art to better understand the above steps, the following is an example to illustrate the embodiments of the present invention, but it should be understood that the embodiments of the present invention are not limited thereto.
As shown in fig. 6, the method for server detection can be divided into three processes, an acquisition process distributed on the service server, a summarization process distributed on the database, and a presentation process on the Web page.
As shown in fig. 7, in the collection process, the service server may load an application platform process configuration list (i.e., a preset process configuration list), where each process in the application platform process configuration list corresponds to an application platform, and form a mapping map from the process to the application platform (i.e., the process configuration list includes one or more process identifiers and correspondence between application identifier information), after the collection program is started, the service server may collect local process data, obtain a process name (i.e., a target process identifier) list, search each process name in the process name list in the mapping map from the process to the application platform, if each process name in the process name list is found in the application platform process configuration list, an application process exists in the service server, and in the summarization process, data related to the application (i.e., target application identifier information) is filled in a database (i.e., a preset database), and in the presentation process, the data related to the application is presented on a page; if each process name in the process name list is not found in the application platform process configuration list, no application runs in the service server, and the summarizing process and the displaying process are not executed.
In the embodiment of the invention, the target process identification corresponding to the process running in the service server is collected, whether the target process identification is found in the preset process configuration list is judged, if the target process identification is found in the process configuration list, the target application identification information corresponding to the target process identification is obtained, and the target application identification information is stored in the preset database aiming at the service server, so that the detection of the service server application program is realized, the application platform process information deployed on the server can be automatically displayed in real time, errors caused by manual memory or manual recording and the like are avoided, and the convenience degree of operation and maintenance personnel is improved.
Referring to fig. 8, a flowchart illustrating steps of another method for server detection according to an embodiment of the present invention is shown, where the method may be applied to a service server, and specifically may include the following steps:
step 801, collecting a target process identifier corresponding to a process running in the service server;
step 802, judging whether the target process identifier is found in a preset process configuration list; the process configuration list comprises one or more corresponding relations between process identifications and application identification information;
step 803, if the target process identifier is found in the process configuration list, acquiring target application identifier information corresponding to the target process identifier;
step 804, storing the target application identification information in a preset database aiming at the service server;
step 805, determining target application state information corresponding to the target application identification information;
the target application state information may be used to describe the running state of the application.
After the target application identification information is stored in the preset database, a user can send a target application state acquisition instruction to the service server through a Web page, and after receiving the target application state acquisition instruction, the user can acquire the target application identification information corresponding to the target application state acquisition instruction and determine the target application state information corresponding to the target application identification information.
In an embodiment of the present invention, step 805 includes the following sub-steps:
substep 11, receiving a target control command;
after determining the target application state information, the user may send a target control instruction to the service server through the network, and the service server may receive the target control instruction after the user identity information is verified.
Substep 12, determining whether the target control instruction is found in the process configuration list; the process configuration list comprises the corresponding relation between one or more pieces of application identification information and a control instruction;
the process configuration list further includes a corresponding relationship between one or more pieces of application identification information and the control instruction, for example, the process configuration list may also be as shown in the following table:
Figure BDA0002401764000000151
after receiving the target control instruction, the target control instruction may be searched in the process configuration list, for example, the process configuration list may be stored in the STLmap container to form a mapping map from the process to the application platform, and after the target control instruction serving as the key is found, the application identification information serving as the value may be quickly found.
Substep 13, if the target control instruction is found in the process configuration list, acquiring target application identification information corresponding to the target control instruction;
after judging whether the target control instruction is found, if the target control instruction is found in the process configuration list, the target application identification information corresponding to the target control instruction can be obtained according to the corresponding relationship between the control instruction and the application identification information.
And a substep 14 of determining the target application state information corresponding to the target application identification information according to the target control instruction.
After the target application identification information is obtained, the target application state information corresponding to the target application identification information may be determined according to the corresponding relationship between the target control instruction and the application state information.
In an embodiment of the present invention, the sub-step 14 further comprises the sub-steps of:
a substep 141, determining that the target application state information corresponding to the target application identification information is a stop state when the target control instruction is a stop instruction;
after the target application state information is determined, when the target control instruction is a stop instruction, the target application state information corresponding to the target application identification information may be determined to be a stop state according to a corresponding relationship between the stop instruction and the stop state.
Substep 142, when the target control instruction is a start instruction, determining that the target application state information corresponding to the target application identification information is a start state;
after the target application state information is determined, when the target control instruction is a start instruction, the target application state information corresponding to the target application identification information may be determined to be a start state according to a corresponding relationship between the start instruction and the start state.
Step 806, storing the target application state information in the preset database for the service server.
After the target application state information is obtained, the identification information corresponding to the service server can be added into the target application state information of the target application identification information, and the target application state information added with the identification information is sent to a preset database.
In the embodiment of the invention, the control operation of detecting the start and stop of the corresponding application is realized by determining the target application state information corresponding to the target application identification information and storing the target application state information in the preset database aiming at the service server.
Referring to fig. 9, a flowchart illustrating steps of another method for server detection according to an embodiment of the present invention is shown, where the method may be applied to a Web server, and specifically includes the following steps:
step 901, receiving an application query request for a service server;
when the service server is detected, a user can send an application query request through a Web page end, and the Web server end can receive the application query request.
Step 902, obtaining target application identification information corresponding to the service server from a preset database; the target application identification information is a target process identification corresponding to a process which is acquired by the service server and runs in the service server, whether the target process identification is found in a preset process configuration list is judged, if the target process identification is found in the process configuration list, target application identification information corresponding to the target process identification is obtained, and the target application identification information is sent to a preset database, wherein the process configuration list comprises one or more corresponding relations between the process identification and the application identification information;
after receiving an application query request for the service server, the service server may send an acquisition instruction to the preset database, and receive target application identification information pre-stored in the preset database.
In an embodiment of the present invention, the service server is a server located in a video network.
Step 903, returning the target application identification information for the application query request.
After receiving the target application identification information, the target application identification information may be returned to the Web page, and the user may view the target application identification information through the Web page.
Step 904, obtaining the target application state information corresponding to the service server from a preset database; the target application state information determines target application state information corresponding to the target application identification information for the service server, and stores the target application state information in the preset database aiming at the service server;
when detecting the service server, the method can send a state obtaining instruction to the preset database and receive the target application state information pre-stored in the preset database.
Step 905, returning the target application state information to the application query request.
After receiving the target application state information, the target application state information may be returned to the Web page, and the user may view the target application state information through the Web page.
In the embodiment of the invention, the monitoring of the control operation of starting and stopping after corresponding application platforms is realized by receiving the application query request aiming at the service server, acquiring the target application identification information corresponding to the service server from the preset database, returning the target application identification information aiming at the application query request, returning the target application state information aiming at the application query request and returning the target application state information aiming at the application query request.
Referring to fig. 10, a block diagram of a structure of a device for server detection according to an embodiment of the present invention is shown, where the device may include a service server, and specifically may include the following structure:
an acquisition module 1001, configured to acquire a target process identifier corresponding to a process running in the service server;
a judging module 1002, configured to judge whether the target process identifier is found in a preset process configuration list; the process configuration list comprises one or more corresponding relations between process identifications and application identification information;
an obtaining module 1003, configured to obtain, if the target process identifier is found in the process configuration list, target application identifier information corresponding to the target process identifier;
the storage module 1004 is configured to store the target application identification information in a preset database for the service server.
In an embodiment of the present invention, the apparatus further includes:
the determining module is used for determining the target application state information corresponding to the target application identification information;
and the storage module is used for storing the target application state information in the preset database aiming at the service server.
In an embodiment of the present invention, the determining module further includes the following sub-modules:
the target control instruction receiving submodule is used for receiving a target control instruction;
the target control instruction searching submodule is used for judging whether the target control instruction is searched in the process configuration list; the process configuration list comprises the corresponding relation between one or more pieces of application identification information and a control instruction;
a target control instruction obtaining submodule, configured to obtain target application identification information corresponding to the target control instruction if the target control instruction is found in the process configuration list;
and the target application state information determining submodule is used for determining the target application state information corresponding to the target application identification information according to the target control instruction.
In an embodiment of the present invention, the target application status information determining sub-module further includes the following units:
a stop state determining unit, configured to determine that, when the target control instruction is a stop instruction, target application state information corresponding to the target application identification information is a stop state;
a starting state determining unit, configured to determine that the target application state information corresponding to the target application identification information is a starting state when the target control instruction is a starting instruction
In an embodiment of the present invention, the service server is a server located in a video network.
In the embodiment of the invention, the target process identification corresponding to the process running in the service server is collected, whether the target process identification is found in the preset process configuration list is judged, if the target process identification is found in the process configuration list, the target application identification information corresponding to the target process identification is obtained, and the target application identification information is stored in the preset database aiming at the service server, so that the detection of the service server application program is realized, and the convenience of the service server operation and maintenance is improved.
Referring to fig. 11, a block diagram of a structure of another apparatus for server detection according to an embodiment of the present invention is shown, where the apparatus may include a Web server, and specifically may include the following structure:
a query request receiving module 1101, configured to receive an application query request for a service server;
an application identifier information obtaining module 1102, configured to obtain target application identifier information corresponding to the service server from a preset database; the target application identification information is a target process identification corresponding to a process which is collected by the service server and runs in the service server, whether the target process identification is found in a preset process configuration list is judged, if the target process identification is found in the process configuration list, target application identification information corresponding to the target process identification is obtained, and the target application identification information is sent to a preset database, wherein the process configuration list comprises one or more corresponding relations between process identifications and application identification information;
an application identifier information returning module 1103, configured to return the target application identifier information according to the application query request.
In an embodiment of the present invention, the apparatus further includes:
the database acquisition module is used for acquiring target application state information corresponding to the service server from a preset database; the target application state information determines target application state information corresponding to the target application identification information for the service server, and stores the target application state information in the preset database aiming at the service server;
and the target application state information feedback module is used for returning the target application state information aiming at the application query request.
In an embodiment of the present invention, the service server is a server located in a video network.
In the embodiment of the invention, the detection of the application program of the service server is realized by receiving the application query request aiming at the service server, acquiring the target application identification information corresponding to the service server from the preset database, returning the target application identification information aiming at the application query request, returning the target application state information aiming at the application query request and returning the target application state information aiming at the application query request, so that the process information of the application platform deployed on the server can be automatically displayed in real time, errors caused by manual memory or manual record and the like can be avoided, and the convenience of operation and maintenance personnel can be improved.
For the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for relevant points.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention 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 invention 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 invention 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 invention. 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 invention 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 preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are 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 "include", "including" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or terminal device including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or terminal device. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or terminal apparatus that comprises the element.
The method and the device for detecting the server provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying a specific example, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (8)

1. A method for detecting a server is applied to a service server, and comprises the following steps:
acquiring a target process identification corresponding to a process running in the service server;
judging whether the target process identification is found in a preset process configuration list or not; the process configuration list comprises one or more corresponding relations between process identifications and application identification information;
if the target process identification is found in the process configuration list, acquiring target application identification information corresponding to the target process identification;
aiming at the business server, storing the target application identification information in a preset database;
wherein the method further comprises:
determining target application state information corresponding to the target application identification information;
and aiming at the service server, storing the target application state information in the preset database.
2. The method of claim 1, wherein the step of determining the target application state information corresponding to the target application identification information comprises:
receiving a target control instruction;
judging whether the target control instruction is found in the process configuration list or not; the process configuration list comprises the corresponding relation between one or more pieces of application identification information and a control instruction;
if the target control instruction is found in the process configuration list, acquiring target application identification information corresponding to the target control instruction;
and determining target application state information corresponding to the target application identification information according to the target control instruction.
3. The method according to claim 2, wherein the step of determining the target application state information corresponding to the target application identification information according to the target control instruction comprises:
when the target control instruction is a stop instruction, determining that the target application state information corresponding to the target application identification information is in a stop state;
and when the target control instruction is a starting instruction, determining that the target application state information corresponding to the target application identification information is a starting state.
4. The method of claim 1, wherein the service server is a server located in a video network.
5. A method for detecting a server is applied to a Web server and comprises the following steps:
receiving an application query request aiming at a service server;
acquiring target application identification information corresponding to the service server from a preset database; the target application identification information is a target process identification corresponding to a process which is acquired by the service server and runs in the service server, whether the target process identification is found in a preset process configuration list is judged, if the target process identification is found in the process configuration list, target application identification information corresponding to the target process identification is obtained, and the target application identification information is sent to a preset database, wherein the process configuration list comprises one or more corresponding relations between the process identification and the application identification information;
returning the target application identification information aiming at the application query request;
wherein the method further comprises:
acquiring target application state information corresponding to the service server from a preset database; the target application state information determines target application state information corresponding to the target application identification information for the service server, and stores the target application state information in the preset database aiming at the service server;
and returning the target application state information aiming at the application query request.
6. The method of claim 5, wherein the service server is a server located in a video network.
7. An apparatus for server detection, comprising a service server, the apparatus comprising:
the acquisition module is used for acquiring a target process identifier corresponding to a process running in the service server;
the judging module is used for judging whether the target process identification is found in a preset process configuration list or not; the process configuration list comprises one or more corresponding relations between process identifications and application identification information;
an obtaining module, configured to obtain target application identification information corresponding to the target process identifier if the target process identifier is found in the process configuration list;
the storage module is used for storing the target application identification information in a preset database aiming at the service server;
wherein the apparatus further comprises:
the determining module is used for determining the target application state information corresponding to the target application identification information;
and the storage module is used for storing the target application state information in the preset database aiming at the service server.
8. An apparatus for server detection, comprising a Web server, the apparatus comprising:
the query request receiving module is used for receiving an application query request aiming at the service server;
the application identification information acquisition module is used for acquiring target application identification information corresponding to the service server from a preset database; the target application identification information is a target process identification corresponding to a process which is acquired by the service server and runs in the service server, whether the target process identification is found in a preset process configuration list is judged, if the target process identification is found in the process configuration list, target application identification information corresponding to the target process identification is obtained, and the target application identification information is sent to a preset database, wherein the process configuration list comprises one or more corresponding relations between the process identification and the application identification information;
the application identification information returning module is used for returning the target application identification information aiming at the application query request;
wherein the apparatus further comprises:
the database acquisition module is used for acquiring the target application state information corresponding to the service server from a preset database; the target application state information determines target application state information corresponding to the target application identification information for the service server, and stores the target application state information in the preset database aiming at the service server;
and the target application state information feedback module is used for returning the target application state information aiming at the application query request.
CN202010148953.8A 2020-03-05 2020-03-05 Server detection method and device Active CN111479138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010148953.8A CN111479138B (en) 2020-03-05 2020-03-05 Server detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010148953.8A CN111479138B (en) 2020-03-05 2020-03-05 Server detection method and device

Publications (2)

Publication Number Publication Date
CN111479138A CN111479138A (en) 2020-07-31
CN111479138B true CN111479138B (en) 2023-04-18

Family

ID=71748162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010148953.8A Active CN111479138B (en) 2020-03-05 2020-03-05 Server detection method and device

Country Status (1)

Country Link
CN (1) CN111479138B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751325A (en) * 2008-12-11 2010-06-23 成都吉胜科技有限责任公司 Software operation monitoring method
CN102026151A (en) * 2009-09-16 2011-04-20 中国移动通信集团公司 Service push method, apparatus and system based on process-monitoring
JP2013012225A (en) * 2012-08-30 2013-01-17 Hitachi Ltd Name specification program, configuration management server and information processing system
CN103905526A (en) * 2014-03-05 2014-07-02 深圳市同洲电子股份有限公司 Dispatching method and server
CN106354616A (en) * 2016-08-18 2017-01-25 北京并行科技股份有限公司 Method and device for monitoring application execution performance and high-performance computing system
CN107798086A (en) * 2017-10-19 2018-03-13 福建中金在线信息科技有限公司 Server info update method, device, system and electronic equipment
CN110012063A (en) * 2019-02-22 2019-07-12 视联动力信息技术股份有限公司 A kind of processing method and system of data packet
CN110764794A (en) * 2018-07-25 2020-02-07 视联动力信息技术股份有限公司 Interactive system, updating method, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751325A (en) * 2008-12-11 2010-06-23 成都吉胜科技有限责任公司 Software operation monitoring method
CN102026151A (en) * 2009-09-16 2011-04-20 中国移动通信集团公司 Service push method, apparatus and system based on process-monitoring
JP2013012225A (en) * 2012-08-30 2013-01-17 Hitachi Ltd Name specification program, configuration management server and information processing system
CN103905526A (en) * 2014-03-05 2014-07-02 深圳市同洲电子股份有限公司 Dispatching method and server
CN106354616A (en) * 2016-08-18 2017-01-25 北京并行科技股份有限公司 Method and device for monitoring application execution performance and high-performance computing system
CN107798086A (en) * 2017-10-19 2018-03-13 福建中金在线信息科技有限公司 Server info update method, device, system and electronic equipment
CN110764794A (en) * 2018-07-25 2020-02-07 视联动力信息技术股份有限公司 Interactive system, updating method, electronic equipment and storage medium
CN110012063A (en) * 2019-02-22 2019-07-12 视联动力信息技术股份有限公司 A kind of processing method and system of data packet

Also Published As

Publication number Publication date
CN111479138A (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN108965224B (en) Video-on-demand method and device
CN108880926B (en) Server monitoring method and device
CN110647698B (en) Page loading method and device, electronic equipment and readable storage medium
CN109617956B (en) Data processing method and device
CN111193788A (en) Audio and video stream load balancing method and device
CN110190973B (en) Online state detection method and device
CN108965226B (en) Data acquisition method and device based on video network
CN110719258B (en) Server access method and system
CN110602039A (en) Data acquisition method and system
CN110224988B (en) Image data processing method, system and device and storage medium
CN109743555B (en) Information processing method and system based on video network
CN109768957B (en) Method and system for processing monitoring data
CN110609818B (en) Log processing method and device
CN110022500B (en) Packet loss processing method and device
CN110134892B (en) Loading method and system of monitoring resource list
CN110418169B (en) Monitoring data carousel method and device
CN108965219B (en) Data processing method and device based on video network
CN111031090B (en) Data processing method and device, electronic equipment and readable storage medium
CN110266768B (en) Data transmission method and system
CN110392233B (en) Monitoring video processing method, device and storage medium
CN111479138B (en) Server detection method and device
CN110213533B (en) Method and device for acquiring video stream monitored by video network
CN110096854B (en) Resource permission sharing method and device and readable storage medium
CN109640036B (en) Configuration modification method and device
CN110768854B (en) Data statistics method and device based on video network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant