Method and device for detecting server based on SSH
A server, technology to be tested, applied in digital transmission systems, electrical components, transmission systems, etc., can solve the problems of permanent SSH stuck, high maintenance cost, high threshold, and achieve the effect of enhanced robustness and low maintenance cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044]In order to avoid the permanent stuck of SSH caused by hardware failure and enable the management node to normally manage the server node that has failed, the embodiment of the present invention provides a method for detecting the server based on SSH, and its implementation mechanism is based on the existing SSH detection On top of that, an asynchronous fault monitoring thread is added to solve the problem of cluster stuck. The whole detection process mainly includes fault detection thread and fault monitoring thread.
[0045] Such as figure 1 As shown, the detection method provided by the embodiment of the present invention mainly includes the following steps:
[0046] Step 10, save the host name and corresponding IP address of each server to be detected in a parameter file; wherein, the parameters corresponding to each server to be detected occupy one line in the parameter file.
[0047] A parameter file / etc / hosts is pre-defined here. After the cluster software is in...
Embodiment 2
[0064] On the basis of the method for detecting a server based on SSH provided in Embodiment 1 above, this embodiment of the present invention further provides a device for detecting a server based on SSH, which can be used to implement the method described in Embodiment 1 .
[0065] Such as image 3 As shown, the detection device provided by the embodiment of the present invention mainly includes a storage module, a fault detection module, a fault monitoring module, a fault recovery detection module and a cluster management module.
[0066] The storage module is used to save the host name and corresponding IP address of each server to be detected in a parameter file; wherein, the parameters corresponding to each server to be detected occupy one line in the parameter file. The storage module can pre-define a parameter file / etc / hosts, after the cluster software is installed and running normally, the host name and corresponding IP address of each server to be detected in the c...
Embodiment 3
[0073] On the basis of the method for detecting a server based on SSH provided in Embodiment 1 above, the present invention also provides another device for detecting a server based on SSH that can be used to implement the above method, such as Figure 4 Shown is a schematic diagram of the device architecture of the embodiment of the present invention. The device for detecting a server based on SSH in this embodiment includes one or more processors 21 and memory 22 . in, Figure 4 A processor 21 is taken as an example.
[0074] The processor 21 and the memory 22 may be connected via a bus or in other ways, Figure 4 Take connection via bus as an example.
[0075] The memory 22 is a non-volatile computer-readable storage medium for detecting a server based on SSH, and can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, as in Embodiment 1 The method of detecting the server based on SSH in . The processor 21 executes va...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


