Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2020-08-14
WUHAN GREENET INFORMATION SERVICE
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The current cluster mainly manages and maintains each server node through SSH. Due to hardware failure, it is easy to ping through but SSH is permanently stuck, causing the management node to fail to manage the server node that has failed. Traditional solutions exist Certain limitations, such as high threshold, long development cycle, high maintenance cost, and the need to modify the ssh version

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for detecting server based on SSH
  • Method and device for detecting server based on SSH
  • Method and device for detecting server based on SSH

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the technical field of server hardware detection, and provides a method and device for detecting servers based on SSH, and the method comprises the steps: storing a host nameand an IP address of each to-be-detected server in a parameter file; reading parameters in the parameter file line by line before the SSH is used for cluster management, and executing an SSH detectioncommand on each to-be-detected server based on the read IP address; and monitoring whether each SSH execution is overtime or not in real time, if so, modifying the corresponding IP address in the parameter file into an unreachable IP, and adding the corresponding host name and IP address into a fault machine list. On the premise of not changing the SSH, a SSH jamming fault is actively detected byusing a method of combining the asynchronous principle of the thread and the blacklist, the management node can be assisted to normally manage the failed node under the unknown abnormal condition, the SSH permanent jamming is avoided, the robustness of the cluster is enhanced, and the maintenance cost is low.

Description

technical field [0001] The invention relates to the technical field of server hardware detection, and provides a method and device for detecting a server based on SSH. Background technique [0002] The Secure Shell protocol (Secure Shell, abbreviated as SSH) is a security protocol based on the application layer. It is designed to provide security for remote login sessions and other network services. Using the SSH protocol can effectively prevent information leakage during remote management. SSH was originally a program on UNIX systems, and then quickly expanded to other operating platforms. Today, almost all UNIX platforms, including HP-UX, Linux, AIX, Solaris, Digital UNIX, Irix, and other platforms can run SSH. [0003] Currently, the management node mainly manages and maintains the server nodes in the cluster through SSH. However, due to hardware failures, there have been many cases where the ping is successful but the SSH is stuck. As a result, the management node cannot...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L12/26H04L12/24H04L29/06
CPCH04L41/0622H04L43/0823H04L43/50H04L63/168
Inventor 叶志钢王化民张本军孙昌燕曾伟王赟
Owner WUHAN GREENET INFORMATION SERVICE